summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/univie-ling/tex/univie-ling-thesis.cls
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/univie-ling/tex/univie-ling-thesis.cls')
-rw-r--r--macros/latex/contrib/univie-ling/tex/univie-ling-thesis.cls543
1 files changed, 245 insertions, 298 deletions
diff --git a/macros/latex/contrib/univie-ling/tex/univie-ling-thesis.cls b/macros/latex/contrib/univie-ling/tex/univie-ling-thesis.cls
index 220f115f53..8cc29a83ac 100644
--- a/macros/latex/contrib/univie-ling/tex/univie-ling-thesis.cls
+++ b/macros/latex/contrib/univie-ling/tex/univie-ling-thesis.cls
@@ -32,7 +32,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{univie-ling-thesis}[2022/06/18 v1.19 Univie Linguistic Theses (JSp)]
+\ProvidesPackage{univie-ling-thesis}[2022/10/02 v.2.0 Univie Linguistic Theses (JSp)]
%% ============================================================
@@ -41,204 +41,149 @@
\RequirePackage{xkeyval}
-\newif\ifbiblatex\biblatextrue
-\newif\ifapa\apafalse
-\newif\ifcaptionp\captionptrue
-\newif\ifdraftmark\draftmarkfalse
-\newif\ifdraftmarkfp\draftmarkfpfalse
-\newif\ifrefsp\refsptrue
-\newif\ifcovington\covingtontrue
-\newif\ifmicrotype\microtypetrue
-\newif\ifmultiauthors\multiauthorsfalse
-\newif\ifpolyglossia\polyglossiafalse
-\newif\ifpsfonts\psfontstrue
-\newif\ifotffonts\otffontsfalse
-\newif\ifnofonts\nofontsfalse
-\newif\iffdegree\fdegreefalse
-\newif\ifpdfa\pdfafalse
-
-% all=<true|false>
-% Load all packages
-\define@boolkey+{uvt}{all}[true]{%
- \ifKV@uvt@all
- \biblatextrue
- \captionptrue
- \refsptrue
- \covingtontrue
- \microtypetrue
- \else
- \biblatexfalse
- \captionpfalse
- \refspfalse
- \covingtonfalse
- \microtypefalse
- \fi
-}{%
- \ClassWarning{univie-ling-thesis}{unknown 'all' value}%
-}
-
-% biblatex=<true|false>
-% Load biblatex
-\define@boolkey+{uvt}{biblatex}[true]{%
- \ifKV@uvt@biblatex
- \biblatextrue
- \else
- \biblatexfalse
- \fi
-}{%
- \ClassWarning{univie-ling-thesis}{unknown biblatex value}%
+\newif\if@uvt@apa\@uvt@apafalse
+\newif\if@uvt@biblatex\@uvt@biblatextrue
+\newif\if@uvt@captionp\@uvt@captionptrue
+\newif\if@uvt@covington\@uvt@covingtontrue
+\newif\if@uvt@draftmark\@uvt@draftmarkfalse
+\newif\if@uvt@draftmarkfp\@uvt@draftmarkfpfalse
+\newif\if@uvt@fdegree\@uvt@fdegreefalse
+\newif\if@uvt@microtype\@uvt@microtypetrue
+\newif\if@uvt@multiauthors\@uvt@multiauthorsfalse
+\newif\if@uvt@otffonts\@uvt@otffontsfalse
+\newif\if@uvt@pdfa\@uvt@pdfafalse
+\newif\if@uvt@polyglossia\@uvt@polyglossiafalse
+\newif\if@uvt@psfonts\@uvt@psfontstrue
+\newif\if@uvt@refsp\@uvt@refsptrue
+\newif\if@uvt@usefontenc\@uvt@usefontenctrue
+\def\uvt@fontenc{T1}
+
+% We use l3keys here since (1) LaTeX2e keys are rather
+% new and (2) do not provide for choice keys yet.
+\ExplSyntaxOn
+\keys_define:nn { uvt }
+{
+ % all=<true|false>
+ % Load all (most) packages
+ all.code:n =
+ { \bool_if:nTF {#1} {
+ \@uvt@biblatextrue
+ \@uvt@captionptrue
+ \@uvt@refsptrue
+ \@uvt@covingtontrue
+ \@uvt@microtypetrue
+ }{
+ \@uvt@biblatexfalse
+ \@uvt@captionpfalse
+ \@uvt@refspfalse
+ \@uvt@covingtonfalse
+ \@uvt@microtypefalse
+ }
+ },
+ all.usage:n = preamble,
+ % apa=<true|false>
+ % Load APA style
+ apa.legacy_if_set:n = @uvt@apa,
+ apa.usage:n = preamble,
+ % biblatex=<true|false>
+ % Load biblatex
+ biblatex.legacy_if_set:n = @uvt@biblatex,
+ biblatex.usage:n = preamble,
+ % caption=<true|false>
+ % Load caption
+ caption.legacy_if_set:n = @uvt@captionp,
+ caption.usage:n = preamble,
+ % covington=<true|false>
+ % Load covington
+ covington.legacy_if_set:n = @uvt@covington,
+ covington.usage:n = preamble,
+ % fdegree=<true|false>
+ % Female degree forms
+ fdegree.legacy_if_set:n = @uvt@fdegree,
+ fdegree.usage:n = preamble,
+ % fontenc=<value|none>
+ % customize font encoding
+ fontenc.code:n =
+ { \str_if_eq:NNTF { #1 } { none } {
+ \@uvt@usefontencfalse
+ }{
+ \def\uvt@fontenc{#1}
+ }
+ },
+ fontenc.usage:n = preamble,
+ % microtype=<true|false>
+ % Load microtype
+ microtype.legacy_if_set:n = @uvt@microtype,
+ microtype.usage:n = preamble,
+ % pdfa=<true|false>
+ % PDF/A
+ pdfa.legacy_if_set:n = @uvt@pdfa,
+ pdfa.usage:n = preamble,
+ % polyglossia=<true|false>
+ % Load polyglossia
+ polyglossia.legacy_if_set:n = @uvt@polyglossia,
+ polyglossia.code:n =
+ { \bool_if:nT {#1} {
+ \@uvt@psfontsfalse
+ \@uvt@otffontstrue
+ }
+ },
+ polyglossia.usage:n = preamble,
+ % ref=<true|false>
+ % Load varioref and prettyref
+ ref.legacy_if_set:n = @uvt@refsp,
+ ref.usage:n = preamble,
+ % draftmark=<true|false|firstpage>
+ % Print draftmark
+ draftmark .choice:,
+ % true
+ draftmark / true .code:n =
+ { \@uvt@draftmarktrue
+ \@uvt@draftmarkfpfalse
+ },
+ % false
+ draftmark / false .code:n =
+ { \@uvt@draftmarkfalse
+ \@uvt@draftmarkfpfalse
+ },
+ % firstpage
+ draftmark / firstpage .code:n =
+ { \@uvt@draftmarktrue
+ \@uvt@draftmarkfptrue
+ },
+ % no val equals to true
+ draftmark .default:n = {true},
+ % fonts=<ps|otf|none>
+ % Select font scheme
+ fonts .choice:,
+ % ps: use PostScript fonts (classic LaTeX)
+ fonts / ps .code:n =
+ { \@uvt@psfontstrue
+ \@uvt@otffontsfalse
+ },
+ % otf: use OpenType fonts (fontspec)
+ fonts / otf .code:n =
+ { \@uvt@psfontsfalse
+ \@uvt@otffontstrue
+ },
+ % none: Use no font package
+ fonts / none .code:n =
+ { \@uvt@psfontsfalse
+ \@uvt@otffontsfalse
+ },
}
+\ExplSyntaxOff
-% apa=<true|false>
-% Load APA style
-\define@boolkey+{uvt}{apa}[true]{%
- \ifKV@uvt@apa
- \apatrue
- \else
- \apafalse
- \fi
-}{%
- \ClassWarning{univie-ling-thesis}{unknown apa value}%
-}
-
-% caption=<true|false>
-% Load caption
-\define@boolkey+{uvt}{caption}[true]{%
- \ifKV@uvt@caption
- \captionptrue
- \else
- \captionpfalse
- \fi
-}{%
- \ClassWarning{univie-ling-thesis}{unknown caption value}%
-}
-
-% ref=<true|false>
-% Load varioref and prettyref
-\define@boolkey+{uvt}{ref}[true]{%
- \ifKV@uvt@ref
- \refsptrue
- \else
- \refspfalse
- \fi
-}{%
- \ClassWarning{univie-ling-thesis}{unknown ref value}%
-}
-
-% covington=<true|false>
-% Load covington
-\define@boolkey+{uvt}{covington}[true]{%
- \ifKV@uvt@covington
- \covingtontrue
- \else
- \covingtonfalse
- \fi
-}{%
- \ClassWarning{univie-ling-thesis}{unknown covington value}%
-}
-
-% microtype=<true|false>
-% Load microtype
-\define@boolkey+{uvt}{microtype}[true]{%
- \ifKV@uvt@microtype
- \microtypetrue
- \else
- \microtypefalse
- \fi
-}{%
- \ClassWarning{univie-ling-thesis}{unknown microtype value}%
-}
-
-% fdegree=<true|false>
-% Female degree forms
-\define@boolkey+{uvt}{fdegree}[true]{%
- \ifKV@uvt@fdegree
- \fdegreetrue
- \else
- \fdegreefalse
- \fi
-}{%
- \ClassWarning{univie-ling-thesis}{unknown fdegree value}%
-}
-
-% draftmark=<true|false>
-% Print draftmark
-\define@choicekey*+{uvt}{draftmark}[\val\nr]{true,false,firstpage}{%
- \ifcase\nr\relax% true:
- \draftmarktrue
- \draftmarkfpfalse
- \or% false:
- \draftmarkfalse
- \draftmarkfpfalse
- \or% firstpage:
- \draftmarktrue
- \draftmarkfptrue
- \fi
-}{%
- \ClassWarning{univie-ling-thesis}{unknown draft value}%
-}
-
-% polyglossia=<true|false>
-% Load polyglossia
-\define@boolkey+{uvt}{polyglossia}[true]{%
- \ifKV@uvt@polyglossia
- \polyglossiatrue
- \psfontsfalse
- \otffontstrue
- \nofontsfalse
- \else
- \polyglossiafalse
- \fi
-}{%
- \ClassWarning{univie-ling-thesis}{unknown polyglossia value}%
-}
-
-% pdfa=<true|false>
-% PDF/A
-\define@boolkey+{uvt}{pdfa}[true]{%
- \ifKV@uvt@pdfa
- \pdfatrue
- \else
- \pdfafalse
- \fi
-}{%
- \ClassWarning{univie-ling-thesis}{unknown pdfa value}%
-}
-
-% fonts=<ps|otf|none>
-\define@choicekey*+{uvt}{fonts}[\val\nr]{ps,otf,none}{%
- \ifcase\nr\relax% ps: use PostScript fonts (classic LaTeX)
- \psfontstrue
- \otffontsfalse
- \nofontsfalse
- \or% otf: use OpenType fonts (fontspec)
- \psfontsfalse
- \otffontstrue
- \nofontsfalse
- \or% none: Use no font package
- \psfontsfalse
- \otffontsfalse
- \nofontstrue
- \fi
-}{%
- \PackageWarning{univie-ling-thesis}{unknown fonts value '#1'}%
-}
+% Process
-% fontenc=<value|false>
-% customize font encoding
-\newif\ifuniv@usefontenc\univ@usefontenctrue
-\def\univ@fontenc{T1}
-\define@choicekey*+{uvt}{fontenc}[\val\nr]{none}{%
- \ifcase\nr\relax% none:
- \univ@usefontencfalse
- \fi
-}{%
- \def\univ@fontenc{#1}%
+\IfFormatAtLeastTF{2022-06-01}
+{
+ \ProcessKeyOptions[uvt]
+}{
+ \RequirePackage{l3keys2e}
+ \ProcessKeysOptions{uvt}
}
-% Process
-\ProcessOptionsX<uvt>
-
%% ============================================================
%% BASE CLASS:
%% ============================================================
@@ -258,67 +203,70 @@
%% LOCALIZATION:
%% ============================================================
-\RequirePackage{translations}
-\DeclareTranslation{German}{draft}{ENTWURF}
-\DeclareTranslation{English}{draft}{DRAFT}
-\DeclareTranslation{German}{section}{Abschnitt}
-\DeclareTranslation{English}{section}{section}
-\DeclareTranslation{German}{footnote}{Anm.}
-\DeclareTranslation{English}{footnote}{fn.}
-\DeclareTranslation{German}{example}{Beispiel}
-\DeclareTranslation{English}{example}{example}
-\DeclareTranslation{German}{stkz}{Studienkennzahl}
-\DeclareTranslation{English}{stkz}{Studienkennzahl}
-\DeclareTranslation{German}{erkl}{Erkl\"arung}
-\DeclareTranslation{English}{erkl}{Declaration}
-\DeclareTranslation{German}{selbst1s}{Hiermit versichere ich, dass ich die vorliegende Arbeit selbst\"andig verfasst
+\RequirePackage{translator}
+\languagealias{naustrian}{German}
+\deftranslation[to=German]{draft}{ENTWURF}
+\deftranslation[to=English]{draft}{DRAFT}
+\deftranslation[to=German]{chapter}{Kapitel}
+\deftranslation[to=English]{chapter}{chapter}
+\deftranslation[to=German]{section}{Abschnitt}
+\deftranslation[to=English]{section}{section}
+\deftranslation[to=German]{footnote}{Anm.}
+\deftranslation[to=English]{footnote}{fn.}
+\deftranslation[to=German]{example}{Beispiel}
+\deftranslation[to=English]{example}{example}
+\deftranslation[to=German]{stkz}{Studienkennzahl}
+\deftranslation[to=English]{stkz}{Studienkennzahl}
+\deftranslation[to=German]{erkl}{Erkl\"arung}
+\deftranslation[to=English]{erkl}{Declaration}
+\deftranslation[to=German]{selbst1s}{Hiermit versichere ich, dass ich die vorliegende Arbeit selbst\"andig verfasst
und keine anderen als die angegebenen Hilfsmittel benutzt habe.}
-\DeclareTranslation{German}{selbst1p}{Hiermit versichern wir, dass wir die vorliegende Arbeit selbst\"andig verfasst
+\deftranslation[to=German]{selbst1p}{Hiermit versichern wir, dass wir die vorliegende Arbeit selbst\"andig verfasst
und keine anderen als die angegebenen Hilfsmittel benutzt haben.}
-\DeclareTranslation{German}{selbst2}{Die Stellen der Arbeit, die anderen Quellen im Wortlaut oder dem Sinn nach entnommen wurden, sind durch Herkunftsangaben kenntlich gemacht.
+\deftranslation[to=German]{selbst2}{Die Stellen der Arbeit, die anderen Quellen im Wortlaut oder dem Sinn nach entnommen wurden, sind durch Herkunftsangaben kenntlich gemacht.
Dies gilt auch f\"ur Zeichnungen, Skizzen, bildliche Darstellungen sowie f\"ur Quellen aus dem Internet.}
-\DeclareTranslation{German}{selbst3s}{Ich versichere ferner, dass ich die vorliegende Arbeit weder ganz noch in Teilen bereits als
+\deftranslation[to=German]{selbst3s}{Ich versichere ferner, dass ich die vorliegende Arbeit weder ganz noch in Teilen bereits als
Pr\"ufungsleistung vorgelegt habe.}
-\DeclareTranslation{German}{selbst3p}{Wir versichern ferner, dass wir die vorliegende Arbeit weder ganz noch in Teilen bereits als
+\deftranslation[to=German]{selbst3p}{Wir versichern ferner, dass wir die vorliegende Arbeit weder ganz noch in Teilen bereits als
Pr\"ufungsleistung vorgelegt haben.}
-\DeclareTranslation{English}{selbst1s}{I hereby declare that this paper is entirely my own work and that I used no source material or aids other than those stipulated.}
-\DeclareTranslation{English}{selbst1p}{We hereby declare that this paper is entirely our own work and that we used no source material or aids other than those stipulated.}
-\DeclareTranslation{English}{selbst2}{No part of it has been copied from any work produced by any other person or copied from any other source without reference to the source.
+\deftranslation[to=English]{selbst1s}{I hereby declare that this paper is entirely my own work and that I used no source material or aids other than those stipulated.}
+\deftranslation[to=English]{selbst1p}{We hereby declare that this paper is entirely our own work and that we used no source material or aids other than those stipulated.}
+\deftranslation[to=English]{selbst2}{No part of it has been copied from any work produced by any other person or copied from any other source without reference to the source.
This includes all drawings, sketches, graphics and internet sources.}
-\DeclareTranslation{English}{selbst3s}{Furthermore, I declare that this paper has not been submitted as an examination already, neither as a whole nor in parts.}
-\DeclareTranslation{English}{selbst3p}{Furthermore, we declare that this paper has not been submitted as an examination already, neither as a whole nor in parts.}
-\DeclareTranslation{German}{wien}{Wien}
-\DeclareTranslation{English}{wien}{Vienna}
+\deftranslation[to=English]{selbst3s}{Furthermore, I declare that this paper has not been submitted as an examination already, neither as a whole nor in parts.}
+\deftranslation[to=English]{selbst3p}{Furthermore, we declare that this paper has not been submitted as an examination already, neither as a whole nor in parts.}
+\deftranslation[to=German]{wien}{Wien}
+\deftranslation[to=English]{wien}{Vienna}
%% ============================================================
%% FONTS AND EMPHASIZING:
%% ============================================================
-\ifpsfonts
-
-\RequirePackage[T1]{fontenc}\ifuniv@usefontenc
- \RequirePackage[\univ@fontenc]{fontenc}
-\fi
+\if@uvt@psfonts
+ \RequirePackage[T1]{fontenc}
+ \if@uvt@usefontenc
+ \RequirePackage[\uvt@fontenc]{fontenc}
+ \fi
-% Palatino
-\RequirePackage[osf]{mathpazo}
+ % Palatino
+ \RequirePackage[osf]{mathpazo}
-% Arial or Helvetica
-\IfFileExists{uarial.sty}{%
-\RequirePackage{uarial}
-}{%
-\RequirePackage{helvet}
-}
+ % Arial or Helvetica
+ \IfFileExists{uarial.sty}{%
+ \RequirePackage{uarial}
+ }{%
+ \RequirePackage{helvet}
+ }
-% Source Code Pro (Courier)
-\RequirePackage[scale=.93]{sourcecodepro}
+ % Source Code Pro (Courier)
+ \RequirePackage[scale=.93]{sourcecodepro}
\fi
-\ifotffonts
-\RequirePackage{fontspec}
-\setmainfont{Palatino}
-\setsansfont{Arial}
-\setmonofont{SourceCodePro}
+\if@uvt@otffonts
+ \RequirePackage{fontspec}
+ \setmainfont{Palatino}
+ \setsansfont{Arial}
+ \setmonofont{SourceCodePro}
\fi
% Hyperlinks
@@ -363,7 +311,7 @@ This includes all drawings, sketches, graphics and internet sources.}
\def\@thesistype@en{\csuse{thesistype@#1@en}}
\def\@dirtype{\csuse{dirtype@#1}}
\def\@dirtype@en{\csuse{dirtype@#1@en}}
- \iffdegree
+ \if@uvt@fdegree
\def\@degree{\csuse{degree@#1@f}}
\else
\def\@degree{\csuse{degree@#1}}
@@ -476,7 +424,7 @@ This includes all drawings, sketches, graphics and internet sources.}
\renewcommand{\sectionmark}[1]{\markright{\thesection.\ #1}}
\RequirePackage{scrlayer-scrpage}
\renewcommand{\headfont}{\small\rmfamily}
-\clearscrheadings
+\clearmainofpairofpagestyles
\ihead{\headmark}
\ohead{\pagemark}
\automark{chapter}
@@ -494,8 +442,8 @@ This includes all drawings, sketches, graphics and internet sources.}
\raggedbottom
% Micro-typographic polishment
-\ifmicrotype
-\usepackage{microtype}
+\if@uvt@microtype
+ \RequirePackage{microtype}
\fi
% Smart quotes
@@ -515,7 +463,7 @@ This includes all drawings, sketches, graphics and internet sources.}
\else
\def\and{%
\end{tabular}%
- \global\multiauthorstrue%
+ \global\@uvt@multiauthorstrue%
\hskip 1em \@plus.17fil%
\begin{tabular}[t]{c}%
}%
@@ -577,7 +525,7 @@ This includes all drawings, sketches, graphics and internet sources.}
\fi
}%
{\ifx\@volume\@empty\else%
- \vskip 1em\usekomafont{baende}{Band \@volume\ von \@volumes\ Bänden\,/\,volume \@volume\ of \@volumes\ volumes}%
+ \vskip 1em\usekomafont{baende}{Band \@volume\ von \@volumes\ B\"anden\,/\,volume \@volume\ of \@volumes\ volumes}%
\fi%
}%
\vskip 2em
@@ -668,26 +616,26 @@ This includes all drawings, sketches, graphics and internet sources.}
}%
\clearpage
\thispagestyle{plain}%
-\section*{\GetTranslation{erkl}}
+\section*{\translate{erkl}}
-\ifmultiauthors
-\GetTranslation{selbst1p}
+\if@uvt@multiauthors
+ \translate{selbst1p}
\else
-\GetTranslation{selbst1s}
+ \translate{selbst1s}
\fi
-\GetTranslation{selbst2}
+\translate{selbst2}
-\ifmultiauthors
-\GetTranslation{selbst3p}
+\if@uvt@multiauthors
+ \translate{selbst3p}
\else
-\GetTranslation{selbst3s}
+ \translate{selbst3s}
\fi
\bigskip
\bgroup
\raggedleft
-\GetTranslation{wien}, \today
+\translate{wien}, \today
\vspace{15mm}
@@ -734,21 +682,19 @@ This includes all drawings, sketches, graphics and internet sources.}
\def\labelitemi{--}
% Quote (smaller)
-\newcommand*{\OriginalQuote}{}
-\let\OriginalQuote\quote
-\renewcommand*{\quote}{\OriginalQuote\small}
+\let\@uvt@save@quote\quote
+\renewcommand*{\quote}{\@uvt@save@quote\small}
% Quotation (smaller)
-\newcommand*{\OriginalQuotation}{}
-\let\OriginalQuotation\quotation
-\renewcommand*{\quotation}{\OriginalQuotation\small}
+\let\@uvt@save@quotation\quotation
+\renewcommand*{\quotation}{\@uvt@save@quotation\small}
% Description (normal italic)
\setkomafont{descriptionlabel}{\normalfont\itshape}
-\ifcovington
-\RequirePackage{covington}
-\renewcommand{\p@equation}[1]{(#1)}
+\if@uvt@covington
+ \RequirePackage{covington}
+ \renewcommand{\p@equation}[1]{(#1)}
\fi
%% =============================================================
@@ -758,11 +704,11 @@ This includes all drawings, sketches, graphics and internet sources.}
%% captionlabel bold
\setkomafont{captionlabel}{\bfseries}
-\ifcaptionp
-\RequirePackage[format=plain,
- justification=RaggedRight,
- singlelinecheck=false
- ]{caption}
+\if@uvt@captionp
+ \RequirePackage[format=plain,
+ justification=RaggedRight,
+ singlelinecheck=false
+ ]{caption}
\fi
@@ -770,7 +716,7 @@ This includes all drawings, sketches, graphics and internet sources.}
%% PDF-A:
%% =============================================================
-\ifpdfa
+\if@uvt@pdfa
\RequirePackage[a-1b]{pdfx}
\hypersetup{pdfborder={0 0 0}}
\fi
@@ -779,8 +725,8 @@ This includes all drawings, sketches, graphics and internet sources.}
%% POLYGLOSSIA:
%% =============================================================
-\ifpolyglossia
- \ifcaptionp
+\if@uvt@polyglossia
+ \if@uvt@captionp
\RequirePackage{ragged2e}
\fi
\RequirePackage{polyglossia}
@@ -791,9 +737,9 @@ This includes all drawings, sketches, graphics and internet sources.}
%% =============================================================
% Biblatex
-\ifbiblatex
+\if@uvt@biblatex
-\ifapa
+\if@uvt@apa
% Load biblatex with apa style
\RequirePackage[%
style=apa,
@@ -856,10 +802,10 @@ This includes all drawings, sketches, graphics and internet sources.}
% Change cite command for integrated csquotes env.
\SetCiteCommand{\parencite}
-% End of apa condition
+% End of @uvt@apa condition
\fi
-% End of biblatex condition
+% End of @uvt@biblatex condition
\fi
%% =============================================================
@@ -868,9 +814,9 @@ This includes all drawings, sketches, graphics and internet sources.}
\let\origtableofcontents\tableofcontents
\renewcommand*\tableofcontents{%
-\thispagestyle{plain}
-\origtableofcontents
-\clearpage
+ \thispagestyle{plain}
+ \origtableofcontents
+ \clearpage
}
@@ -878,7 +824,7 @@ This includes all drawings, sketches, graphics and internet sources.}
%% X-REFS:
%% =============================================================
-\ifrefsp
+\if@uvt@refsp
\AtBeginDocument{%
% Varioref:
@@ -888,19 +834,20 @@ This includes all drawings, sketches, graphics and internet sources.}
\def\reftextfaceafter{auf der gegen\"uberliegenden Seite}%
\def\reftextbefore{auf der \reftextvario{vorhergehenden}{vorangegangenen} Seite}%
\def\reftextfacebefore{auf der gegen\"uberliegenden Seite}%
- \def\reftextfaraway[1]{auf S.~\pageref{##1}}%
- \def\reftextpagerange[2]{auf S.~\pageref{##1}--\pageref{##2}}%
+ \def\reftextfaraway#1{auf S.~\pageref{#1}}%
+ \def\reftextpagerange#1#2{auf S.~\pageref{#1}--\pageref{#2}}%
}%
% Prettyref:
% (varioref-Befehle mit eingebunden)
\RequirePackage{prettyref}
- \newrefformat{sec}{\GetTranslation{section}~\ref{#1}}
- \newrefformat{sub}{\GetTranslation{section}~\ref{#1}}
- \newrefformat{anm}{\GetTranslation{footnote}~\ref{#1}}
+ \newrefformat{cha}{\translate{chapter}~\vref{#1}}
+ \newrefformat{sec}{\translate{section}~\ref{#1}}
+ \newrefformat{sub}{\translate{section}~\ref{#1}}
+ \newrefformat{anm}{\translate{footnote}~\ref{#1}}
\newrefformat{app}{\appendixname~\vref{#1}}
\newrefformat{tab}{\tablename~\vref{#1}}
\newrefformat{fig}{\figurename~\vref{#1}}
- \newrefformat{exa}{\GetTranslation{example}~\vref{#1}}
+ \newrefformat{exa}{\translate{example}~\vref{#1}}
}
\fi
@@ -910,21 +857,21 @@ This includes all drawings, sketches, graphics and internet sources.}
%% DRAFT:
%% =============================================================
-\ifdraftmark
+\if@uvt@draftmark
-\ifdraftmarkfp
- \RequirePackage[firstpageonly]{draftwatermark}
-\else
- \RequirePackage{draftwatermark}
-\fi
+ \if@uvt@draftmarkfp
+ \RequirePackage[firstpageonly]{draftwatermark}
+ \else
+ \RequirePackage{draftwatermark}
+ \fi
-\DraftwatermarkOptions{%
- angle=0,
- vpos=10pt,
- anchor=ct,
- fontsize=14pt,
- text={\GetTranslation{draft} (\today)}
-}
+ \DraftwatermarkOptions{%
+ angle=0,
+ vpos=10pt,
+ anchor=ct,
+ fontsize=14pt,
+ text={\translate{draft} (\today)}
+ }
\fi