summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/univie-ling/univie-ling-wlg.cls
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/univie-ling/univie-ling-wlg.cls')
-rw-r--r--Master/texmf-dist/tex/latex/univie-ling/univie-ling-wlg.cls92
1 files changed, 71 insertions, 21 deletions
diff --git a/Master/texmf-dist/tex/latex/univie-ling/univie-ling-wlg.cls b/Master/texmf-dist/tex/latex/univie-ling/univie-ling-wlg.cls
index 2dcbbbbe83d..c9b73cc905d 100644
--- a/Master/texmf-dist/tex/latex/univie-ling/univie-ling-wlg.cls
+++ b/Master/texmf-dist/tex/latex/univie-ling/univie-ling-wlg.cls
@@ -32,7 +32,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{univie-ling-wlg}[2020/06/25 v1.12 WLG journal layout (JSp)]
+\ProvidesPackage{univie-ling-wlg}[2020/11/11 v1.13 WLG journal layout (JSp)]
%% ============================================================
@@ -103,6 +103,20 @@
}
\DeclareOptionX{titlepage}{\setkeys{wlg}{ttp=#1}}
+% preprint=<true|false>
+\define@boolkey+{wlg}{preprint}[true]{%
+}{%
+ \ClassWarning{univie-ling-wlg}{unknown preprint value}%
+}
+\DeclareOptionX{preprint}{\setkeys{wlg}{preprint=#1}}
+
+% peerrev=<true|false>
+\define@boolkey+{wlg}{peerrev}[true]{%
+}{%
+ \ClassWarning{univie-ling-wlg}{unknown peerrev value}%
+}
+\DeclareOptionX{peerrev}{\setkeys{wlg}{peerrev=#1}}
+
\DeclareOption*{%
\PassOptionsToClass{\CurrentOption}{scrartcl}%
}
@@ -130,6 +144,18 @@
\fi
\recalctypearea
+
+%% ============================================================
+%% CONFIGURATION:
+%% ============================================================
+
+\newcommand*\edboardAL[1]{\def\wlg@edboardAL{#1}}
+\newcommand*\edboardGL[1]{\def\wlg@edboardGL{#1}}
+\newcommand*\edboardHL[1]{\def\wlg@edboardHL{#1}}
+\newcommand*\techboard[1]{\def\wlg@techboard{#1}}
+
+\InputIfFileExists{univie-ling-wlg.cfg}
+
%% ============================================================
%% FONTS UND MICROTYPOGRAPHY:
%% ============================================================
@@ -182,6 +208,12 @@
\deftranslation[to=English]{published}{Published}
\deftranslation[to=German]{specialprint}{Sonderdruck aus:}
\deftranslation[to=English]{specialprint}{Special print from:}
+\deftranslation[to=German]{peerrev}{Die Beitr\"age dieser Ausgabe wurden einer Doppelblindbegutachtung unterzogen.}
+\deftranslation[to=English]{peerrev}{The papers of this issue have undergone double-blind peer review.}
+\deftranslation[to=German]{preprintfrom}{Vorabdruck aus:}
+\deftranslation[to=English]{preprintfrom}{Preprint from:}
+\deftranslation[to=German]{preprint}{Vorabdruck}
+\deftranslation[to=English]{preprint}{Preprint}
\deftranslation[to=German]{specialissue}{Themenheft}
\deftranslation[to=English]{specialissue}{Special Issue}
\deftranslation[to=German]{keywords}{Schlagw\"orter}
@@ -225,8 +257,8 @@
\AtBeginDocument{%
-\addto\captionsngerman{\renewcommand*\contentsname{Inhalt}}
-\addto\captionsnaustrian{\renewcommand*\contentsname{Inhalt}}
+\addto\captionsngerman{\renewcommand*\contentsname{Inhalt}}%
+\addto\captionsnaustrian{\renewcommand*\contentsname{Inhalt}}%
}
\AtEndPreamble{
% License
@@ -252,11 +284,22 @@
\setlength\itemsep{0pt}
\setlength\parsep{0pt}
\setlength{\parskip}{0pt}
+\def\wlg@lb{}
\item[\textbf{\translate{edboard}:}]
- Markus P\"ochtrager (\translate{general}),\\
- Mi-Cha Flubacher, Jonas Hassemer \& Sabine Lehner (\translate{applied}),\\
- Stefan Schumacher (\translate{hist})
-%\item[\textbf{\translate{techboard}:}] Markus Rheindorf
+ \ifcsname wlg@edboardGL\endcsname
+ \wlg@edboardGL\ (\translate{general}),%
+ \def\wlg@lb{\\}%
+ \fi
+ \ifcsname wlg@edboardAL\endcsname
+ \wlg@lb\wlg@edboardAL\ (\translate{applied}),%
+ \def\wlg@lb{\\}%
+ \fi
+ \ifcsname wlg@edboardHL\endcsname
+ \wlg@lb\wlg@edboardHL\ (\translate{hist})
+ \fi
+\ifcsname wlg@techboard\endcsname
+ \item[\textbf{\translate{techboard}:}] \wlg@techboard
+\fi
\item[\textbf{\translate{contact}:}] \href{mailto:wlg@univie.ac.at}{wlg@univie.ac.at}
\item[\textbf{Homepage:}] \expandafter\url{\wlgurl}
\end{labeling}
@@ -269,6 +312,9 @@
\item[\textbf{\textsc{nbn}:}] BI,078,1063
\end{labeling}
\vspace*{-.5em}
+\ifKV@wlg@peerrev
+ \noindent\translate{peerrev}\par\vspace*{.5em}
+\fi
\noindent\translate{appform}\par
\setlength{\doclicense@hsize}{\textwidth-\doclicense@imagewidth-\doclicense@imagedistance}%
\begin{center}
@@ -333,12 +379,12 @@
\immediate\write\@auxout{\noexpand\newlabel{LastFrontPage}{{}{\arabic{page}}}}%
\@mainmattertrue\@frontmatterfalse%
\pagenumbering{arabic}%
- \def\computelastpage{\pageref{LastPage}}%
+ \def\computelastpage{\pageref{TotPages}}%
\def\startpageref{\thestartpage}%
}
\newcommand*\backmatter{%
\if@openright\cleardoubleoddpage\else\clearpage\fi\@mainmatterfalse\@frontmatterfalse%
- \def\computelastpage{\pageref{LastPage}}%
+ \def\computelastpage{\pageref{TotPages}}%
\def\startpageref{\thestartpage}%
}
@@ -371,9 +417,9 @@
%% TITLING
%% ============================================================
-\RequirePackage{lastpage}
+\RequirePackage{totpages}
\RequirePackage{refcount}
-\def\computelastpage{\pageref{LastPage}}%
+\def\computelastpage{\pageref{TotPages}}%
\def\lastpageref{\computelastpage}%
\def\startpageref{\thestartpage}%
\RequirePackage{xcolor}
@@ -552,8 +598,10 @@ pdfborder={0 0 0}
}%
}%
\vfill
- {\usekomafont{date}{\translate{specialprint} \emph{Wiener Linguistische Gazette} (\versal{WLG})
- \@issue\ (\@pubyear): \startpageref--\lastpageref\par}}
+ {\usekomafont{date}{\ifKV@wlg@preprint\translate{preprintfrom}%
+ \else\translate{specialprint}\fi\ \emph{Wiener Linguistische Gazette}
+ (\versal{WLG})
+ \@issue\ (\@pubyear)\ifKV@wlg@preprint\else: \startpageref--\lastpageref\fi\par}}
{\ifx\@issuetitle\@empty\else
\vskip 1em
\usekomafont{date}{\translate{specialissue} \itshape\@issuetitle
@@ -691,7 +739,9 @@ pdfborder={0 0 0}
\emph{Wiener Linguistische Gazette} (\versal{WLG})\par
\translate{lingdep}\par
\translate{univie}\par
- \translate{issue} \@issue\ (\@pubyear): \thepage--\lastpageref
+ \translate{issue} \@issue\ (\@pubyear):
+ \ifKV@wlg@preprint\translate{preprint}%
+ \else\thepage--\lastpageref\fi%
}%
\vskip \z@ \@plus 1em
{\usekomafont{publishers}{\@publishers \par}}%
@@ -707,7 +757,7 @@ pdfborder={0 0 0}
% Rewrite \include for local LastPage counter
\def\@include#1 {%
\def\ljobname{#1}%
- \def\lastpageref{\pageref{LastPage#1}}%
+ \def\lastpageref{\pageref{TotPages#1}}%
\clearpage
\if@filesw
\immediate\write\@mainaux{\string\@input{#1.aux}}%
@@ -729,7 +779,7 @@ pdfborder={0 0 0}
\newrefsection
\fi
\@input@{#1.tex}%
- \label{LastPage#1}%
+ \label{TotPages#1}%
\clearpage
\@writeckpt{#1}%
\if@filesw
@@ -813,18 +863,18 @@ pdfborder={0 0 0}
\addsec*{\hspace*{2.4em}Abstract}
\quotation\noindent\ignorespaces%
}{%
- \if@twocolumn\else\endquotation\fi
+ \if@twocolumn\else\endquotation\fi%
}
% Keywords
\newcommand\keywords[1]{%
- \begin{quote}
- \begin{labeling}{\textbf{\translate{keywords}:}}
+ \begin{quote}%
+ \begin{labeling}{\textbf{\translate{keywords}:}}%
\RaggedRight\small%
\item[\textbf{\translate{keywords}:}]
#1%
- \end{labeling}
- \end{quote}
+ \end{labeling}%
+ \end{quote}%
}
% Motto