From e9894be38f76d67f7c8b8e5d16f16e8b14b96f40 Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Thu, 4 Nov 2021 03:01:01 +0000
Subject: CTAN sync 202111040301

---
 .../contrib/univie-ling/tex/univie-ling-paper.cls  | 55 +++++++++++++++++++++-
 1 file changed, 53 insertions(+), 2 deletions(-)

(limited to 'macros/latex/contrib/univie-ling/tex/univie-ling-paper.cls')

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 7deb27f764..3c06667d6e 100644
--- a/macros/latex/contrib/univie-ling/tex/univie-ling-paper.cls
+++ b/macros/latex/contrib/univie-ling/tex/univie-ling-paper.cls
@@ -31,13 +31,15 @@
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{univie-ling-paper}[2021/10/19 v1.15 Univie Linguistic Papers (JSp)]
+\ProvidesPackage{univie-ling-paper}[2021/11/03 v1.16 Univie Linguistic Papers (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
@@ -107,6 +109,24 @@
 }
 \DeclareOptionX{caption}[true]{\setkeys{uvt}{caption=#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}}
+
 % ref=<true|false>
 % Load varioref and prettyref
 \define@boolkey+{uvt}{ref}[true]{%
@@ -186,6 +206,8 @@
 
 \LoadClass[%
 	   a4paper,
+	   fontsize=12pt,
+	   BCOR=0mm,
 	   captions=tableheading,
 	   listof=totoc,
 	   numbers=noenddot,
@@ -199,6 +221,8 @@
 %% ============================================================
 
 \RequirePackage{translations}
+\DeclareTranslation{German}{draft}{ENTWURF}
+\DeclareTranslation{English}{draft}{DRAFT}
 \DeclareTranslation{German}{subm}{Abgegeben am}
 \DeclareTranslation{English}{subm}{Submission date:}
 \DeclareTranslation{German}{submto}{bei}
@@ -387,6 +411,10 @@ This includes all drawings, sketches, graphics and internet sources.}
 \RequirePackage{scrlayer-scrpage}
 \pagestyle{scrplain}
 
+% Margins
+\RequirePackage{geometry}
+\geometry{tmargin=3cm, bmargin=3cm, lmargin=3cm, rmargin=3cm, footskip=1.5cm}
+
 % No widows and orphans
 % No overfull lines
 \tolerance 1414
@@ -472,7 +500,7 @@ This includes all drawings, sketches, graphics and internet sources.}
        \end{flushright}
          \vspace{2\baselineskip}
        \begin{center}
-         \bgroup\usekomafont{texttype}{\MakeUppercase{\@texttype}\par}\egroup
+         {\usekomafont{texttype}\MakeUppercase{\@texttype}\par}
        \end{center}
       \vspace{2\baselineskip}
       \begin{center}
@@ -816,4 +844,27 @@ This includes all drawings, sketches, graphics and internet sources.}
 
 \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.
-- 
cgit v1.2.3

