Add handout skeleton

This commit is contained in:
Simon Bruder 2021-11-28 14:16:42 +01:00
parent 75f3ba876d
commit 434664d921
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC
4 changed files with 83 additions and 26 deletions

25
.gitignore vendored
View file

@ -1,17 +1,18 @@
*.aux **/*.aux
*.bbl **/*.bbl
*.bcf **/*.bcf
*.blg **/*.blg
*.fdb_latexmk **/*.fdb_latexmk
*.fls **/*.fls
*.log **/*.log
*.out **/*.out
seminararbeit.pdf seminararbeit.pdf
expose.pdf expose.pdf
*.run.xml presi/handout.pdf
*.synctex.gz **/*.run.xml
*.toc **/*.synctex.gz
*.xdv **/*.toc
**/*.xdv
/result /result
/textidote.html /textidote.html

View file

@ -1,20 +1,27 @@
.PHONY: default
default: seminararbeit.pdf presi/handout.pdf
seminararbeit.pdf: seminararbeit.tex bibliography.bib seminararbeit.pdf: seminararbeit.tex bibliography.bib
latexmk -xelatex seminararbeit.tex latexmk -xelatex seminararbeit.tex
presi/handout.pdf: presi/handout.tex bibliography.bib
latexmk -cd -xelatex $<
.PHONY: clean .PHONY: clean
clean: clean:
rm -f \ rm -f \
*.aux \ **/*.aux \
*.bbl \ **/*.bbl \
*.bcf \ **/*.bcf \
*.blg \ **/*.blg \
*.fdb_latexmk \ **/*.fdb_latexmk \
*.fls \ **/*.fls \
*.log \ **/*.log \
*.out \ **/*.out \
seminararbeit.pdf \ seminararbeit.pdf \
expose.pdf \ expose.pdf \
*.run.xml \ presi/handout.pdf \
*.synctex.gz \ **/*.run.xml \
*.toc \ **/*.synctex.gz \
*.xdv **/*.toc \
**/*.xdv

View file

@ -20,6 +20,7 @@
csquotes csquotes
datetime2 datetime2
datetime2-german datetime2-german
enumitem
geschichtsfrkl geschichtsfrkl
latexmk latexmk
lipsum lipsum
@ -30,7 +31,7 @@
}; };
in in
pkgs.stdenv.mkDerivation { pkgs.stdenv.mkDerivation {
name = "seminararbeit.pdf"; name = "seminararbeit";
nativeBuildInputs = [ nativeBuildInputs = [
texlive texlive
@ -38,10 +39,20 @@
src = self; src = self;
enableParallelBuilding = true;
# We only build a PDF # We only build a PDF
dontFixup = true; dontFixup = true;
installPhase = "cp $name $out"; installPhase = ''
runHook preInstall
mkdir $out
cp seminararbeit.pdf presi/handout.pdf $out
runHook postInstall
'';
}; };
defaultPackage = packages.seminararbeit; defaultPackage = packages.seminararbeit;

38
presi/handout.tex Normal file
View file

@ -0,0 +1,38 @@
% TeX program = xelatex
% vim: set spell spelllang=de:
\documentclass[
DIV=20,
parskip=half,
]{scrartcl}
% hyphenation
\usepackage[ngerman]{babel}
% cretion of nice dates from numbers
\RequirePackage[useregional]{datetime2}
% links/pdf toc
\RequirePackage[hyphens]{url}
\RequirePackage[unicode, hidelinks]{hyperref}
% advanced tables
\RequirePackage{tabularx}
\RequirePackage{multirow}
% more compact lists
\RequirePackage{enumitem}
\setlist{noitemsep, topsep=0pt, parsep=0pt, partopsep=0pt}
\title{Albert Göring der gute Göring?}
\author{Simon Bruder}
\subject{W-Seminar Geschichte \\
„Wer hält stand?“ Widerstand im Dritten Reich \\
Christian-von-Bomhard-Schule}
\date{\DTMdisplaydate{2021}{12}{16}{-1}}
\begin{document}
\pagenumbering{gobble}
\maketitle
\appendix
\end{document}