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
*.bbl
*.bcf
*.blg
*.fdb_latexmk
*.fls
*.log
*.out
**/*.aux
**/*.bbl
**/*.bcf
**/*.blg
**/*.fdb_latexmk
**/*.fls
**/*.log
**/*.out
seminararbeit.pdf
expose.pdf
*.run.xml
*.synctex.gz
*.toc
*.xdv
presi/handout.pdf
**/*.run.xml
**/*.synctex.gz
**/*.toc
**/*.xdv
/result
/textidote.html

View file

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

View file

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