Skip to content
Snippets Groups Projects
Commit 06d91e5f authored by Jan Wille's avatar Jan Wille
Browse files

fix geometry issue

the pagenumber was misssaligned when using `todos`
parent 5722be50
No related branches found
No related tags found
No related merge requests found
...@@ -14,10 +14,6 @@ All notable changes to this project will be documented in this file. ...@@ -14,10 +14,6 @@ All notable changes to this project will be documented in this file.
- the margins are now set using relative values, which makes them adapt to different paper sizes - the margins are now set using relative values, which makes them adapt to different paper sizes
- add alignment parameter to `\declarationofauthorship`, it is still by default aligned to the bottom of the page, but can now be pushed to the top using `\declarationofauthorship[t]` - add alignment parameter to `\declarationofauthorship`, it is still by default aligned to the bottom of the page, but can now be pushed to the top using `\declarationofauthorship[t]`
## Fixed
- `geometry` is now deferred until `AtBeginDocument`, which allows the user to load and modify the package in his preamble
## [2.0] ## [2.0]
### Changed ### Changed
......
...@@ -114,10 +114,12 @@ ...@@ -114,10 +114,12 @@
\if@todos \if@todos
% new paperwidth is everything without the right marging plus new stuff for marginpar % new paperwidth is everything without the right marging plus new stuff for marginpar
% rightmargin = ((1-0,75<paperwidth>) - 0.08<bindingoffset>)/2 = 0.915 % rightmargin = ((1-0,75<paperwidth>) - 0.08<bindingoffset>)/2 = 0.915
\PassOptionsToPackage{paperwidth=0.915\paperwidth+\marginparsep+\marginparwidth+0.25cm, right=\marginparsep+\marginparwidth+0.25cm}{geometry} \setlength{\marginparwidth}{6cm}
\PassOptionsToPackage{paperwidth=\dimexpr +0.915\paperwidth+\marginparsep+\marginparwidth+0.25cm, right=\dimexpr +\marginparsep+\marginparwidth+0.25cm}{geometry}
\else \else
\PassOptionsToPackage{nomarginpar}{geometry} \PassOptionsToPackage{nomarginpar}{geometry}
\fi \fi
\RequirePackage{geometry}
% %
% language specific localisation % language specific localisation
\if@german \if@german
...@@ -324,7 +326,6 @@ ...@@ -324,7 +326,6 @@
%% load config at beginning of document %% load config at beginning of document
\AtBeginDocument{ \AtBeginDocument{
\makeatletter \makeatletter
%<!standalone> \RequirePackage{geometry}
%<*!standalone> %<*!standalone>
% solve some common errors: % solve some common errors:
\@ifpackageloaded{biblatex}{ \@ifpackageloaded{biblatex}{
......
...@@ -89,19 +89,21 @@ ...@@ -89,19 +89,21 @@
\RequirePackage{lmodern} \RequirePackage{lmodern}
\RequirePackage{graphicx} \RequirePackage{graphicx}
\RequirePackage{amsmath} \RequirePackage{amsmath}
\if@german\RequirePackage{ziffer}\fi
\PassOptionsToPackage{vmargin=5\baselineskip,bindingoffset=0.08\paperwidth,textwidth=0.75\paperwidth}{geometry} \PassOptionsToPackage{vmargin=5\baselineskip,bindingoffset=0.08\paperwidth,textwidth=0.75\paperwidth}{geometry}
\if@todos \if@todos
\PassOptionsToPackage{paperwidth=0.915\paperwidth+\marginparsep+\marginparwidth+0.25cm, right=\marginparsep+\marginparwidth+0.25cm}{geometry} \setlength{\marginparwidth}{6cm}
\PassOptionsToPackage{paperwidth=\dimexpr +0.915\paperwidth+\marginparsep+\marginparwidth+0.25cm, right=\dimexpr +\marginparsep+\marginparwidth+0.25cm}{geometry}
\else \else
\PassOptionsToPackage{nomarginpar}{geometry} \PassOptionsToPackage{nomarginpar}{geometry}
\fi \fi
\RequirePackage{geometry}
\if@german \if@german
\PassOptionsToPackage{ngerman}{babel} \PassOptionsToPackage{ngerman}{babel}
\else \else
\PassOptionsToPackage{english}{babel} \PassOptionsToPackage{english}{babel}
\fi \fi
\RequirePackage{babel} \RequirePackage{babel}
\iflanguage{ngerman}{\RequirePackage{ziffer}}{}%
\PassOptionsToPackage{headsepline}{scrlayer-scrpage} \PassOptionsToPackage{headsepline}{scrlayer-scrpage}
\RequirePackage{scrlayer-scrpage} \RequirePackage{scrlayer-scrpage}
\RequirePackage{scrhack} \RequirePackage{scrhack}
...@@ -111,7 +113,7 @@ ...@@ -111,7 +113,7 @@
\RequirePackage{caption} \RequirePackage{caption}
\RequirePackage{bookmark} \RequirePackage{bookmark}
\PassOptionsToPackage{babel}{csquotes} \PassOptionsToPackage{babel}{csquotes}
\if@german\PassOptionsToPackage{german=quotes}{csquotes}\fi \iflanguage{ngerman}{\PassOptionsToPackage{german=quotes}{csquotes}}{}%
\RequirePackage{csquotes} \RequirePackage{csquotes}
\MakeOuterQuote{"} \MakeOuterQuote{"}
\if@todos \if@todos
...@@ -123,9 +125,9 @@ ...@@ -123,9 +125,9 @@
\RequirePackage{todonotes} \RequirePackage{todonotes}
\setlength{\marginparwidth}{5.2cm} \setlength{\marginparwidth}{5.2cm}
\else \else
\newcommand{\listoftodos}[1][]{} \newcommand{\listoftodos}[1]{}
\newcommand{\todo}[2][]{} \newcommand{\todo}[2]{}
\newcommand{\missingfigure}[2][]{} \newcommand{\missingfigure}[2]{}
\fi \fi
\RequirePackage{pgffor} \RequirePackage{pgffor}
%% options for not loaded packages ---------------------------------------------------------------- %% options for not loaded packages ----------------------------------------------------------------
...@@ -198,14 +200,15 @@ ...@@ -198,14 +200,15 @@
\g@addto@macro\@floatboxreset\centering \g@addto@macro\@floatboxreset\centering
\setcapwidth{0.8\textwidth} \setcapwidth{0.8\textwidth}
\fi \fi
\if@german \iflanguage{english}{
\renewcaptionname{english}{\figurename}{Fig.}
\renewcaptionname{english}{\tablename}{Tab.}
}{}%
\iflanguage{ngerman}{
\renewcaptionname{ngerman}{\figurename}{Abb.} \renewcaptionname{ngerman}{\figurename}{Abb.}
\renewcaptionname{ngerman}{\tablename}{Tab.} \renewcaptionname{ngerman}{\tablename}{Tab.}
\renewcaptionname{ngerman}{\abstractname}{Abstract} \renewcaptionname{ngerman}{\abstractname}{Abstract}
\else }{}%
\renewcaptionname{english}{\figurename}{Fig.}
\renewcaptionname{english}{\tablename}{Tab.}
\fi
%% styling for itemize %% styling for itemize
\renewcommand{\labelitemi}{$\bullet$} \renewcommand{\labelitemi}{$\bullet$}
...@@ -216,7 +219,7 @@ ...@@ -216,7 +219,7 @@
%% do stuff %% do stuff
\setlength\parindent{0pt} \setlength\parindent{0pt}
\raggedbottom \raggedbottom
\renewcommand{\layercontentsmeasure}{\@empty} \let\layercontentsmeasure\relax
%% custom commands %% custom commands
\newcommand{\uproman}[1]{\uppercase\expandafter{\romannumeral#1}} \newcommand{\uproman}[1]{\uppercase\expandafter{\romannumeral#1}}
...@@ -225,7 +228,6 @@ ...@@ -225,7 +228,6 @@
%% load config at beginning of document %% load config at beginning of document
\AtBeginDocument{ \AtBeginDocument{
\makeatletter \makeatletter
\RequirePackage{geometry}
\@ifpackageloaded{biblatex}{ \@ifpackageloaded{biblatex}{
\renewcommand*{\mkbibacro}[1]{\MakeUppercase{#1}} \renewcommand*{\mkbibacro}[1]{\MakeUppercase{#1}}
}{} }{}
...@@ -241,33 +243,15 @@ ...@@ -241,33 +243,15 @@
\providecommand{\abs}[1]{\ensuremath{\left\vert#1\right\vert}} \providecommand{\abs}[1]{\ensuremath{\left\vert#1\right\vert}}
\makeatother \makeatother
} }
%% decloration of Authorship ---------------------------------------------------------------------- %% declaration of Authorship ----------------------------------------------------------------------
\iflanguage{english}{
\setlocalecaption{english}{authorshipdeclaration}{Declaration of Authorship}
}{}%
\iflanguage{ngerman}{
\setlocalecaption{ngerman}{authorshipdeclaration}{Selbstst\"andigkeitserkl\"arung}
}{}%
\newif\if@oneAuthor \@oneAuthortrue \newif\if@oneAuthor \@oneAuthortrue
\if@german \newcommand{\declarationofauthorship}[1][b]{
\setlocalecaption{ngerman}{dATitle}{Selbstständigkeitserklärung}
\setlocalecaption{ngerman}{dAPronomen}{\if@oneAuthor ich\else wir\fi}
\setlocalecaption{ngerman}{dAPluralendung}{\if@oneAuthor\else n\fi}
\setlocalecaption{ngerman}{dAGenitiv}{\if@oneAuthor mir\else uns\fi}
\setlocalecaption{ngerman}{dAText}{
Hiermit bestätige\dAPluralendungname\space\dAPronomenname, dass die folgende Arbeit eigenständig von \dAGenitivname\space allein erstellt
und unter Berücksichtigung der zur Verfügung gestellten Aufgabenstellung sowie dem Arbeitsmaterial unter Angabe aller verwendeten Quellen
erarbeitet wurde. Die Regelungen und Konsequenzen eines Plagiats, inklusive disziplinarischer Maßnahmen, sind \dAGenitivname\space
bewusst. Insbesondere wurden alle Zitate und gedanklichen Übernahmen als solche kenntlich gemacht.
}
\else
\setlocalecaption{english}{dATitle}{Declaration of Authorship}
\setlocalecaption{english}{dAPronomen}{\if@oneAuthor I\else we\fi}
\setlocalecaption{english}{dAPronomenf}{\if@oneAuthor I\else We\fi}
\setlocalecaption{english}{dAPronomverb}{\if@oneAuthor am\else are\fi}
\setlocalecaption{english}{dAGenitiv}{\if@oneAuthor my\else our\fi}
\setlocalecaption{english}{dAText}{
\dAPronomenfname\space hereby certify that the work \dAPronomenname\space\dAPronomverbname\space submitting is entirely of
\dAGenitivname\space own making except where otherwise indicated. \dAPronomenfname\space\dAPronomverbname\space aware of regulations
concerning plagiarism, including disciplinary actions that may result from it. Any use of the works of any other author, in any form, is
properly acknowledged at their point of use.
}
\fi
\newcommand{\declarationAuthorship}[1][b]{
\let\@param#1 \let\@param#1
\renewcommand{\thanks}{\sbox0} \renewcommand{\thanks}{\sbox0}
\foreach \x [count=\i] in \@author{\ifnum\i>1\global\@oneAuthorfalse\fi} \foreach \x [count=\i] in \@author{\ifnum\i>1\global\@oneAuthorfalse\fi}
...@@ -275,9 +259,21 @@ ...@@ -275,9 +259,21 @@
\if\@param b\vspace*{\fill}\fi \if\@param b\vspace*{\fill}\fi
{\rule{\textwidth}{0.1pt}} {\rule{\textwidth}{0.1pt}}
\vskip 3em \vskip 3em
{\centering\huge\textbf{\dATitlename}\par} {\centering\huge\bfseries\authorshipdeclarationname\par}
\vskip 3em \vskip 3em
{\dATextname\par} \iflanguage{english}{
\if@oneAuthor I\else We\fi\space hereby certify that the work \if@oneAuthor I\else we\fi\space \if@oneAuthor am\else are\fi\space submitting
is entirely of \if@oneAuthor my\else our\fi own making except where otherwise indicated. \if@oneAuthor I\else We\fi\space
\if@oneAuthor am\else are\fi\space aware of regulations concerning plagiarism, including disciplinary actions that may result from it. Any use
of the works of any other author, in any form, is properly acknowledged at their point of use. \par
}{}%
\iflanguage{ngerman}{
Hiermit best{\"a}tige\if@oneAuthor\else n\fi\space \if@oneAuthor ich\else wir\fi, dass die folgende Arbeit eigenst{\"a}ndig von
\if@oneAuthor mir\else uns\fi\space allein erstellt und unter Ber{\"u}cksichtigung der zur Verf{\"u}gung gestellten Aufgabenstellung sowie dem
Arbeitsmaterial unter Angabe aller verwendeten Quellen erarbeitet wurde. Die Regelungen und Konsequenzen eines Plagiats, inklusive
disziplinarischer Ma{\ss}nahmen, sind \if@oneAuthor mir\else uns\fi\space bewusst. Insbesondere wurden alle Zitate und gedanklichen {\"U}bernahmen
als solche kenntlich gemacht. \par
}{}%
{\raggedleft {\raggedleft
\foreach \x in \@author{ \foreach \x in \@author{
\begin{tabular}[t]{r} \begin{tabular}[t]{r}
...@@ -289,6 +285,8 @@ ...@@ -289,6 +285,8 @@
\par} \par}
\if\@param t\vspace*{\fill}\fi \if\@param t\vspace*{\fill}\fi
} }
\let\declarationAuthorship\declarationofauthorship
%% reconfig Titlepage ----------------------------------------------------------------------------- %% reconfig Titlepage -----------------------------------------------------------------------------
\newtoks\@tabtoks \newtoks\@tabtoks
\newcommand\addtabtoks[1]{\global\@tabtoks\expandafter{\the\@tabtoks#1}} \newcommand\addtabtoks[1]{\global\@tabtoks\expandafter{\the\@tabtoks#1}}
...@@ -389,7 +387,7 @@ ...@@ -389,7 +387,7 @@
\vskip 1em \vskip 1em
{\usekomafont{date}{\@date\par}} {\usekomafont{date}{\@date\par}}
\vskip 1em \vskip 1em
{\if\@professor\@empty\else\usekomafont{publishers}{Professor\if@german(in)/Lehrbeauftragte(r)\fi: \@professor}\fi} {\if\@professor\@empty\else\usekomafont{publishers}{Professor\iflanguage{ngerman}{(in)/Lehrbeauftragte(r)}{}: \@professor}\fi}
\ifx\@dedication\@empty\else \ifx\@dedication\@empty\else
\vskip 2em \vskip 2em
{\usekomafont{dedication}{\@dedication \par}}% {\usekomafont{dedication}{\@dedication \par}}%
......
...@@ -89,19 +89,21 @@ ...@@ -89,19 +89,21 @@
\RequirePackage{lmodern} \RequirePackage{lmodern}
\RequirePackage{graphicx} \RequirePackage{graphicx}
\RequirePackage{amsmath} \RequirePackage{amsmath}
\if@german\RequirePackage{ziffer}\fi
\PassOptionsToPackage{vmargin=5\baselineskip,bindingoffset=0.08\paperwidth,textwidth=0.75\paperwidth}{geometry} \PassOptionsToPackage{vmargin=5\baselineskip,bindingoffset=0.08\paperwidth,textwidth=0.75\paperwidth}{geometry}
\if@todos \if@todos
\PassOptionsToPackage{paperwidth=0.915\paperwidth+\marginparsep+\marginparwidth+0.25cm, right=\marginparsep+\marginparwidth+0.25cm}{geometry} \setlength{\marginparwidth}{6cm}
\PassOptionsToPackage{paperwidth=\dimexpr +0.915\paperwidth+\marginparsep+\marginparwidth+0.25cm, right=\dimexpr +\marginparsep+\marginparwidth+0.25cm}{geometry}
\else \else
\PassOptionsToPackage{nomarginpar}{geometry} \PassOptionsToPackage{nomarginpar}{geometry}
\fi \fi
\RequirePackage{geometry}
\if@german \if@german
\PassOptionsToPackage{ngerman}{babel} \PassOptionsToPackage{ngerman}{babel}
\else \else
\PassOptionsToPackage{english}{babel} \PassOptionsToPackage{english}{babel}
\fi \fi
\RequirePackage{babel} \RequirePackage{babel}
\iflanguage{ngerman}{\RequirePackage{ziffer}}{}%
\PassOptionsToPackage{headsepline}{scrlayer-scrpage} \PassOptionsToPackage{headsepline}{scrlayer-scrpage}
\RequirePackage{scrlayer-scrpage} \RequirePackage{scrlayer-scrpage}
\RequirePackage{scrhack} \RequirePackage{scrhack}
...@@ -111,7 +113,7 @@ ...@@ -111,7 +113,7 @@
\RequirePackage{caption} \RequirePackage{caption}
\RequirePackage{bookmark} \RequirePackage{bookmark}
\PassOptionsToPackage{babel}{csquotes} \PassOptionsToPackage{babel}{csquotes}
\if@german\PassOptionsToPackage{german=quotes}{csquotes}\fi \iflanguage{ngerman}{\PassOptionsToPackage{german=quotes}{csquotes}}{}%
\RequirePackage{csquotes} \RequirePackage{csquotes}
\MakeOuterQuote{"} \MakeOuterQuote{"}
\if@todos \if@todos
...@@ -123,9 +125,9 @@ ...@@ -123,9 +125,9 @@
\RequirePackage{todonotes} \RequirePackage{todonotes}
\setlength{\marginparwidth}{5.2cm} \setlength{\marginparwidth}{5.2cm}
\else \else
\newcommand{\listoftodos}[1][]{} \newcommand{\listoftodos}[1]{}
\newcommand{\todo}[2][]{} \newcommand{\todo}[2]{}
\newcommand{\missingfigure}[2][]{} \newcommand{\missingfigure}[2]{}
\fi \fi
\RequirePackage{pgffor} \RequirePackage{pgffor}
%% options for not loaded packages ---------------------------------------------------------------- %% options for not loaded packages ----------------------------------------------------------------
...@@ -199,14 +201,15 @@ ...@@ -199,14 +201,15 @@
\g@addto@macro\@floatboxreset\centering \g@addto@macro\@floatboxreset\centering
\setcapwidth{0.8\textwidth} \setcapwidth{0.8\textwidth}
\fi \fi
\if@german \iflanguage{english}{
\renewcaptionname{english}{\figurename}{Fig.}
\renewcaptionname{english}{\tablename}{Tab.}
}{}%
\iflanguage{ngerman}{
\renewcaptionname{ngerman}{\figurename}{Abb.} \renewcaptionname{ngerman}{\figurename}{Abb.}
\renewcaptionname{ngerman}{\tablename}{Tab.} \renewcaptionname{ngerman}{\tablename}{Tab.}
\renewcaptionname{ngerman}{\abstractname}{Abstract} \renewcaptionname{ngerman}{\abstractname}{Abstract}
\else }{}%
\renewcaptionname{english}{\figurename}{Fig.}
\renewcaptionname{english}{\tablename}{Tab.}
\fi
%% styling for itemize %% styling for itemize
\renewcommand{\labelitemi}{$\bullet$} \renewcommand{\labelitemi}{$\bullet$}
...@@ -217,7 +220,7 @@ ...@@ -217,7 +220,7 @@
%% do stuff %% do stuff
\setlength\parindent{0pt} \setlength\parindent{0pt}
\raggedbottom \raggedbottom
\renewcommand{\layercontentsmeasure}{\@empty} \let\layercontentsmeasure\relax
%% define easy shorthands to switch pagenumbering %% define easy shorthands to switch pagenumbering
\newif\if@mainmatter\@mainmattertrue \newif\if@mainmatter\@mainmattertrue
...@@ -241,7 +244,6 @@ ...@@ -241,7 +244,6 @@
%% load config at beginning of document %% load config at beginning of document
\AtBeginDocument{ \AtBeginDocument{
\makeatletter \makeatletter
\RequirePackage{geometry}
\@ifpackageloaded{biblatex}{ \@ifpackageloaded{biblatex}{
\renewcommand*{\mkbibacro}[1]{\MakeUppercase{#1}} \renewcommand*{\mkbibacro}[1]{\MakeUppercase{#1}}
}{} }{}
...@@ -265,38 +267,23 @@ ...@@ -265,38 +267,23 @@
}{% }{%
\ifx\@keywords\@empty\else \ifx\@keywords\@empty\else
\vskip 2em \vskip 2em
\paragraph{\if@german Schlüsselwörter:\else Keywords:\fi} \paragraph{%
\iflanguage{english}{Keywords}{}%
\iflanguage{ngerman}{Schlüsselwörter}{}%
}
\@keywords \@keywords
\fi \fi
\endquotation \endquotation
} }
%% decloration of Authorship ---------------------------------------------------------------------- %% declaration of Authorship ----------------------------------------------------------------------
\iflanguage{english}{
\setlocalecaption{english}{authorshipdeclaration}{Declaration of Authorship}
}{}%
\iflanguage{ngerman}{
\setlocalecaption{ngerman}{authorshipdeclaration}{Selbstst\"andigkeitserkl\"arung}
}{}%
\newif\if@oneAuthor \@oneAuthortrue \newif\if@oneAuthor \@oneAuthortrue
\if@german \newcommand{\declarationofauthorship}[1][b]{
\setlocalecaption{ngerman}{dATitle}{Selbstständigkeitserklärung}
\setlocalecaption{ngerman}{dAPronomen}{\if@oneAuthor ich\else wir\fi}
\setlocalecaption{ngerman}{dAPluralendung}{\if@oneAuthor\else n\fi}
\setlocalecaption{ngerman}{dAGenitiv}{\if@oneAuthor mir\else uns\fi}
\setlocalecaption{ngerman}{dAText}{
Hiermit bestätige\dAPluralendungname\space\dAPronomenname, dass die folgende Arbeit eigenständig von \dAGenitivname\space allein erstellt
und unter Berücksichtigung der zur Verfügung gestellten Aufgabenstellung sowie dem Arbeitsmaterial unter Angabe aller verwendeten Quellen
erarbeitet wurde. Die Regelungen und Konsequenzen eines Plagiats, inklusive disziplinarischer Maßnahmen, sind \dAGenitivname\space
bewusst. Insbesondere wurden alle Zitate und gedanklichen Übernahmen als solche kenntlich gemacht.
}
\else
\setlocalecaption{english}{dATitle}{Declaration of Authorship}
\setlocalecaption{english}{dAPronomen}{\if@oneAuthor I\else we\fi}
\setlocalecaption{english}{dAPronomenf}{\if@oneAuthor I\else We\fi}
\setlocalecaption{english}{dAPronomverb}{\if@oneAuthor am\else are\fi}
\setlocalecaption{english}{dAGenitiv}{\if@oneAuthor my\else our\fi}
\setlocalecaption{english}{dAText}{
\dAPronomenfname\space hereby certify that the work \dAPronomenname\space\dAPronomverbname\space submitting is entirely of
\dAGenitivname\space own making except where otherwise indicated. \dAPronomenfname\space\dAPronomverbname\space aware of regulations
concerning plagiarism, including disciplinary actions that may result from it. Any use of the works of any other author, in any form, is
properly acknowledged at their point of use.
}
\fi
\newcommand{\declarationAuthorship}[1][b]{
\let\@param#1 \let\@param#1
\renewcommand{\thanks}{\sbox0} \renewcommand{\thanks}{\sbox0}
\foreach \x [count=\i] in \@author{\ifnum\i>1\global\@oneAuthorfalse\fi} \foreach \x [count=\i] in \@author{\ifnum\i>1\global\@oneAuthorfalse\fi}
...@@ -304,9 +291,21 @@ ...@@ -304,9 +291,21 @@
\if\@param b\vspace*{\fill}\fi \if\@param b\vspace*{\fill}\fi
{\rule{\textwidth}{0.1pt}} {\rule{\textwidth}{0.1pt}}
\vskip 3em \vskip 3em
{\centering\huge\textbf{\dATitlename}\par} {\centering\huge\bfseries\authorshipdeclarationname\par}
\vskip 3em \vskip 3em
{\dATextname\par} \iflanguage{english}{
\if@oneAuthor I\else We\fi\space hereby certify that the work \if@oneAuthor I\else we\fi\space \if@oneAuthor am\else are\fi\space submitting
is entirely of \if@oneAuthor my\else our\fi own making except where otherwise indicated. \if@oneAuthor I\else We\fi\space
\if@oneAuthor am\else are\fi\space aware of regulations concerning plagiarism, including disciplinary actions that may result from it. Any use
of the works of any other author, in any form, is properly acknowledged at their point of use. \par
}{}%
\iflanguage{ngerman}{
Hiermit best{\"a}tige\if@oneAuthor\else n\fi\space \if@oneAuthor ich\else wir\fi, dass die folgende Arbeit eigenst{\"a}ndig von
\if@oneAuthor mir\else uns\fi\space allein erstellt und unter Ber{\"u}cksichtigung der zur Verf{\"u}gung gestellten Aufgabenstellung sowie dem
Arbeitsmaterial unter Angabe aller verwendeten Quellen erarbeitet wurde. Die Regelungen und Konsequenzen eines Plagiats, inklusive
disziplinarischer Ma{\ss}nahmen, sind \if@oneAuthor mir\else uns\fi\space bewusst. Insbesondere wurden alle Zitate und gedanklichen {\"U}bernahmen
als solche kenntlich gemacht. \par
}{}%
{\raggedleft {\raggedleft
\foreach \x in \@author{ \foreach \x in \@author{
\begin{tabular}[t]{r} \begin{tabular}[t]{r}
...@@ -318,6 +317,8 @@ ...@@ -318,6 +317,8 @@
\par} \par}
\if\@param t\vspace*{\fill}\fi \if\@param t\vspace*{\fill}\fi
} }
\let\declarationAuthorship\declarationofauthorship
%% reconfig Titlepage ----------------------------------------------------------------------------- %% reconfig Titlepage -----------------------------------------------------------------------------
\newtoks\@tabtoks \newtoks\@tabtoks
\newcommand\addtabtoks[1]{\global\@tabtoks\expandafter{\the\@tabtoks#1}} \newcommand\addtabtoks[1]{\global\@tabtoks\expandafter{\the\@tabtoks#1}}
...@@ -434,7 +435,7 @@ ...@@ -434,7 +435,7 @@
\vskip 1.5em \vskip 1.5em
{\usekomafont{date}{\@date\par}} {\usekomafont{date}{\@date\par}}
\vskip \z@ \@plus3fill \vskip \z@ \@plus3fill
{\if\@professor\@empty\else\usekomafont{publishers}{Professor\if@german(in)/Lehrbeauftragte(r)\fi: \@professor}\fi} {\if\@professor\@empty\else\usekomafont{publishers}{Professor\iflanguage{ngerman}{(in)/Lehrbeauftragte(r)}{}: \@professor}\fi}
\par \par
\endgroup \endgroup
\vskip 3em \vskip 3em
......
...@@ -84,7 +84,6 @@ ...@@ -84,7 +84,6 @@
\RequirePackage{lmodern} \RequirePackage{lmodern}
\RequirePackage{graphicx} \RequirePackage{graphicx}
\RequirePackage{amsmath} \RequirePackage{amsmath}
\if@german\RequirePackage{ziffer}\fi
%% options for not loaded packages ---------------------------------------------------------------- %% options for not loaded packages ----------------------------------------------------------------
\PassOptionsToPackage{free-standing-units}{siunitx} \PassOptionsToPackage{free-standing-units}{siunitx}
\PassOptionsToPackage{european,EFvoltages,straightvoltages,betterproportions}{circuitikz} \PassOptionsToPackage{european,EFvoltages,straightvoltages,betterproportions}{circuitikz}
......
...@@ -25,9 +25,9 @@ ...@@ -25,9 +25,9 @@
} }
}{} }{}
\@ifpackageloaded{siunitx}{ \@ifpackageloaded{siunitx}{
\if@german \iflanguage{ngerman}{
\sisetup{output-decimal-marker={,}} % use comma as dezimal \sisetup{output-decimal-marker={,}} % use comma as dezimal
\fi }{}%
\sisetup{ \sisetup{
tight-spacing=true, tight-spacing=true,
per-mode=symbol, per-mode=symbol,
...@@ -70,9 +70,9 @@ ...@@ -70,9 +70,9 @@
\@ifpackageloaded{pgfplots}{ \@ifpackageloaded{pgfplots}{
\usepgfplotslibrary{fillbetween} % mark areas under or between graphs \usepgfplotslibrary{fillbetween} % mark areas under or between graphs
\usetikzlibrary{patterns} % for using pattern in plots \usetikzlibrary{patterns} % for using pattern in plots
\if@german \iflanguage{ngerman}{
\pgfplotsset{/pgf/number format/use comma} \pgfplotsset{/pgf/number format/use comma}
\fi }{}%
\pgfplotsset{ \pgfplotsset{
compat=1.16, compat=1.16,
/pgf/number format/read comma as period, /pgf/number format/read comma as period,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment