diff --git a/src/HsH-article.cls b/src/HsH-article.cls index d13d03895281b647a0c44aea76aedc953f3ac695..2a0f5379835d2d52eee4e70b67b8c014aefde7c8 100644 --- a/src/HsH-article.cls +++ b/src/HsH-article.cls @@ -92,7 +92,10 @@ \newcommand{\matrikelnr}[1]{\gdef\@matrikelnr{#1}}% \newcommand*{\@professor}{}% \newcommand{\professor}[1]{\gdef\@professor{#1}}% +\newcommand*{\@keywords}{}% +\newcommand{\keywords}[1]{\gdef\@keywords{#1}}% \let\@author\@empty +\let\@keywords\@empty \InputIfFileExists{personal.tex}{ \ClassInfo{\myClassName}{personal.tex was found. Using it...} }{ diff --git a/src/HsH-report.cls b/src/HsH-report.cls index 9b652c3e26cfa37cf01667d500e005f99f1d5b97..203c853b3686a51b80e0fe952264a0f308c997f0 100644 --- a/src/HsH-report.cls +++ b/src/HsH-report.cls @@ -92,7 +92,10 @@ \newcommand{\matrikelnr}[1]{\gdef\@matrikelnr{#1}}% \newcommand*{\@professor}{}% \newcommand{\professor}[1]{\gdef\@professor{#1}}% +\newcommand*{\@keywords}{}% +\newcommand{\keywords}[1]{\gdef\@keywords{#1}}% \let\@author\@empty +\let\@keywords\@empty \InputIfFileExists{personal.tex}{ \ClassInfo{\myClassName}{personal.tex was found. Using it...} }{ @@ -162,6 +165,11 @@ \small \quotation }{% + \ifx\@keywords\@empty\else + \vspace{1cm} + \paragraph{\if@german Schlüsselwörter:\else Keywords:\fi} + \@keywords + \fi \endquotation } @@ -214,7 +222,7 @@ 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 \begin{flushright} - \foreach \x [count=\i] in \@author{ + \foreach \x in \@author{ \begin{tabular}[t]{r} \\[3em] \rule{4cm}{0.4pt} \\ diff --git a/src/HsH-standalone.cls b/src/HsH-standalone.cls index 8f8f900ae80a652837292ec5fc3250978e66191b..eef8c00f71573ffacadbdca544d28db848a09568 100644 --- a/src/HsH-standalone.cls +++ b/src/HsH-standalone.cls @@ -61,6 +61,8 @@ \newcommand{\matrikelnr}[1]{\gdef\@matrikelnr{#1}}% \newcommand*{\@professor}{}% \newcommand{\professor}[1]{\gdef\@professor{#1}}% +\newcommand*{\@keywords}{}% +\newcommand{\keywords}[1]{\gdef\@keywords{#1}}% \InputIfFileExists{personal.tex}{ \ClassInfo{\myClassName}{personal.tex was found. Using it...} }{ diff --git a/src/config.tex b/src/config.tex index 799f808911816d95679276795d0cc064a7596890..278e139aabd62be673a81d1a48fcab330ca92ed3 100644 --- a/src/config.tex +++ b/src/config.tex @@ -1,3 +1,14 @@ +% Meta Data for the PDF file using values from personal.tex: +\hypersetup{ + pdfinfo={ + Title={\@title}, + Author={\@author}, + Subject={\@subject}, + Keywords={\@keywords} + } +} + +% abbreviations for names: \if@german \renewcommand{\abstractname}{Abstract} % Abstract \renewcaptionname{ngerman}{\figurename}{Abb.} %Figure @@ -7,11 +18,14 @@ \renewcaptionname{english}{\tablename}{Tab.} %Table \fi +% center all floats: \ifx\KOMAScriptVersion\undefined\else % check if KOMA is used \g@addto@macro\@floatboxreset\centering % center all floats \setcapwidth[c]{0.8\textwidth} % center all captions %\setcapwidth[l]{0.8\textwidth} % leftalign all captions \fi + +% configs for optional packages: \@ifpackageloaded{biblatex}{ \ExecuteBibliographyOptions{ bibwarn=true, diff --git a/src/personal.tex b/src/personal.tex index 12f3756e3d50345926891cf320f0b813f41674eb..625f7924be9d51d0660284067140239907a29228 100644 --- a/src/personal.tex +++ b/src/personal.tex @@ -13,3 +13,4 @@ \subtitle{Subtitle} \date{\today} \professor{Professor} +\keywords{test, baum}