diff options
author | LarsVomMars | 2020-11-19 20:18:09 +0100 |
---|---|---|
committer | LarsVomMars | 2020-11-19 20:18:09 +0100 |
commit | 5b67b8c0fe8fbfd52c7af1e94d7b0f8633345cbc (patch) | |
tree | c4fc36accee1ebc541b0df730d12b8360a8469f2 | |
parent | d025305d6ce011c01880c647a02e4063ddd6bbae (diff) |
Dynamic file loading
-rw-r--r-- | zeitung/.gitignore | 1 | ||||
-rw-r--r-- | zeitung/main.tex | 12 | ||||
-rw-r--r-- | zeitung/parts/students/.gitkeep | 0 | ||||
-rw-r--r-- | zeitung/parts/students/Lars_Kroenner.tex | 3 | ||||
-rwxr-xr-x | zeitung/run | 2 |
5 files changed, 11 insertions, 7 deletions
diff --git a/zeitung/.gitignore b/zeitung/.gitignore index 41ae811..51c30b5 100644 --- a/zeitung/.gitignore +++ b/zeitung/.gitignore @@ -1,2 +1,3 @@ build/ *.log +parts/students/* diff --git a/zeitung/main.tex b/zeitung/main.tex index 1b8a248..fde3ebe 100644 --- a/zeitung/main.tex +++ b/zeitung/main.tex @@ -19,6 +19,14 @@ \title{ABI Zeitung 2021} \author{des RBS Ulm} +% Updated: https://tex.stackexchange.com/a/7657 +% Import all tex files from a directory +\def\app@exe{\immediate\write18} +\def\Ainput#1{ + \app@exe{cat #1/*.tex > #1/files.tmp} + \InputIfFileExists{#1/files.tmp}{}{} + \AtEndDocument{\app@exe{rm -f #1/files.tmp}}} + \maketitle %\tableofcontents @@ -26,8 +34,6 @@ \section{Einführung} Heeerzlich willkommen! -\input{parts/students/Lars_Kroenner.tex} - -%\includegraphics[width=0.5\textwidth]{test} +\Ainput{parts/students/} \end{document} diff --git a/zeitung/parts/students/.gitkeep b/zeitung/parts/students/.gitkeep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/zeitung/parts/students/.gitkeep diff --git a/zeitung/parts/students/Lars_Kroenner.tex b/zeitung/parts/students/Lars_Kroenner.tex deleted file mode 100644 index fb9fe3b..0000000 --- a/zeitung/parts/students/Lars_Kroenner.tex +++ /dev/null @@ -1,3 +0,0 @@ -\clearpage -\subsection{Lars Krönner} -\Huge{Hi, I'm stupid} diff --git a/zeitung/run b/zeitung/run index 2402c14..3e0098b 100755 --- a/zeitung/run +++ b/zeitung/run @@ -1,5 +1,5 @@ #!/usr/bin/env sh mkdir -p build/ && - latexmk -output-directory=build/ -xelatex && + latexmk -shell-escape -output-directory=build/ -xelatex && zathura build/main.pdf |