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

PDF meta data will now be set

parent 2f5b3c05
No related branches found
No related tags found
No related merge requests found
...@@ -92,7 +92,10 @@ ...@@ -92,7 +92,10 @@
\newcommand{\matrikelnr}[1]{\gdef\@matrikelnr{#1}}% \newcommand{\matrikelnr}[1]{\gdef\@matrikelnr{#1}}%
\newcommand*{\@professor}{}% \newcommand*{\@professor}{}%
\newcommand{\professor}[1]{\gdef\@professor{#1}}% \newcommand{\professor}[1]{\gdef\@professor{#1}}%
\newcommand*{\@keywords}{}%
\newcommand{\keywords}[1]{\gdef\@keywords{#1}}%
\let\@author\@empty \let\@author\@empty
\let\@keywords\@empty
\InputIfFileExists{personal.tex}{ \InputIfFileExists{personal.tex}{
\ClassInfo{\myClassName}{personal.tex was found. Using it...} \ClassInfo{\myClassName}{personal.tex was found. Using it...}
}{ }{
......
...@@ -92,7 +92,10 @@ ...@@ -92,7 +92,10 @@
\newcommand{\matrikelnr}[1]{\gdef\@matrikelnr{#1}}% \newcommand{\matrikelnr}[1]{\gdef\@matrikelnr{#1}}%
\newcommand*{\@professor}{}% \newcommand*{\@professor}{}%
\newcommand{\professor}[1]{\gdef\@professor{#1}}% \newcommand{\professor}[1]{\gdef\@professor{#1}}%
\newcommand*{\@keywords}{}%
\newcommand{\keywords}[1]{\gdef\@keywords{#1}}%
\let\@author\@empty \let\@author\@empty
\let\@keywords\@empty
\InputIfFileExists{personal.tex}{ \InputIfFileExists{personal.tex}{
\ClassInfo{\myClassName}{personal.tex was found. Using it...} \ClassInfo{\myClassName}{personal.tex was found. Using it...}
}{ }{
...@@ -162,6 +165,11 @@ ...@@ -162,6 +165,11 @@
\small \small
\quotation \quotation
}{% }{%
\ifx\@keywords\@empty\else
\vspace{1cm}
\paragraph{\if@german Schlüsselwörter:\else Keywords:\fi}
\@keywords
\fi
\endquotation \endquotation
} }
...@@ -214,7 +222,7 @@ ...@@ -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. 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 }\fi
\begin{flushright} \begin{flushright}
\foreach \x [count=\i] in \@author{ \foreach \x in \@author{
\begin{tabular}[t]{r} \begin{tabular}[t]{r}
\\[3em] \\[3em]
\rule{4cm}{0.4pt} \\ \rule{4cm}{0.4pt} \\
......
...@@ -61,6 +61,8 @@ ...@@ -61,6 +61,8 @@
\newcommand{\matrikelnr}[1]{\gdef\@matrikelnr{#1}}% \newcommand{\matrikelnr}[1]{\gdef\@matrikelnr{#1}}%
\newcommand*{\@professor}{}% \newcommand*{\@professor}{}%
\newcommand{\professor}[1]{\gdef\@professor{#1}}% \newcommand{\professor}[1]{\gdef\@professor{#1}}%
\newcommand*{\@keywords}{}%
\newcommand{\keywords}[1]{\gdef\@keywords{#1}}%
\InputIfFileExists{personal.tex}{ \InputIfFileExists{personal.tex}{
\ClassInfo{\myClassName}{personal.tex was found. Using it...} \ClassInfo{\myClassName}{personal.tex was found. Using it...}
}{ }{
......
% 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 \if@german
\renewcommand{\abstractname}{Abstract} % Abstract \renewcommand{\abstractname}{Abstract} % Abstract
\renewcaptionname{ngerman}{\figurename}{Abb.} %Figure \renewcaptionname{ngerman}{\figurename}{Abb.} %Figure
...@@ -7,11 +18,14 @@ ...@@ -7,11 +18,14 @@
\renewcaptionname{english}{\tablename}{Tab.} %Table \renewcaptionname{english}{\tablename}{Tab.} %Table
\fi \fi
% center all floats:
\ifx\KOMAScriptVersion\undefined\else % check if KOMA is used \ifx\KOMAScriptVersion\undefined\else % check if KOMA is used
\g@addto@macro\@floatboxreset\centering % center all floats \g@addto@macro\@floatboxreset\centering % center all floats
\setcapwidth[c]{0.8\textwidth} % center all captions \setcapwidth[c]{0.8\textwidth} % center all captions
%\setcapwidth[l]{0.8\textwidth} % leftalign all captions %\setcapwidth[l]{0.8\textwidth} % leftalign all captions
\fi \fi
% configs for optional packages:
\@ifpackageloaded{biblatex}{ \@ifpackageloaded{biblatex}{
\ExecuteBibliographyOptions{ \ExecuteBibliographyOptions{
bibwarn=true, bibwarn=true,
......
...@@ -13,3 +13,4 @@ ...@@ -13,3 +13,4 @@
\subtitle{Subtitle} \subtitle{Subtitle}
\date{\today} \date{\today}
\professor{Professor} \professor{Professor}
\keywords{test, baum}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment