Language Support Issues! Need more fixes!!

main
Sebastian Preisner 4 years ago
parent f7b7b7835a
commit d67bcca4d6

@ -1,11 +1,20 @@
% TeX für WBH B-Prüfungen % TeX für WBH B-Prüfungen
\documentclass[12pt,a4paper,bibliography=totocnumbered,listof=totocnumbered]{scrartcl} \documentclass[
12pt,
a4paper,
$if(lang)$
$babel-lang$,
$endif$
bibliography=totocnumbered,
listof=totocnumbered
]{scrartcl}
% Support German annotation % Support German annotation
$if(lang.de)$ %$if(lang)$
\usepackage[ngerman]{babel} %\usepackage[ngerman]{babel}
\usepackage[utf8]{inputenc} %\usepackage[utf8]{inputenc}
$endif$ %$endif$
% Symbols: % Symbols:
% Pandoc imports the extensive `amsmath` collection of symbols % Pandoc imports the extensive `amsmath` collection of symbols
@ -73,13 +82,15 @@ $if(author)$
pdfauthor={$if(author.name)$$author.name$$else$$author$$endif$$if(author.matrikelnr)$, Matrikelnummer: $author.matrikelnr$$endif$}, pdfauthor={$if(author.name)$$author.name$$else$$author$$endif$$if(author.matrikelnr)$, Matrikelnummer: $author.matrikelnr$$endif$},
$endif$ $endif$
$if(studium.studiengang)$ $if(studium.studiengang)$
pdfsubject={Studiengang: $studium.studiengang$}, pdfsubject={Studiengang: $studium.studiengang$},
$endif$ $endif$
pdfcreator={\LaTeX\ with package \flqq hyperref\frqq}, pdfcreator={\LaTeX\ with package \flqq hyperref\frqq},
pdfproducer={pdfTeX \the\pdftexversion.\pdftexrevision}, pdfproducer={pdfTeX \the\pdftexversion.\pdftexrevision},
pdfkeywords={$if(aufgabe.typ)$$aufgabe.typ$$endif$, $if(author.matrikelnr)$$author.matrikelnr$$endif$, $if(aufgabe.code)$$aufgabe.code$$endif$ $if(keywords)$ $for(keywords)$$keywords$$sep$, $endfor$ $endif$}, pdfkeywords={$if(aufgabe.typ)$$aufgabe.typ$$endif$, $if(author.matrikelnr)$$author.matrikelnr$$endif$, $if(aufgabe.code)$$aufgabe.code$$endif$ $if(keywords)$ $for(keywords)$$keywords$$sep$, $endfor$ $endif$},
pdfnewwindow=true, pdfnewwindow=true,
pdflang=$if(lang)$$lang$$else$de$endif$, $if(lang)$
pdflang=$lang$,
$endif$
pdfdisplaydoctitle=true, colorlinks=true, linkcolor=black, citecolor=gray, filecolor=magenta, urlcolor=black} pdfdisplaydoctitle=true, colorlinks=true, linkcolor=black, citecolor=gray, filecolor=magenta, urlcolor=black}
% \pdfinfo{/CreationDate (D:20170605133321)} % \pdfinfo{/CreationDate (D:20170605133321)}
\renewcommand{\familydefault}{\sfdefault} \renewcommand{\familydefault}{\sfdefault}
@ -205,10 +216,10 @@ $if(toc)$
\settowidth{\cftfignumwidth}{Abb. 10\quad} \settowidth{\cftfignumwidth}{Abb. 10\quad}
\singlespacing \singlespacing
\rhead{$if(lang.de)$INHALTSVERZEICHNIS$else$TABLE OF CONTENTS$endif$} \rhead{$if(lang)$INHALTSVERZEICHNIS$else$TABLE OF CONTENTS$endif$}
\renewcommand{\contentsname}{I $if(lang.de)$Inhaltsverzeichnis$else$Table of contents$endif$} \renewcommand{\contentsname}{I $if(lang)$Inhaltsverzeichnis$else$Table of contents$endif$}
\phantomsection \phantomsection
\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$}} \addcontentsline{toc}{section}{\texorpdfstring{I \hspace{0.35em}$if(lang)$Inhaltsverzeichnis$else$Table of contents$endif$}{$if(lang)$Inhaltsverzeichnis$else$Table of contents$endif$}}
\addtocounter{section}{1} \addtocounter{section}{1}
\tableofcontents \tableofcontents
\pagebreak \pagebreak
@ -216,7 +227,7 @@ $if(toc)$
$endif$ $endif$
$if(lot)$ $if(lot)$
\rhead{$if(lang.de)$TABELLENVERZEICHNIS$else$LIST OF TABLES$endif$} \rhead{$if(lang)$TABELLENVERZEICHNIS$else$LIST OF TABLES$endif$}
\pagebreak \pagebreak
\listoftables \listoftables
$endif$ $endif$
@ -224,7 +235,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{$if(lang.de)$ABBILDUNGSVERZEICHNIS$else$LIST OF FIGURES$endif$} \rhead{$if(lang)$ABBILDUNGSVERZEICHNIS$else$LIST OF FIGURES$endif$}
$endif$ $endif$
\listoffigures \listoffigures
\pagebreak \pagebreak
@ -249,7 +260,7 @@ $endif$
\renewcommand{\sectionmark}[1]{\markright{#1}} \renewcommand{\sectionmark}[1]{\markright{#1}}
\renewcommand{\subsectionmark}[1]{} \renewcommand{\subsectionmark}[1]{}
\renewcommand{\subsubsectionmark}[1]{} \renewcommand{\subsubsectionmark}[1]{}
\lhead{$if(lang.de)$Abschnitt$else$Chapter$endif$ \thesection} \lhead{$if(lang)$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

Loading…
Cancel
Save