From c3b8c3f02956bc0052a39688d23a29463341e1fb Mon Sep 17 00:00:00 2001 From: valentin <valentinb@fsmpi.rwth-aachen.de> Date: Sun, 19 May 2019 12:01:32 +0200 Subject: [PATCH] LaTeX workshop hello world example: corrected standalone pdf --- workshops/latex/compile.sh | 3 +-- workshops/latex/{ => examples}/minimal.tex | 0 workshops/latex/examples/minimal_standalone.tex | 4 ++++ workshops/latex/latex.tex | 4 ++-- 4 files changed, 7 insertions(+), 4 deletions(-) rename workshops/latex/{ => examples}/minimal.tex (100%) create mode 100644 workshops/latex/examples/minimal_standalone.tex diff --git a/workshops/latex/compile.sh b/workshops/latex/compile.sh index 236a27b..405f6b3 100755 --- a/workshops/latex/compile.sh +++ b/workshops/latex/compile.sh @@ -7,6 +7,5 @@ do rm $i.log done cd .. -pdflatex minimal.tex pdflatex latex.tex -pdflatex latex.tex \ No newline at end of file +pdflatex latex.tex diff --git a/workshops/latex/minimal.tex b/workshops/latex/examples/minimal.tex similarity index 100% rename from workshops/latex/minimal.tex rename to workshops/latex/examples/minimal.tex diff --git a/workshops/latex/examples/minimal_standalone.tex b/workshops/latex/examples/minimal_standalone.tex new file mode 100644 index 0000000..c22b717 --- /dev/null +++ b/workshops/latex/examples/minimal_standalone.tex @@ -0,0 +1,4 @@ +\documentclass[ngerman]{standalone} +\begin{document} + Hallo Welt! +\end{document} diff --git a/workshops/latex/latex.tex b/workshops/latex/latex.tex index 6935883..3f18308 100644 --- a/workshops/latex/latex.tex +++ b/workshops/latex/latex.tex @@ -65,7 +65,7 @@ (2pt,-15pt) rectangle (\textwidth-2pt, -.5\textwidth+2pt); \node[anchor=north west] at (0pt, 0pt) {Editor: HelloWorld.tex}; \node[anchor=north west] at (4pt, -12pt) {\parbox[t][.5\textwidth-27pt][t]{\textwidth-12pt}{% - \lstinputlisting[language=tex, basicstyle=\small\ttfamily]{minimal.tex} + \lstinputlisting[language=tex, basicstyle=\small\ttfamily]{examples/minimal.tex} }}; \end{tikzpicture}\\[-11pt] \includegraphics[angle=-90, width=.1\textwidth]{figures/texstudio-compile.pdf}\\[2pt] @@ -77,7 +77,7 @@ \node[anchor=north west] at (0pt, 0pt) {PDF viewer: HelloWorld.pdf}; \node[anchor=north west] at (2pt, -15pt) {\parbox[t][.4\textwidth-27pt][c]{\textwidth-12pt}{% \centering - \includegraphics{minimal.pdf} + \includegraphics{examples/minimal_standalone.pdf} }}; \end{tikzpicture} \end{column} -- GitLab