summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/univie-ling/tex/univie-ling-paper.cls
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-11-04 03:01:01 +0000
committerNorbert Preining <norbert@preining.info>2021-11-04 03:01:01 +0000
commite9894be38f76d67f7c8b8e5d16f16e8b14b96f40 (patch)
treed72663aac6223211507c56cdebcde4abfea4e3d3 /macros/latex/contrib/univie-ling/tex/univie-ling-paper.cls
parent6c5c4d12f5c136357ca758e5e9cb85ee7c4513a4 (diff)
CTAN sync 202111040301
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.cls55
1 files changed, 53 insertions, 2 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 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.