summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/univie-ling/tex/univie-ling-expose.cls
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/univie-ling/tex/univie-ling-expose.cls')
-rw-r--r--macros/latex/contrib/univie-ling/tex/univie-ling-expose.cls50
1 files changed, 48 insertions, 2 deletions
diff --git a/macros/latex/contrib/univie-ling/tex/univie-ling-expose.cls b/macros/latex/contrib/univie-ling/tex/univie-ling-expose.cls
index 83353bfbe3..da8d92a1bf 100644
--- a/macros/latex/contrib/univie-ling/tex/univie-ling-expose.cls
+++ b/macros/latex/contrib/univie-ling/tex/univie-ling-expose.cls
@@ -31,13 +31,15 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{univie-ling-expose}[2021/10/19 v1.15 Univie Linguistic Exposes (JSp)]
+\ProvidesPackage{univie-ling-expose}[2021/11/03 v1.16 Univie Linguistic Exposes (JSp)]
\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
@@ -132,6 +134,24 @@
}
\DeclareOptionX{covington}[true]{\setkeys{uvt}{covington=#1}}
+% 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}%
+}
+\DeclareOptionX{draftmark}[true]{\setkeys{uvt}{draftmark=#1}}
+
% microtype=<true|false>
% Load microtype
\define@boolkey+{uvt}{microtype}[true]{%
@@ -200,6 +220,8 @@
%% ============================================================
\RequirePackage{translations}
+\DeclareTranslation{German}{draft}{ENTWURF}
+\DeclareTranslation{English}{draft}{DRAFT}
\DeclareTranslation{German}{section}{Abschnitt}
\DeclareTranslation{English}{section}{section}
\DeclareTranslation{German}{footnote}{Anm.}
@@ -432,7 +454,7 @@
\end{flushright}
\vspace{2\baselineskip}
\begin{center}
- \bgroup\usekomafont{thesistype}{\GetTranslation{expo}}\egroup
+ {\usekomafont{thesistype}\GetTranslation{expo}}
\end{center}
\vspace{2\baselineskip}
\begin{center}
@@ -713,4 +735,28 @@
\fi
+
+%% =============================================================
+%% DRAFT:
+%% =============================================================
+
+\ifdraftmark
+
+\ifdraftmarkfp
+ \RequirePackage[firstpageonly]{draftwatermark}
+\else
+ \RequirePackage{draftwatermark}
+\fi
+
+\DraftwatermarkOptions{%
+ angle=0,
+ vpos=10pt,
+ anchor=ct,
+ fontsize=14pt,
+ text={\GetTranslation{draft} (\today)}
+}
+
+\fi
+
+
%% Finis.