summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/univie-ling/tex/univie-ling-paper.cls
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/univie-ling/tex/univie-ling-paper.cls')
-rw-r--r--macros/latex/contrib/univie-ling/tex/univie-ling-paper.cls508
1 files changed, 232 insertions, 276 deletions
diff --git a/macros/latex/contrib/univie-ling/tex/univie-ling-paper.cls b/macros/latex/contrib/univie-ling/tex/univie-ling-paper.cls
index 885551b587..34f029b9ed 100644
--- a/macros/latex/contrib/univie-ling/tex/univie-ling-paper.cls
+++ b/macros/latex/contrib/univie-ling/tex/univie-ling-paper.cls
@@ -32,186 +32,146 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{univie-ling-paper}[2022/06/18 v1.19 Univie Linguistic Papers (JSp)]
+\ProvidesPackage{univie-ling-paper}[2022/10/02 v.2.0 Univie Linguistic Papers (JSp)]
%% ============================================================
%% CLASS OPTIONS
%% ============================================================
-\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
-
-% 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-paper}{unknown 'all' value}%
+\newif\if@uvp@biblatex\@uvp@biblatextrue
+\newif\if@uvp@apa\@uvp@apafalse
+\newif\if@uvp@captionp\@uvp@captionptrue
+\newif\if@uvp@draftmark\@uvp@draftmarkfalse
+\newif\if@uvp@draftmarkfp\@uvp@draftmarkfpfalse
+\newif\if@uvp@refsp\@uvp@refsptrue
+\newif\if@uvp@covington\@uvp@covingtontrue
+\newif\if@uvp@microtype\@uvp@microtypetrue
+\newif\if@uvp@multiauthors\@uvp@multiauthorsfalse
+\newif\if@uvp@polyglossia\@uvp@polyglossiafalse
+\newif\if@uvp@psfonts\@uvp@psfontstrue
+\newif\if@uvp@otffonts\@uvp@otffontsfalse
+\newif\if@uvp@usefontenc\@uvp@usefontenctrue
+\def\uvp@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 { uvp }
+{
+ % all=<true|false>
+ % Load all (most) packages
+ all.code:n =
+ { \bool_if:nTF {#1} {
+ \@uvp@biblatextrue
+ \@uvp@captionptrue
+ \@uvp@refsptrue
+ \@uvp@covingtontrue
+ \@uvp@microtypetrue
+ }{
+ \@uvp@biblatexfalse
+ \@uvp@captionpfalse
+ \@uvp@refspfalse
+ \@uvp@covingtonfalse
+ \@uvp@microtypefalse
+ }
+ },
+ all.usage:n = preamble,
+ % apa=<true|false>
+ % Load APA style
+ apa.legacy_if_set:n = @uvp@apa,
+ apa.usage:n = preamble,
+ % biblatex=<true|false>
+ % Load biblatex
+ biblatex.legacy_if_set:n = @uvp@biblatex,
+ biblatex.usage:n = preamble,
+ % caption=<true|false>
+ % Load caption
+ caption.legacy_if_set:n = @uvp@captionp,
+ caption.usage:n = preamble,
+ % covington=<true|false>
+ % Load covington
+ covington.legacy_if_set:n = @uvp@covington,
+ covington.usage:n = preamble,
+ % fontenc=<value|none>
+ % customize font encoding
+ fontenc.code:n =
+ { \str_if_eq:NNTF { #1 } { none } {
+ \@uvp@usefontencfalse
+ }{
+ \def\uvp@fontenc{#1}
+ }
+ },
+ fontenc.usage:n = preamble,
+ % microtype=<true|false>
+ % Load microtype
+ microtype.legacy_if_set:n = @uvp@microtype,
+ microtype.usage:n = preamble,
+ % polyglossia=<true|false>
+ % Load polyglossia
+ polyglossia.legacy_if_set:n = @uvp@polyglossia,
+ polyglossia.code:n =
+ { \bool_if:nT {#1} {
+ \@uvp@psfontsfalse
+ \@uvp@otffontstrue
+ }
+ },
+ polyglossia.usage:n = preamble,
+ % ref=<true|false>
+ % Load varioref and prettyref
+ ref.legacy_if_set:n = @uvp@refsp,
+ ref.usage:n = preamble,
+ % draftmark=<true|false|firstpage>
+ % Print draftmark
+ draftmark .choice:,
+ % true
+ draftmark / true .code:n =
+ { \@uvp@draftmarktrue
+ \@uvp@draftmarkfpfalse
+ },
+ % false
+ draftmark / false .code:n =
+ { \@uvp@draftmarkfalse
+ \@uvp@draftmarkfpfalse
+ },
+ % firstpage
+ draftmark / firstpage .code:n =
+ { \@uvp@draftmarktrue
+ \@uvp@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 =
+ { \@uvp@psfontstrue
+ \@uvp@otffontsfalse
+ },
+ % otf: use OpenType fonts (fontspec)
+ fonts / otf .code:n =
+ { \@uvp@psfontsfalse
+ \@uvp@otffontstrue
+ },
+ % none: Use no font package
+ fonts / none .code:n =
+ { \@uvp@psfontsfalse
+ \@uvp@otffontsfalse
+ },
}
+\ExplSyntaxOff
-% biblatex=<true|false>
-% Load biblatex
-\define@boolkey+{uvt}{biblatex}[true]{%
- \ifKV@uvt@biblatex
- \biblatextrue
- \else
- \biblatexfalse
- \fi
-}{%
- \ClassWarning{univie-ling-paper}{unknown biblatex value}%
-}
-
-% apa=<true|false>
-% Load APA style
-\define@boolkey+{uvt}{apa}[true]{%
- \ifKV@uvt@apa
- \apatrue
- \else
- \apafalse
- \fi
-}{%
- \ClassWarning{univie-ling-paper}{unknown apa value}%
-}
-
-% caption=<true|false>
-% Load caption
-\define@boolkey+{uvt}{caption}[true]{%
- \ifKV@uvt@caption
- \captionptrue
- \else
- \captionpfalse
- \fi
-}{%
- \ClassWarning{univie-ling-paper}{unknown caption 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-paper}{unknown draft value}%
-}
-
-% ref=<true|false>
-% Load varioref and prettyref
-\define@boolkey+{uvt}{ref}[true]{%
- \ifKV@uvt@ref
- \refsptrue
- \else
- \refspfalse
- \fi
-}{%
- \ClassWarning{univie-ling-paper}{unknown ref value}%
-}
-
-% covington=<true|false>
-% Load covington
-\define@boolkey+{uvt}{covington}[true]{%
- \ifKV@uvt@covington
- \covingtontrue
- \else
- \covingtonfalse
- \fi
-}{%
- \ClassWarning{univie-ling-paper}{unknown covington value}%
-}
-
-% microtype=<true|false>
-% Load microtype
-\define@boolkey+{uvt}{microtype}[true]{%
- \ifKV@uvt@microtype
- \microtypetrue
- \else
- \microtypefalse
- \fi
-}{%
- \ClassWarning{univie-ling-paper}{unknown microtype value}%
-}
-
-% polyglossia=<true|false>
-% Load polyglossia
-\define@boolkey+{uvt}{polyglossia}[true]{%
- \ifKV@uvt@polyglossia
- \polyglossiatrue
- \psfontsfalse
- \otffontstrue
- \nofontsfalse
- \else
- \polyglossiafalse
- \fi
-}{%
- \ClassWarning{univie-ling-paper}{unknown polyglossia value}%
-}
+% Process
-% 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-paper}{unknown fonts value '#1'}%
+\IfFormatAtLeastTF{2022-06-01}
+{
+ \ProcessKeyOptions[uvp]
+}{
+ \RequirePackage{l3keys2e}
+ \ProcessKeysOptions{uvp}
}
-% 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}%
-}
-
-% Process
-\ProcessOptionsX<uvt>
%% ============================================================
%% BASE CLASS:
@@ -233,87 +193,85 @@
%% LOCALIZATION:
%% ============================================================
-\RequirePackage{translations}
-\DeclareTranslation{German}{draft}{ENTWURF}
-\DeclareTranslation{English}{draft}{DRAFT}
-\DeclareTranslation{German}{subm}{Abgegeben am}
-\DeclareTranslation{English}{subm}{Submission date:}
-\DeclareTranslation{German}{submto}{bei}
-\DeclareTranslation{English}{submto}{Instructor:}
-\DeclareTranslation{German}{author}{Verfasst von}
-\DeclareTranslation{English}{author}{Author}
-\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}{matnr}{Matrikelnummer}
-\DeclareTranslation{English}{matnr}{Matrikelnummer}
-\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]{subm}{Abgegeben am}
+\deftranslation[to=English]{subm}{Submission date:}
+\deftranslation[to=German]{submto}{bei}
+\deftranslation[to=English]{submto}{Instructor:}
+\deftranslation[to=German]{author}{Verfasst von}
+\deftranslation[to=English]{author}{Author}
+\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]{matnr}{Matrikelnummer}
+\deftranslation[to=English]{matnr}{Matrikelnummer}
+\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
+\if@uvp@psfonts
-\ifuniv@usefontenc
- \RequirePackage[\univ@fontenc]{fontenc}
-\fi
+ \if@uvp@usefontenc
+ \RequirePackage[\uvp@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@uvp@otffonts
+ \RequirePackage{fontspec}
+ \setmainfont{Palatino}
+ \setsansfont{Arial}
+ \setmonofont{SourceCodePro}
\fi
% Hyperlinks
\RequirePackage{url}
\newcommand{\urlprefix}{}
% URLs italic
-\@ifundefined{selectfont}{%
-\def\UrlFont{\it}}
-{\def\UrlFont{\rmfamily\itshape}
-}
+\def\UrlFont{\rmfamily\itshape}
% Fix for \slash-Makro, by Donald Arsenau
\def\slash{/\penalty\exhyphenpenalty\hskip\z@skip}
@@ -343,7 +301,7 @@ This includes all drawings, sketches, graphics and internet sources.}
}{}
\def\lectype{\csuse{lectype@#1}}%
\def\lectypeverb{\csuse{lectypeverb@#1}}%
- \iftoggle{customtexttype}{}{\def\@texttype{\csuse{texttype@#1}}}
+ \if@uvp@customtexttype\else\def\@texttype{\csuse{texttype@#1}}\fi%
}%
}
@@ -359,8 +317,8 @@ This includes all drawings, sketches, graphics and internet sources.}
}
\def\@texttype{Seminararbeit}
-\newtoggle{customtexttype}
-\newcommand\texttype[1]{\def\@texttype{#1}\toggletrue{customtexttype}}
+\newif\if@uvp@customtexttype\@uvp@customtexttypefalse
+\newcommand\texttype[1]{\def\@texttype{#1}\@uvp@customtexttypetrue}
\def\@course{}
\newcommand\course[2]{\setkeys{lec}{lectype=#1}\def\@course{#2}}
\def\@instructor{}
@@ -423,7 +381,7 @@ This includes all drawings, sketches, graphics and internet sources.}
%% LAYOUT
%% ============================================================
-\usepackage{setspace}
+\RequirePackage{setspace}
\onehalfspacing
% Header and pagination:
@@ -446,8 +404,8 @@ This includes all drawings, sketches, graphics and internet sources.}
\raggedbottom
% Micro-typographic polishment
-\ifmicrotype
-\usepackage{microtype}
+\if@uvp@microtype
+ \RequirePackage{microtype}
\fi
% Smart quotes
@@ -466,7 +424,7 @@ This includes all drawings, sketches, graphics and internet sources.}
\else
\def\and{%
\end{tabular}%
- \global\multiauthorstrue%
+ \global\@uvp@multiauthorstrue%
\hskip 1em \@plus.17fil%
\begin{tabular}[t]{c}%
}%
@@ -539,7 +497,7 @@ This includes all drawings, sketches, graphics and internet sources.}
}%
\vskip 2em
{%
- \GetTranslation{author}\par
+ \translate{author}\par
\usekomafont{author}{%
\lineskip 0.75em%
\begin{tabular}[t]{c}
@@ -550,7 +508,7 @@ This includes all drawings, sketches, graphics and internet sources.}
\end{tabular}%
\hskip 1em \@plus.17fil%
\begin{tabular}[t]{c}%
- \GetTranslation{matnr}:~
+ \translate{matnr}:~
}%
\usekomafont{date}{%
\begin{tabular}[t]{c}
@@ -560,7 +518,7 @@ This includes all drawings, sketches, graphics and internet sources.}
\end{tabular}%
\hskip 1em \@plus.17fil%
\begin{tabular}[t]{c}%
- \GetTranslation{stkz}:~
+ \translate{stkz}:~
}%
\lineskip 0.75em%
\begin{tabular}[t]{c}
@@ -569,8 +527,8 @@ This includes all drawings, sketches, graphics and internet sources.}
}%
}%
\vfill
- {\usekomafont{date}{\GetTranslation{subm} \@date \par}}%
- {\ifx\@instructor\@empty\else\usekomafont{date}{\GetTranslation{submto} \@instructor\par}\fi}%
+ {\usekomafont{date}{\translate{subm} \@date \par}}%
+ {\ifx\@instructor\@empty\else\usekomafont{date}{\translate{submto} \@instructor\par}\fi}%
\end{center}\par
\@thanks\let\@thanks\@empty
\null
@@ -643,26 +601,26 @@ This includes all drawings, sketches, graphics and internet sources.}
\hline
}%
\clearpage
-\section*{\GetTranslation{erkl}}
+\section*{\translate{erkl}}
-\ifmultiauthors
-\GetTranslation{selbst1p}
+\if@uvp@multiauthors
+ \translate{selbst1p}
\else
-\GetTranslation{selbst1s}
+ \translate{selbst1s}
\fi
-\GetTranslation{selbst2}
+\translate{selbst2}
-\ifmultiauthors
-\GetTranslation{selbst3p}
+\if@uvp@multiauthors
+ \translate{selbst3p}
\else
-\GetTranslation{selbst3s}
+ \translate{selbst3s}
\fi
\bigskip
\bgroup
\raggedleft
-\GetTranslation{wien}, \today
+\translate{wien}, \today
\vspace{15mm}
@@ -708,21 +666,19 @@ This includes all drawings, sketches, graphics and internet sources.}
\def\labelitemi{--}
% Quote (smaller)
-\newcommand*{\OriginalQuote}{}
-\let\OriginalQuote\quote
-\renewcommand*{\quote}{\OriginalQuote\small}
+\let\@uvp@save@quote\quote
+\renewcommand*{\quote}{\@uvp@save@quote\small}
% Quotation (smaller)
-\newcommand*{\OriginalQuotation}{}
-\let\OriginalQuotation\quotation
-\renewcommand*{\quotation}{\OriginalQuotation\small}
+\let\@uvp@save@quotation\quotation
+\renewcommand*{\quotation}{\@uvp@save@quotation\small}
% Description (normal italic)
\setkomafont{descriptionlabel}{\normalfont\itshape}
-\ifcovington
-\RequirePackage{covington}
-\renewcommand{\p@equation}[1]{(#1)}
+\if@uvp@covington
+ \RequirePackage{covington}
+ \renewcommand{\p@equation}[1]{(#1)}
\fi
%% =============================================================
@@ -732,19 +688,19 @@ This includes all drawings, sketches, graphics and internet sources.}
%% captionlabel bold
\setkomafont{captionlabel}{\bfseries}
-\ifcaptionp
-\RequirePackage[format=plain,
- justification=RaggedRight,
- singlelinecheck=false
- ]{caption}
+\if@uvp@captionp
+ \RequirePackage[format=plain,
+ justification=RaggedRight,
+ singlelinecheck=false
+ ]{caption}
\fi
%% =============================================================
%% POLYGLOSSIA:
%% =============================================================
-\ifpolyglossia
- \ifcaptionp
+\if@uvp@polyglossia
+ \if@uvp@captionp
\RequirePackage{ragged2e}
\fi
\RequirePackage{polyglossia}
@@ -755,9 +711,9 @@ This includes all drawings, sketches, graphics and internet sources.}
%% =============================================================
% Biblatex
-\ifbiblatex
+\if@uvp@biblatex
-\ifapa
+\if@uvp@apa
% Load biblatex with apa style
\RequirePackage[%
style=apa,
@@ -820,10 +776,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 @uvp@apa condition
\fi
-% End of biblatex condition
+% End of @uvp@biblatex condition
\fi
%% =============================================================
@@ -842,7 +798,7 @@ This includes all drawings, sketches, graphics and internet sources.}
%% X-REFS:
%% =============================================================
-\ifrefsp
+\if@uvp@refsp
\AtBeginDocument{%
% Varioref:
@@ -852,19 +808,19 @@ 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{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
@@ -874,9 +830,9 @@ This includes all drawings, sketches, graphics and internet sources.}
%% DRAFT:
%% =============================================================
-\ifdraftmark
+\if@uvp@draftmark
-\ifdraftmarkfp
+\if@uvp@draftmarkfp
\RequirePackage[firstpageonly]{draftwatermark}
\else
\RequirePackage{draftwatermark}
@@ -887,7 +843,7 @@ This includes all drawings, sketches, graphics and internet sources.}
vpos=10pt,
anchor=ct,
fontsize=14pt,
- text={\GetTranslation{draft} (\today)}
+ text={\translate{draft} (\today)}
}
\fi