Skip to content
Snippets Groups Projects
Commit f69b3965 authored by Sigurd Hagen Tullander's avatar Sigurd Hagen Tullander
Browse files

Test `reitzig/texlive-full` docker image

parent 2c967a0c
No related branches found
No related tags found
No related merge requests found
report_output
plots
report/figures/plots
todo.md
FROM blang/latex:ctanfull
FROM reitzig/texlive-full
WORKDIR /data
RUN apk update
RUN apk --no-cache add \
inkscape \
findutils
RUN mkdir -p /data/report
RUN mkdir -p /data/report_output
RUN mkdir -p /data/source_code
RUN apt update
RUN apt install inkscape -y
WORKDIR /data
RUN mkdir report_output
ENTRYPOINT []
No preview for this file type
......@@ -5,8 +5,9 @@ cd $(dirname $0)/report_output/
rm -rf ./*
cp -rf ../report/* ./
cp -rf ../source_code ./
pdflatex -shell-escape main.tex
cp -rf ../plots ./figures/
lualatex -shell-escape main.tex
bibtex main.aux
pdflatex -shell-escape main.tex
pdflatex -shell-escape main.tex
cp -f main.pdf ../Report.pdf
lualatex -shell-escape main.tex
lualatex -shell-escape main.tex
cat main.pdf > ../Report.pdf
......@@ -3,15 +3,16 @@ version: "3"
services:
report_loop:
build: .
image: sigurdht/compile-latex
image: sigurdht/compile-lulatex
volumes:
- ./report:/data/report:ro
- ./report_output:/data/report_output:rw
- ./source_code:/data/source_code:ro
- ./plots:/data/plots:Z
- ./Report.pdf:/data/Report.pdf:rw
- ./filechange_loop.sh:/data/filechange_loop.sh:ro
- ./compile.sh:/data/compile.sh:ro
command: /data/filechange_loop.sh "report source_code" ./compile.sh
command: /data/filechange_loop.sh "report source_code plots" ./compile.sh
plot_loop:
build:
......@@ -20,7 +21,7 @@ services:
image: sigurdht/matplotlib
volumes:
- ./source_code/plot:/app/plot_code:ro
- ./report/figures/plots:/app/plots:rw
- ./plots:/app/plots:Z
- ./filechange_loop.sh:/app/filechange_loop.sh:ro
- ./plot.sh:/app/plot.sh:ro
working_dir: /app
......
......@@ -58,6 +58,13 @@
\input{5_results/0_main}
\input{6_conclusion/0_main}
\begin{figure}
\centering
\includesvg[width=0.8\textwidth]{figures/plots/sin_x.svg}
\caption{sin(x) SVG.}
\label{fig:sin_x}
\end{figure}
% Just include a citation so that the compilation doesn't return an error code.
\nocite{rusu2008speedcontroller}
\nocite{balchen2016regtek}
......
......@@ -4,7 +4,7 @@
% \usepackage{hyperref}
\usepackage[colorlinks=true,linkcolor=black,anchorcolor=black,citecolor=black,filecolor=black,menucolor=black,runcolor=black,urlcolor=black]{hyperref}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
% \usepackage[latin1]{inputenc}
\usepackage{babel}
\usepackage{appendix}
\usepackage{textcomp}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment