diff --git a/Makefile b/Makefile index f872d8fd424020d7ddd3ecf1accb95120192831c..e11e0f6e138d8da6a19dbfdd6a98fa779f9545b0 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ SUBDIRS = svg plt crc OUTDIR = build TEX_FLAGS = -file-line-error -interaction=nonstopmode COM_FLAGS = -output-directory=$(OUTDIR) -quiet -GARBAGE_PATTERNS = *.aux *.bbl *.bcf *.blg *.idx *.ind *.lof *.lot *.log *.xml *.toc +GARBAGE_PATTERNS = *.aux *.bbl *.bib *.bcf *.blg *.idx *.ind *.lof *.lot *.log *.xml *.toc SUB_TEX_FILES = $(foreach D,$(SUBDIRS),$(wildcard $(D)/*.tex)) SUB_PDF_FILES = $(join $(dir $(SUB_TEX_FILES)),$(addprefix $(OUTDIR)/,$(notdir $(SUB_TEX_FILES:tex=pdf)))) diff --git a/src/HsH-article.cls b/src/HsH-article.cls index e46bda76ea76984dd4b3ac8d7fd300c3cd909d1d..d13d03895281b647a0c44aea76aedc953f3ac695 100644 --- a/src/HsH-article.cls +++ b/src/HsH-article.cls @@ -90,8 +90,9 @@ % config for title, header and footer \newcommand*{\@matrikelnr}{}% \newcommand{\matrikelnr}[1]{\gdef\@matrikelnr{#1}}% -\newcommand*{\@prof}{}% -\newcommand{\professor}[1]{\gdef\@prof{#1}}% +\newcommand*{\@professor}{}% +\newcommand{\professor}[1]{\gdef\@professor{#1}}% +\let\@author\@empty \InputIfFileExists{personal.tex}{ \ClassInfo{\myClassName}{personal.tex was found. Using it...} }{ @@ -118,6 +119,11 @@ \renewcommand{\labelitemiii}{$-$} \renewcommand{\labelitemiv}{$\cdot$} +% custom commands +\newcommand{\includeHsHlogohere}[1][5cm]{\includegraphics[width=#1,page=\HsHlogoPage]{\HsHlogoPath}} +\newcommand{\uproman}[1]{\uppercase\expandafter{\romannumeral#1}} +\newcommand{\lowroman}[1]{\romannumeral#1\relax} + % do stuff \setlength\parindent{0pt} % indentation of new paragraphs \raggedbottom @@ -126,9 +132,39 @@ \renewcommand{\layercontentsmeasure}{\empty} % rulers when using draft disabled \MakeOuterQuote{"} % easy quotationmarks -% custom commands -\newcommand{\includeHsHlogohere}[1][5cm]{\includegraphics[width=#1,page=\HsHlogoPage]{\HsHlogoPath}} -\providecommand{\abs}[1]{\ensuremath{\left\vert#1\right\vert}} % Makro for vertical lines around absolute values + +% load config at beginning of document +\AtBeginDocument{ + \makeatletter + % solve some common errors: + \@ifpackageloaded{biblatex}{ + \renewcommand*{\mkbibacro}[1]{\MakeUppercase{#1}} % solves fontype warning in San-Serif + }{}% + \@ifpackageloaded{subfigure}{ + \newcommand{\subfigureautorefname}{\figureautorefname} + }{}% + % input config File: + \InputIfFileExists{config.tex}{ + \ClassInfo{\myClassName}{config.tex was found. Using it...} + }{ + \ClassInfo{\myClassName}{no config.tex!! I hope you configered it yourself.} + } + % provide some usefull commands: + \providecommand{\abs}[1]{\ensuremath{\left\vert#1\right\vert}} % Makro for vertical lines around absolute values + \makeatother +} + +% nicer abstract: +\renewenvironment{abstract}{% + \chapter*{\centering\abstractname} + \addcontentsline{toc}{chapter}{\abstractname} + \small + \quotation +}{% + \endquotation +} + +% decloration of Authorship \newcommand\declarationAuthorship{ \thispagestyle{plain} \vspace*{\fill} @@ -162,8 +198,8 @@ \newcommand{\proniomeverb}{am} \foreach \x [count=\i] in \@author{ \ifnum\i>1 - \gdef\pronomenf{We} \gdef\pronomen{we} + \gdef\pronomenf{We} \gdef\genitiv{our} \gdef\proniomeverb{are} \else\fi @@ -187,23 +223,6 @@ \end{flushright} } -% load config at beginning of document -\AtBeginDocument{ - \makeatletter - \@ifpackageloaded{biblatex}{ - \renewcommand*{\mkbibacro}[1]{\MakeUppercase{#1}} % solves fontype warning in San-Serif - }{}% - \@ifpackageloaded{subfigure}{ - \newcommand{\subfigureautorefname}{\figureautorefname} - }{}% - \InputIfFileExists{config.tex}{ - \ClassInfo{\myClassName}{config.tex was found. Using it...} - }{ - \ClassInfo{\myClassName}{no config.tex!! I hope you configered it yourself.} - } - \makeatother -} - % reconfig Titlepage \renewcommand\maketitle[1][c]{% \expandafter\ifnum \csname scr@v@3.12\endcsname>\scr@compatibility\relax diff --git a/src/HsH-report.cls b/src/HsH-report.cls index f6e883c96ff7ec3aa9d2f3c869c1eb887394593e..9b652c3e26cfa37cf01667d500e005f99f1d5b97 100644 --- a/src/HsH-report.cls +++ b/src/HsH-report.cls @@ -90,8 +90,9 @@ % config for title, header and footer \newcommand*{\@matrikelnr}{}% \newcommand{\matrikelnr}[1]{\gdef\@matrikelnr{#1}}% -\newcommand*{\@prof}{}% -\newcommand{\professor}[1]{\gdef\@prof{#1}}% +\newcommand*{\@professor}{}% +\newcommand{\professor}[1]{\gdef\@professor{#1}}% +\let\@author\@empty \InputIfFileExists{personal.tex}{ \ClassInfo{\myClassName}{personal.tex was found. Using it...} }{ @@ -119,6 +120,11 @@ \renewcommand{\labelitemiii}{$-$} \renewcommand{\labelitemiv}{$\cdot$} +% custom commands +\newcommand{\includeHsHlogohere}[1][5cm]{\includegraphics[width=#1,page=\HsHlogoPage]{\HsHlogoPath}} +\newcommand{\uproman}[1]{\uppercase\expandafter{\romannumeral#1}} +\newcommand{\lowroman}[1]{\romannumeral#1\relax} + % do stuff \setlength\parindent{0pt} % indentation of new paragraphs \raggedbottom @@ -127,9 +133,39 @@ \renewcommand{\layercontentsmeasure}{\empty} % rulers when using draft disabled \MakeOuterQuote{"} % easy quotationmarks -% custom commands -\newcommand{\includeHsHlogohere}[1][5cm]{\includegraphics[width=#1,page=\HsHlogoPage]{\HsHlogoPath}} -\providecommand{\abs}[1]{\ensuremath{\left\vert#1\right\vert}} % Makro for vertical lines around absolute values + +% load config at beginning of document +\AtBeginDocument{ + \makeatletter + % solve some common errors: + \@ifpackageloaded{biblatex}{ + \renewcommand*{\mkbibacro}[1]{\MakeUppercase{#1}} % solves fontype warning in San-Serif + }{}% + \@ifpackageloaded{subfigure}{ + \newcommand{\subfigureautorefname}{\figureautorefname} + }{}% + % input config File: + \InputIfFileExists{config.tex}{ + \ClassInfo{\myClassName}{config.tex was found. Using it...} + }{ + \ClassInfo{\myClassName}{no config.tex!! I hope you configered it yourself.} + } + % provide some usefull commands: + \providecommand{\abs}[1]{\ensuremath{\left\vert#1\right\vert}} % Makro for vertical lines around absolute values + \makeatother +} + +% nicer abstract: +\renewenvironment{abstract}{% + \chapter*{\centering\abstractname} + \addcontentsline{toc}{chapter}{\abstractname} + \small + \quotation +}{% + \endquotation +} + +% decloration of Authorship \newcommand\declarationAuthorship{ \thispagestyle{plain} \vspace*{\fill} @@ -188,32 +224,6 @@ \end{flushright} } -\renewenvironment{abstract}{% - \chapter*{\centering\abstractname} - \addcontentsline{toc}{chapter}{\abstractname} - \small - \quotation -}{% - \endquotation -} - -% load config at beginning of document -\AtBeginDocument{ - \makeatletter - \@ifpackageloaded{biblatex}{ - \renewcommand*{\mkbibacro}[1]{\MakeUppercase{#1}} % solves fontype warning in San-Serif - }{}% - \@ifpackageloaded{subfigure}{ - \newcommand{\subfigureautorefname}{\figureautorefname} - }{}% - \InputIfFileExists{config.tex}{ - \ClassInfo{\myClassName}{config.tex was found. Using it...} - }{ - \ClassInfo{\myClassName}{no config.tex!! I hope you configered it yourself.} - } - \makeatother -} - % reconfig Titlepage \renewcommand\maketitle[1][l]{% \expandafter\ifnum \csname scr@v@3.12\endcsname>\scr@compatibility\relax @@ -331,7 +341,7 @@ \vskip 1.5em {\usekomafont{date}{\@date \par}}% \vskip \z@ \@plus3fill - {\if\@prof\@empty\else\usekomafont{author}{Professor(in)/Lehrbeauftragte(r): \@prof}\fi} + {\if\@professor\@empty\else\usekomafont{author}{Professor(in)/Lehrbeauftragte(r): \@professor}\fi} %{\usekomafont{publishers}{\@publishers \par}}% \vskip 3em \if\@param c\end{center}\fi @@ -403,7 +413,7 @@ \global\let\@lowertitleback\@empty \global\let\@dedication\@empty \global\let\@matrikelnr\@empty - \global\let\@prof\@empty + \global\let\@professor\@empty \global\let\author\relax \global\let\title\relax \global\let\extratitle\relax diff --git a/src/HsH-standalone.cls b/src/HsH-standalone.cls index cfc2a67a4f5ca1d19721ca60b8fc6086b13326c2..8f8f900ae80a652837292ec5fc3250978e66191b 100644 --- a/src/HsH-standalone.cls +++ b/src/HsH-standalone.cls @@ -94,9 +94,6 @@ % keep compatible \providecommand{\renewcaptionname}[3]{} -% custom commands -\providecommand{\abs}[1]{\ensuremath{\left\vert#1\right\vert}} % Makro for vertical lines around absolute values - % load config at beginning of document \AtBeginDocument{ \makeatletter @@ -108,5 +105,7 @@ }{ \ClassInfo{\myClassName}{no config.tex!! I hope you configured it yourself.} } + % provide some usefull commands: + \providecommand{\abs}[1]{\ensuremath{\left\vert#1\right\vert}} % Makro for vertical lines around absolute values \makeatother } diff --git a/src/config.tex b/src/config.tex index ae172acf4d4b7c603fb880c4e7718693d35e8049..799f808911816d95679276795d0cc064a7596890 100644 --- a/src/config.tex +++ b/src/config.tex @@ -44,6 +44,10 @@ escapeinside={(*@}{@*)}, } }{}% +\@ifpackageloaded{enumitem}{ + \newlist{checklist}{itemize}{2} + \setlist[checklist]{label=$\square$} +}{}% \@ifpackageloaded{csvsimple}{ \csvstyle{every csv}{separator=semicolon} }{}%