English and German support

main
kreativmonkey 5 years ago
parent e64d86bbd8
commit bdc3e5c904

@ -2,8 +2,10 @@
\documentclass[12pt,a4paper,bibliography=totocnumbered,listof=totocnumbered]{scrartcl} \documentclass[12pt,a4paper,bibliography=totocnumbered,listof=totocnumbered]{scrartcl}
% Support German annotation % Support German annotation
$if(lang.de)$
\usepackage[ngerman]{babel} \usepackage[ngerman]{babel}
\usepackage[utf8]{inputenc} \usepackage[utf8]{inputenc}
$endif$
% Symbols: % Symbols:
% Pandoc imports the extensive `amsmath` collection of symbols % Pandoc imports the extensive `amsmath` collection of symbols
@ -206,10 +208,10 @@ $if(toc)$
\titlespacing{\section}{0pt}{12pt plus 4pt minus 2pt}{2pt plus 2pt minus 2pt} \titlespacing{\section}{0pt}{12pt plus 4pt minus 2pt}{2pt plus 2pt minus 2pt}
\singlespacing \singlespacing
\rhead{INHALTSVERZEICHNIS} \rhead{$if(lang.de)$INHALTSVERZEICHNIS$else$TABLE OF CONTENTS$endif$}
\renewcommand{\contentsname}{I Inhaltsverzeichnis} \renewcommand{\contentsname}{I $if(lang.de)$Inhaltsverzeichnis$else$Table of contents$endif$}
\phantomsection \phantomsection
\addcontentsline{toc}{section}{\texorpdfstring{I \hspace{0.35em}Inhaltsverzeichnis}{Inhaltsverzeichnis}} \addcontentsline{toc}{section}{\texorpdfstring{I \hspace{0.35em}$if(lang.de)$Inhaltsverzeichnis$else$Table of contents$endif$}{$if(lang.de)$Inhaltsverzeichnis$else$Table of contents$endif$}}
\addtocounter{section}{1} \addtocounter{section}{1}
\tableofcontents \tableofcontents
\pagebreak \pagebreak
@ -217,7 +219,7 @@ $if(toc)$
$endif$ $endif$
$if(lot)$ $if(lot)$
\rhead{TABELLENVERZEICHNIS} \rhead{$if(lang.de)$TABELLENVERZEICHNIS$else$LIST OF TABLES$endif$}
\pagebreak \pagebreak
\listoftables \listoftables
$endif$ $endif$
@ -225,7 +227,7 @@ $if(lof)$
$if(lot)$ $if(lot)$
% Workaround for the HEADING if you don't use a list of tables % Workaround for the HEADING if you don't use a list of tables
$else$ $else$
\rhead{ABBILDUNGSVERZEICHNIS} \rhead{$if(lang.de)$ABBILDUNGSVERZEICHNIS$else$LIST OF FIGURES$endif$}
$endif$ $endif$
\listoffigures \listoffigures
\pagebreak \pagebreak
@ -247,15 +249,15 @@ $endif$
% Inhalt % Inhalt
% ---------------------------------------------------------------------------------------------------------- % ----------------------------------------------------------------------------------------------------------
% Abstände Überschrift % Abstände Überschrift
\titlespacing{\section}{0pt}{12pt plus 4pt minus 2pt}{-6pt plus 2pt minus 2pt} \titlespacing{\section}{0pt}{12pt plus 4pt minus 2pt}{4pt plus 2pt minus 2pt}
\titlespacing{\subsection}{0pt}{12pt plus 4pt minus 2pt}{-6pt plus 2pt minus 2pt} \titlespacing{\subsection}{0pt}{12pt plus 4pt minus 2pt}{2pt plus 2pt minus 2pt}
\titlespacing{\subsubsection}{0pt}{12pt plus 4pt minus 2pt}{-6pt plus 2pt minus 2pt} \titlespacing{\subsubsection}{0pt}{12pt plus 4pt minus 2pt}{2pt plus 2pt minus 2pt}
% Kopfzeile % Kopfzeile
\renewcommand{\sectionmark}[1]{\markright{#1}} \renewcommand{\sectionmark}[1]{\markright{#1}}
\renewcommand{\subsectionmark}[1]{} \renewcommand{\subsectionmark}[1]{}
\renewcommand{\subsubsectionmark}[1]{} \renewcommand{\subsubsectionmark}[1]{}
\lhead{Abschnitt \thesection} \lhead{$if(lang.de)$Abschnitt$else$Chapter$endif$ \thesection}
\rhead{} %hier kann die rechte Seite der Kopfzeile editiert werden! \rhead{} %hier kann die rechte Seite der Kopfzeile editiert werden!
\onehalfspacing \onehalfspacing
@ -264,25 +266,27 @@ $endif$
\setcounter{section}{0} \setcounter{section}{0}
\pagenumbering{arabic} \pagenumbering{arabic}
\setcounter{page}{1} \setcounter{page}{1}
%\renewcommand{\includegraphics}[1][]{\includegraphics[width=0.9\columnwidth,keepaspectratio]{#1}}
$body$ $body$
$if(biblatex)$ $if(biblatex)$
% ---------------------------------------------------------------------------------------------------------- % ----------------------------------------------------------------------------------------------------------
% Literatur % Literatur
% ---------------------------------------------------------------------------------------------------------- % ----------------------------------------------------------------------------------------------------------
\renewcommand\refname{Quellenverzeichnis} \pagebreak
\bibliographystyle{myalpha} \lhead{}
\rhead{QUELLENVERZEICHNIS} %hier kann die rechte Seite der Kopfzeile editiert werden!
\renewcommand{\refname}{Quellenverzeichnis}
\ bibliographystyle{myalpha}
\bibliography{bibo} \bibliography{bibo}
\pagebreak \pagebreak
\printbibliography$if(biblio-title)$[title=$biblio-title$]$endif$ %\printbibliography$if(biblio-title)$[title=$biblio-title$]$endif$
$endif$ $endif$
$if(insurance)$ $if(insurance)$
% ---------------------------------------------------------------------------------------------------------- % ----------------------------------------------------------------------------------------------------------
% Erklärung zur selbstständigkeit % Erklärung zur selbstständigkeit

Loading…
Cancel
Save