diff --git a/Makefile b/Makefile index 97c04823c6cc1b4cf0ebc1053500762f83d2dfa0..732d849a1b34a69a6332cb75fd5ce2747b71007e 100644 --- a/Makefile +++ b/Makefile @@ -1,18 +1,25 @@ # Makefile for Latex project NAME = test -PDF = pdflatex -BIB = biber +LATEX = pdflatex +BIBTEX = biber OUTDIR = .\build export TEXINPUTS:=.\src +all: + $(MAKE) pdf + $(MAKE) bib + $(MAKE) pdf + $(MAKE) pdf pdf: $(NAME).tex - $(PDF) -synctex=1 -interaction=nonstopmode -file-line-error -include-directory=.\src -output-directory=$(OUTDIR) $(NAME).tex + $(LATEX) -synctex=1 -interaction=nonstopmode -file-line-error -include-directory=.\src -output-directory=$(OUTDIR) $(NAME).tex move $(OUTDIR)\$(NAME).pdf .\ +bib: $(OUTDIR)\$(NAME).bcf + $(BIBTEX) -output-directory $(OUTDIR) $(NAME) clean: tidy if exist $(OUTDIR)\$(NAME).pdf del $(OUTDIR)\$(NAME).pdf diff --git a/src/HsH-report.cls b/src/HsH-report.cls index eab5c048c49c0825b785ca46a2f1c665fa75d737..bb0cf766606abba7ba63edc1f411853e80b4548f 100644 --- a/src/HsH-report.cls +++ b/src/HsH-report.cls @@ -53,6 +53,7 @@ \PassOptionsToPackage{utf8}{inputenc} \PassOptionsToPackage{T1}{fontenc} \PassOptionsToPackage{left=3cm,right=2.5cm,top=3cm,bottom=3cm}{geometry} +\PassOptionsToPackage{backend=biber,style=alphabetic,sorting=nyt}{biblatex} \PassOptionsToPackage{babel, german=quotes}{csquotes} \PassOptionsToPackage{headsepline}{scrlayer-scrpage} \PassOptionsToPackage{free-standing-units}{siunitx} @@ -86,6 +87,7 @@ \ihead{\@title} \ofoot*{\pagemark} + % typesetting indexes upright or standart \def\subinrm#1{\sb{\textnormal{#1}}} {\catcode`\_=13 \global\let_=\subinrm} @@ -106,7 +108,7 @@ {\rule{\textwidth}{0.1pt}} \vspace{0.5cm} - \renewcommand{\thanks}{\empty} + \renewcommand{\thanks}{\sbox0} \newcommand{\tempA}{ich} \newcommand{\tempB}{} \foreach \x [count=\i] in \@author{ diff --git a/src/config.tex b/src/config.tex index 98423800d5412c5be5d9d82e26ed4fe536727399..2a1a63b8f057c58cefa51556678f7b657919f0b2 100644 --- a/src/config.tex +++ b/src/config.tex @@ -1,10 +1,9 @@ \renewcaptionname{ngerman}{\abstractname}{Abstract} %Abstract \@ifpackageloaded{biblatex}{ \ExecuteBibliographyOptions{ - sorting=nyt, bibwarn=true, isbn=false, - url=true + url=false } }{}% \@ifpackageloaded{csquotes}{ diff --git a/src/personal.tex b/src/personal.tex index c49f78a9baeb094702df896d90dc06d5dba34743..c497abf4ac2d919fa4563927f2b37a207690eba6 100644 --- a/src/personal.tex +++ b/src/personal.tex @@ -1,6 +1,6 @@ \author{ - Max Mustermann\thanks{test}, - Mira Musterfrau\thanks{temp}, + Max Mustermann \thanks{test}, + Mira Musterfrau \thanks{temp}, Max Mustermann, Mira Musterfrau, Max Mustermann diff --git a/test.pdf b/test.pdf index 394d52cc6ab45a61a385529e8a47b75efe96db93..5eae6c45749a1f3af9e71f3ace13f84cc785e4a6 100644 Binary files a/test.pdf and b/test.pdf differ diff --git a/test.tex b/test.tex index c64ab0509b13e6ed202d605302415e7c317c0836..ecf848ceeb9eb90d7dc86dede90688936739ec16 100644 --- a/test.tex +++ b/test.tex @@ -3,9 +3,13 @@ \usepackage{color} \usepackage{lipsum} \usepackage{siunitx} +\usepackage{biblatex} +\addbibresource{src/localBibliography.bib} + \begin{document} + \pagenumbering{Roman} \maketitle \declarationAuthorship @@ -31,9 +35,10 @@ noch ein test \normalsubscripts$R_t$ \upsubscripts$R_t$ mit einheit: $R=200\,\milli\ohm+ \SI{0.34567453}{\volt\per\metre}$ + \cite{laboranleitung:physik} \vspace{2cm}\\\pagebreak eine zahl: $3,5+3.5$\\ - +\printbibliography \listoffigures \end{document}