From 5977b87f17956b50d140aff25a2832394b5a7018 Mon Sep 17 00:00:00 2001 From: Jan Wille <jan.wille@stud.hs-hannover.de> Date: Sun, 18 Oct 2020 18:25:18 +0200 Subject: [PATCH] Makefile erstellt --- Makefile | 45 +++++++++++++++++++++++++++++++++++++++++++++ src/HsH-report.cls | 6 +++--- test.tex | 2 +- 3 files changed, 49 insertions(+), 4 deletions(-) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..4b47d26 --- /dev/null +++ b/Makefile @@ -0,0 +1,45 @@ +# Makefile for Latex project + +NAME = test +PDF = pdflatex +BIB = biber + +OUTDIR = .\build + +export TEXINPUTS:=.\src + + +pdf: $(NAME).tex + $(PDF) -synctex=1 -interaction=nonstopmode -file-line-error --output-directory=$(OUTDIR) $(NAME).tex + + +clean: tidy + if exist $(OUTDIR)\$(NAME).pdf del $(OUTDIR)\$(NAME).pdf + if exist $(OUTDIR) rmdir $(OUTDIR) + +tidy: + if exist $(OUTDIR)\$(NAME).aux del $(OUTDIR)\$(NAME).aux + if exist $(OUTDIR)\$(NAME).bbl del $(OUTDIR)\$(NAME).bbl + if exist $(OUTDIR)\$(NAME).bcf del $(OUTDIR)\$(NAME).bcf + if exist $(OUTDIR)\$(NAME).blg del $(OUTDIR)\$(NAME).blg + if exist $(OUTDIR)\$(NAME).idx del $(OUTDIR)\$(NAME).idx + if exist $(OUTDIR)\$(NAME).ind del $(OUTDIR)\$(NAME).ind + if exist $(OUTDIR)\$(NAME).lof del $(OUTDIR)\$(NAME).lof + if exist $(OUTDIR)\$(NAME).lot del $(OUTDIR)\$(NAME).lot + if exist $(OUTDIR)\$(NAME).out del $(OUTDIR)\$(NAME).out + if exist $(OUTDIR)\$(NAME).toc del $(OUTDIR)\$(NAME).toc + if exist $(OUTDIR)\$(NAME).acn del $(OUTDIR)\$(NAME).acn + if exist $(OUTDIR)\$(NAME).acr del $(OUTDIR)\$(NAME).acr + if exist $(OUTDIR)\$(NAME).alg del $(OUTDIR)\$(NAME).alg + if exist $(OUTDIR)\$(NAME).glg del $(OUTDIR)\$(NAME).glg + if exist $(OUTDIR)\$(NAME).glo del $(OUTDIR)\$(NAME).glo + if exist $(OUTDIR)\$(NAME).gls del $(OUTDIR)\$(NAME).gls + if exist $(OUTDIR)\$(NAME).ist del $(OUTDIR)\$(NAME).ist + if exist $(OUTDIR)\$(NAME).fls del $(OUTDIR)\$(NAME).fls + if exist $(OUTDIR)\$(NAME).log del $(OUTDIR)\$(NAME).log + if exist $(OUTDIR)\$(NAME).nav del $(OUTDIR)\$(NAME).nav + if exist $(OUTDIR)\$(NAME).snm del $(OUTDIR)\$(NAME).snm + if exist $(OUTDIR)\$(NAME).fdb_latexmk del $(OUTDIR)\$(NAME).fdb_latexmk + if exist $(OUTDIR)\$(NAME).synctex.gz del $(OUTDIR)\$(NAME).synctex.gz + if exist $(OUTDIR)\$(NAME).run.xml del $(OUTDIR)\$(NAME).run.xml + if exist $(OUTDIR)\$(NAME).bc del $(OUTDIR)\$(NAME).bc \ No newline at end of file diff --git a/src/HsH-report.cls b/src/HsH-report.cls index 268b4fc..eab5c04 100644 --- a/src/HsH-report.cls +++ b/src/HsH-report.cls @@ -49,7 +49,7 @@ \ClassInfo{\myClassName}{no personal.tex! Configre the titlepage yourselfe} } -% recomendet options for packages +% enforced options for packages \PassOptionsToPackage{utf8}{inputenc} \PassOptionsToPackage{T1}{fontenc} \PassOptionsToPackage{left=3cm,right=2.5cm,top=3cm,bottom=3cm}{geometry} @@ -80,8 +80,8 @@ % config for header and footer \pagestyle{scrheadings} \clearpairofpagestyles -\renewcommand{\chapterpagestyle}{scrheadings} % Kapitelanfang standart Kopf/Fußzeile -\automark{section} +\renewcommand*{\chapterpagestyle}{scrheadings} % Kapitelanfang standart Kopf/Fußzeile +\automark{chapter} \ohead{\headmark} \ihead{\@title} \ofoot*{\pagemark} diff --git a/test.tex b/test.tex index 37b11d6..c64ab05 100644 --- a/test.tex +++ b/test.tex @@ -31,7 +31,7 @@ noch ein test \normalsubscripts$R_t$ \upsubscripts$R_t$ mit einheit: $R=200\,\milli\ohm+ \SI{0.34567453}{\volt\per\metre}$ - \vspace{2cm}\\ + \vspace{2cm}\\\pagebreak eine zahl: $3,5+3.5$\\ -- GitLab