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

enable alignment for `\declarationAuthorship`

parent cb02f87a
No related branches found
No related tags found
No related merge requests found
...@@ -8,6 +8,7 @@ All notable changes to this project will be documented in this file. ...@@ -8,6 +8,7 @@ All notable changes to this project will be documented in this file.
### Changed ### Changed
- 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 `\declarationAuthorship`, it is still by default aligned to the bottom of the page, but can now be pushed to the top using `\declarationAuthorship[t]`
## Fixed ## Fixed
......
...@@ -378,12 +378,13 @@ ...@@ -378,12 +378,13 @@
properly acknowledged at their point of use. properly acknowledged at their point of use.
} }
\fi \fi
\newcommand\declarationAuthorship{ \newcommand{\declarationAuthorship}[1][b]{
\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}
% %
\thispagestyle{plain} \thispagestyle{plain}
\vspace*{\fill} \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\textbf{\dATitlename}\par}
...@@ -399,6 +400,7 @@ ...@@ -399,6 +400,7 @@
\end{tabular} \end{tabular}
} }
\par} \par}
\if\@param t\vspace*{\fill}\fi
} }
% %
%% reconfig Titlepage ----------------------------------------------------------------------------- %% reconfig Titlepage -----------------------------------------------------------------------------
......
...@@ -177,9 +177,8 @@ You can use the following macros to define the different information presented o ...@@ -177,9 +177,8 @@ You can use the following macros to define the different information presented o
- `\keywords` will not be printed on the title-page, but rather on the end of the abstract, if you define some. They will also be but into the PDFs - `\keywords` will not be printed on the title-page, but rather on the end of the abstract, if you define some. They will also be but into the PDFs
metadata. metadata.
### `\declarationAuthorship` ### `\declarationAuthorship[align]`
This macro will typeset a declaration of authorship, which is needed for most academic works. It will be produced at the bottom of the current page, This macro will typeset a declaration of authorship, which is needed for most academic works. You can choose to have it on the bottom (`b`) or top (`t`) of the page, with bottom beeing the default. <br>
separated by a horizontal line. <br>
The macro is defined in German and English and will automatically match your document language. The macro is defined in German and English and will automatically match your document language.
### `\abs` ### `\abs`
......
...@@ -273,11 +273,12 @@ ...@@ -273,11 +273,12 @@
properly acknowledged at their point of use. properly acknowledged at their point of use.
} }
\fi \fi
\newcommand\declarationAuthorship{ \newcommand{\declarationAuthorship}[1][b]{
\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}
\thispagestyle{plain} \thispagestyle{plain}
\vspace*{\fill} \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\textbf{\dATitlename}\par}
...@@ -292,6 +293,7 @@ ...@@ -292,6 +293,7 @@
\end{tabular} \end{tabular}
} }
\par} \par}
\if\@param t\vspace*{\fill}\fi
} }
%% reconfig Titlepage ----------------------------------------------------------------------------- %% reconfig Titlepage -----------------------------------------------------------------------------
\newtoks\@tabtoks \newtoks\@tabtoks
......
...@@ -289,11 +289,12 @@ ...@@ -289,11 +289,12 @@
properly acknowledged at their point of use. properly acknowledged at their point of use.
} }
\fi \fi
\newcommand\declarationAuthorship{ \newcommand{\declarationAuthorship}[1][b]{
\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}
\thispagestyle{plain} \thispagestyle{plain}
\vspace*{\fill} \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\textbf{\dATitlename}\par}
...@@ -308,6 +309,7 @@ ...@@ -308,6 +309,7 @@
\end{tabular} \end{tabular}
} }
\par} \par}
\if\@param t\vspace*{\fill}\fi
} }
%% reconfig Titlepage ----------------------------------------------------------------------------- %% reconfig Titlepage -----------------------------------------------------------------------------
\newtoks\@tabtoks \newtoks\@tabtoks
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment