From 924dfac8358e4caeec54b5bce18848ee52f36eac Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Fri, 27 Jan 2023 03:01:16 +0000
Subject: CTAN sync 202301270301

---
 .../contrib/univie-ling/tex/univie-ling-wlg.cls    | 76 ++++++++++++++++++----
 1 file changed, 62 insertions(+), 14 deletions(-)

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

diff --git a/macros/latex/contrib/univie-ling/tex/univie-ling-wlg.cls b/macros/latex/contrib/univie-ling/tex/univie-ling-wlg.cls
index 6abba2c5a5..3d1e9816e3 100644
--- a/macros/latex/contrib/univie-ling/tex/univie-ling-wlg.cls
+++ b/macros/latex/contrib/univie-ling/tex/univie-ling-wlg.cls
@@ -8,6 +8,7 @@
 %%  -- univie-ling-handout.cls: Class for Handouts
 %%  -- univie-ling-expose.cls: Class for PhD Research Proposals
 %%  -- univie-ling-paper.cls: Class for student papers
+%%  -- univie-ling-poster.cls: Class for scientific posters
 %%  -- univie-ling-thesis.cls: Class for BA, MA or PhD theses
 %%  -- univie-ling-wlg.cls: Class for the journal Wiener Linguistische Gazette (this file)
 %%  -- univie-logo-sw.pdf: University of Vienna logo
@@ -33,7 +34,7 @@
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{univie-ling-wlg}[2022/12/06 v.2.2 Univie WLG journal layout (JSp)]
+\ProvidesPackage{univie-ling-wlg}[2023/01/26 v.2.3 Univie WLG journal layout (JSp)]
 
 
 %% ============================================================
@@ -47,6 +48,7 @@
 \newif\if@wlg@expert\@wlg@expertfalse
 \newif\if@wlg@titlepage\@wlg@titlepagefalse
 \newif\if@wlg@specialprint\@wlg@specialprintfalse
+\newif\if@wlg@review\@wlg@reviewfalse
 
 % We use l3keys here since (1) LaTeX2e keys are rather
 % new and (2) do not provide for choice keys yet.
@@ -68,6 +70,20 @@
     % preprint=<true|false>
     preprint.legacy_if_set:n = @wlg@preprint,
     preprint.usage:n = preamble,
+    % type=<paper|review>
+    type .choice:,
+    % paper
+    type / paper .code:n = 
+      { 
+        \@wlg@reviewfalse
+      },
+    % review
+    type / review .code:n = 
+      { 
+        \@wlg@reviewtrue
+      },
+    % no val equals paper
+    type .default:n = {paper},
     % peerrev=<true|false>
     peerrev.legacy_if_set:n = @wlg@peerrev,
     peerrev.usage:n = preamble,
@@ -241,6 +257,10 @@
 \deftranslation[to=English]{argumentation}{argumentation}
 \deftranslation[to=German]{issue}{Ausgabe}
 \deftranslation[to=English]{issue}{Issue}
