summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/univie-ling/tex/univie-ling-poster.cls
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/univie-ling/tex/univie-ling-poster.cls')
-rw-r--r--macros/latex/contrib/univie-ling/tex/univie-ling-poster.cls61
1 files changed, 51 insertions, 10 deletions
diff --git a/macros/latex/contrib/univie-ling/tex/univie-ling-poster.cls b/macros/latex/contrib/univie-ling/tex/univie-ling-poster.cls
index d2b68940af..87f5092d4c 100644
--- a/macros/latex/contrib/univie-ling/tex/univie-ling-poster.cls
+++ b/macros/latex/contrib/univie-ling/tex/univie-ling-poster.cls
@@ -34,7 +34,7 @@
\NeedsTeXFormat{LaTeX2e}[2022/06/01]
-\ProvidesClass{univie-ling-poster}[2024/05/09 v.2.5 Univie Ling poster class (JSp)]
+\ProvidesClass{univie-ling-poster}[2024/07/23 v.2.7 Univie Ling poster class (JSp)]
%% ============================================================
%% CLASS OPTIONS
@@ -52,6 +52,7 @@
\newif\if@uvpt@pplogo\@uvpt@pplogotrue
\newif\if@uvpt@psfonts\@uvpt@psfontstrue
\newif\if@uvpt@refsp\@uvpt@refsptrue
+\newif\if@uvpt@smallmargins\@uvpt@smallmarginsfalse
\newif\if@uvpt@tcolorbox\@uvpt@tcolorboxtrue
\newif\if@uvpt@usefontenc\@uvpt@usefontenctrue
\def\uvpt@fontenc{T1}
@@ -136,6 +137,10 @@
% Set portrait
portrait.legacy_if_set:n = @uvpt@portrait,
portrait.usage:n = preamble,
+ % smallmargins=<true|false>
+ % Set compact margins
+ smallmargins.legacy_if_set:n = @uvpt@smallmargins,
+ smallmargins.usage:n = preamble,
% microtype=<true|false>
% Load microtype
microtype.legacy_if_set:n = @uvpt@microtype,
@@ -287,6 +292,7 @@
\RequirePackage{url}
\def\UrlFont{\rmfamily\itshape\color{black}}
+
%% ============================================================
%% COLORS
%% ============================================================
@@ -384,23 +390,36 @@
% Headline
\newlength\titleindent
\newlength\restwidth
+\newlength\unitindent
+\newlength\lmoffset
\newlength\univieposter@leftmargin
\defbeamertemplate*{headline}{univie}
{%
+ \setlength\unitindent{0pt}%
+ \setlength\lmoffset{0pt}%
\if@uvpt@portrait
- \setlength\titleindent{.09\paperwidth}
- \setlength\restwidth{.991\paperwidth}
+ \if@uvpt@smallmargins
+ \setlength\unitindent{.09\paperwidth}
+ \else
+ \setlength\titleindent{.09\paperwidth}
+ \setlength\restwidth{.991\paperwidth}
+ \fi
\else
- \setlength\titleindent{.065\paperwidth}
- \setlength\restwidth{.935\paperwidth}
- \fi
+ \if@uvpt@smallmargins
+ \setlength\unitindent{.065\paperwidth}%
+ \setlength\lmoffset{-.02\paperwidth}%
+ \else
+ \setlength\titleindent{.065\paperwidth}%
+ \setlength\restwidth{.935\paperwidth}%
+ \fi%
+ \fi%
\begin{columns}
\begin{column}{\titleindent}
\end{column}
    \begin{column}{0.475\textwidth}
\begin{beamercolorbox}[wd=\columnwidth,sep=.028\textwidth]{univieunit}
- \usebox{\uvpt@box@logo}\par
- \vspace*{.7em}\hspace*{\titleindent}\usebeamerfont{univieunit}\usebeamercolor[fg]{univieunit}\uvpt@department
+ \hspace*{\lmoffset}\usebox{\uvpt@box@logo}\par
+ \vspace*{.7em}\hspace*{\lmoffset}\hspace*{\titleindent}\hspace*{\unitindent}\usebeamerfont{univieunit}\usebeamercolor[fg]{univieunit}\uvpt@department
\end{beamercolorbox}
\end{column}
    \begin{column}{0.48\textwidth}
@@ -432,7 +451,7 @@
\end{columns}
\vspace*{-1.8mm}
\begin{beamercolorbox}[sep=.014\textwidth]{titlebox}
- \hspace*{\titleindent}\hspace{.013\textwidth}%
+ \hspace*{.25\lmoffset}\hspace*{\titleindent}\hspace{.013\textwidth}%
\begin{minipage}{.8\textwidth}%
\usebeamerfont{title in headline}\inserttitle\par%
\ifx\insertsubtitle\@empty%
@@ -622,7 +641,9 @@
\else
\addtolength\univieposter@leftmargin{.065\paperwidth}
\fi
- \setbeamersize{text margin left=\univieposter@leftmargin}
+ \if@uvpt@smallmargins\else
+ \setbeamersize{text margin left=\univieposter@leftmargin}
+ \fi
}
@@ -694,6 +715,8 @@
\deftranslation[to=English]{footnote}{fn.}
\deftranslation[to=German]{example}{Beispiel}
\deftranslation[to=English]{example}{example}
+\deftranslation[to=German]{urlaccess}{Abruf am:}
+\deftranslation[to=English]{urlaccess}{last accessed:}
%% =============================================================
@@ -875,6 +898,24 @@
% URLs italic
\def\UrlFont{\rmfamily\itshape}
+% Format URL dates
+\def\wlg@urldate{}
+\newcommand*\SetURLDate[1]{\gdef\wlg@urldate{#1}}
+\AddToHook{begindocument}{
+ \RequirePackage[english,ngerman]{isodate}
+ \numdate
+ \providecommand*\urldate[1]{[\translate{urlaccess} \printdate{#1}]}
+ % Convenience function
+ \NewDocumentCommand\weblink{mo}{%
+ \url{#1}%
+ \IfNoValueTF{#2}%
+ {\ifx\wlg@urldate\empty\else%
+ \ \urldate{\wlg@urldate}%
+ \fi}%
+ {\ \urldate{#2}}%
+ }
+}
+
% Covington
\if@uvpt@covington
% Rename the beamer example(s) environment