diff --git a/CHANGELOG.md b/CHANGELOG.md index bf42c00bc64a5056d53c0b22cec4a5687f81c8d5..a0c6836abc21bc1927a668c5308ca3eab5b84744 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ All notable changes to this project will be documented in this file. ### Changed - 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 diff --git a/HsH-classes.dtx b/HsH-classes.dtx index d0bc09dfbda4933169a3011a5db57c0fe444d918..73ded9222be45e8c536a46a773296e1f5c7dd1a3 100644 --- a/HsH-classes.dtx +++ b/HsH-classes.dtx @@ -378,12 +378,13 @@ properly acknowledged at their point of use. } \fi -\newcommand\declarationAuthorship{ +\newcommand{\declarationAuthorship}[1][b]{ + \let\@param#1 \renewcommand{\thanks}{\sbox0} \foreach \x [count=\i] in \@author{\ifnum\i>1\global\@oneAuthorfalse\fi} % \thispagestyle{plain} - \vspace*{\fill} + \if\@param b\vspace*{\fill}\fi {\rule{\textwidth}{0.1pt}} \vskip 3em {\centering\huge\textbf{\dATitlename}\par} @@ -399,6 +400,7 @@ \end{tabular} } \par} + \if\@param t\vspace*{\fill}\fi } % %% reconfig Titlepage ----------------------------------------------------------------------------- diff --git a/README.md b/README.md index 43dfc102ad3a033b5030bba178b960a9e69d9848..648d98b0fdc52365fe1b1d7be64bca95966a0f8e 100644 --- a/README.md +++ b/README.md @@ -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 metadata. -### `\declarationAuthorship` -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, -separated by a horizontal line. <br> +### `\declarationAuthorship[align]` +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> The macro is defined in German and English and will automatically match your document language. ### `\abs` diff --git a/src/HsH-article.cls b/src/HsH-article.cls index 8838ab861c94750e7f0287b1c0d20252862980ec..9374487d8aa9340bd430ec5dd41df11a97b64356 100644 --- a/src/HsH-article.cls +++ b/src/HsH-article.cls @@ -273,11 +273,12 @@ properly acknowledged at their point of use. } \fi -\newcommand\declarationAuthorship{ +\newcommand{\declarationAuthorship}[1][b]{ + \let\@param#1 \renewcommand{\thanks}{\sbox0} \foreach \x [count=\i] in \@author{\ifnum\i>1\global\@oneAuthorfalse\fi} \thispagestyle{plain} - \vspace*{\fill} + \if\@param b\vspace*{\fill}\fi {\rule{\textwidth}{0.1pt}} \vskip 3em {\centering\huge\textbf{\dATitlename}\par} @@ -292,6 +293,7 @@ \end{tabular} } \par} + \if\@param t\vspace*{\fill}\fi } %% reconfig Titlepage ----------------------------------------------------------------------------- \newtoks\@tabtoks diff --git a/src/HsH-report.cls b/src/HsH-report.cls index 9cb90d9725ceacb5eeefafaf431679097ff38aca..283879443029158d1cd145a2e9bbfdbd5b632403 100644 --- a/src/HsH-report.cls +++ b/src/HsH-report.cls @@ -289,11 +289,12 @@ properly acknowledged at their point of use. } \fi -\newcommand\declarationAuthorship{ +\newcommand{\declarationAuthorship}[1][b]{ + \let\@param#1 \renewcommand{\thanks}{\sbox0} \foreach \x [count=\i] in \@author{\ifnum\i>1\global\@oneAuthorfalse\fi} \thispagestyle{plain} - \vspace*{\fill} + \if\@param b\vspace*{\fill}\fi {\rule{\textwidth}{0.1pt}} \vskip 3em {\centering\huge\textbf{\dATitlename}\par} @@ -308,6 +309,7 @@ \end{tabular} } \par} + \if\@param t\vspace*{\fill}\fi } %% reconfig Titlepage ----------------------------------------------------------------------------- \newtoks\@tabtoks