+\deftranslation[to=German]{review}{Rezension}
+\deftranslation[to=English]{review}{Review}
+\deftranslation[to=German]{reviewedby}{Besprochen von}
+\deftranslation[to=English]{reviewedby}{Reviewed by}
 \deftranslation[to=German]{univie}{Universit\"at Wien}
 \deftranslation[to=English]{univie}{University of Vienna}
 \deftranslation[to=German]{lingdep}{Institut f\"ur Sprachwissenschaft}
@@ -538,6 +558,12 @@
   \else
     \def\and{\texorpdfstring{\unskip\slash}{| }}%
   \fi
+  \if@wlg@review
+     \ifx\@subtitle\@empty\else
+        \PackageWarning{univie-ling-wlg}{subtitle is not supported with type=review}%
+        \global\let\@subtitle\@empty%
+     \fi%
+  \fi
   \if@wlg@titlepage
     \@maketitlepage[#1]%
   \fi
@@ -546,9 +572,15 @@
    \global\@wlg@startpagesettrue
   \fi
   \rehead{\@@author}
-  \lohead{\@@title}
-  \hypersetup{pdfauthor=\@author,
-              pdftitle={\@@title\ -- WLG \@issue\ (\@pubyear)}}
+  \translatelet{\@revtitle}{review}%
+  \lohead{\if@wlg@review\@revtitle\ \enquote{\@@title}\else\@@title\fi}
+  \if@wlg@review
+        \hypersetup{pdfauthor=\@author,
+                  pdftitle={\@revtitle\ \enquote{\@@title} -- WLG \@issue\ (\@pubyear)}}
+  \else
+      \hypersetup{pdfauthor=\@author,
+                  pdftitle={\@@title\ -- WLG \@issue\ (\@pubyear)}}
+  \fi
   \lofoot[\scriptsize\expandafter\url{\wlgurl/fileadmin/user_upload/p_wlg/\@issue\@pubyear/\ljobname.pdf}\\
          \translate{published} \@date]{}
     \par
@@ -637,13 +669,15 @@
           \vskip 3em
         \fi
         \if@wlg@specialprint
-        {\usekomafont{title}{\@title\par}}%
-        \vskip 1em
-        {\ifx\@subtitle\@empty\else\usekomafont{subtitle}{\@subtitle\par}\fi}%
+        \if@wlg@review
+           {\usekomafont{review}{\translate{review}\par\vskip .5em}}%
+        \fi
+        {\if@wlg@review\usekomafont{reviewtitle}\else\usekomafont{title}\fi{\@title\par}}%
+        {\ifx\@subtitle\@empty\else\vskip 1em\usekomafont{subtitle}{\@subtitle\par}\fi}%
         \vskip 2em
         {%
           \usekomafont{author}{%
-              \@author\par
+              \if@wlg@review\translate{reviewedby}: \fi\@author\par
           }%
         }%
           \vfill
@@ -677,6 +711,9 @@
         {\ifx\@issuetitle\@empty\else
             \vskip 1em
             \usekomafont{date}{\translate{specialissue}\par}%
+            \if@wlg@review
+              {\usekomafont{review}{\translate{review}\par}}%
+            \fi
             \usekomafont{title}{\@issuetitle\par}%
                 \vskip 3pt
                 {\ifx\@issuesubtitle\@empty\else\usekomafont{subtitle}{\@issuesubtitle\par}\fi}%
@@ -742,8 +779,15 @@
 }
 
 \renewcommand*{\@maketitle}{%
-  \addcontentsline{toc}{chapter}{\@author\texorpdfstring{\\[5pt]}{: }\@title%
-                       \ifx\@subtitle\empty\else\texorpdfstring{\\}{. }\@subtitle\fi}%
+  \if@wlg@review
+     \addcontentsline{toc}{chapter}{\@author\texorpdfstring{\\[5pt]\translate{review}}{: Review}: \@title%
+                           \if@wlg@review\usekomafont{reviewtitle}%
+                           \else\ifx\@subtitle\empty\else\texorpdfstring{\\}{. }\@subtitle\fi\fi}%
+  \else
+      \addcontentsline{toc}{chapter}{\@author\texorpdfstring{\\[5pt]}{: }\@title%
+                           \if@wlg@review\usekomafont{reviewtitle}%
+                           \else\ifx\@subtitle\empty\else\texorpdfstring{\\}{. }\@subtitle\fi\fi}%
+  \fi
   \next@tdpage
   \global\@topnum=\z@
   \setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative
@@ -776,11 +820,13 @@
       {\usekomafont{subject}{\@subject \par}}%
       \vskip 1.5em
     \fi
-    {\usekomafont{title}{\@title \par}}%
-    \vskip .5em
-    {\ifx\@subtitle\@empty\else\usekomafont{subtitle}\@subtitle\par\fi}%
+    \if@wlg@review
+       {\usekomafont{review}{\translate{review}\par}\vskip .5em}%
+    \fi
+    {\if@wlg@review\usekomafont{reviewtitle}\else\usekomafont{title}\fi{\@title \par}}%
+    {\ifx\@subtitle\@empty\else\vskip .5em\usekomafont{subtitle}\@subtitle\par\fi}%
     \vskip 1em
-    {\usekomafont{author}{\@author\par}}%
+    {\usekomafont{author}{\if@wlg@review\translate{reviewedby}: \fi\@author\par}}%
     {\color{gray}\rule{1\columnwidth}{.7pt}\par}%
   \end{flushleft}%
   \begin{flushright}
@@ -846,6 +892,8 @@
 \setkomafont{subtitle}{\normalsize\normalfont\bfseries}
 \setkomafont{date}{\normalsize\normalfont\mdseries}
 \setkomafont{publishers}{\small\mdseries}
+\newkomafont{review}{\normalfont\mdseries}
+\newkomafont{reviewtitle}{\normalsize\normalfont\bfseries}
 
 
 %% =============================================================
-- 
cgit v1.2.3

