diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/univie-ling/univie-ling-handout.cls')
-rw-r--r-- | Master/texmf-dist/tex/latex/univie-ling/univie-ling-handout.cls | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/latex/univie-ling/univie-ling-handout.cls b/Master/texmf-dist/tex/latex/univie-ling/univie-ling-handout.cls index 22a451329d2..73c5a325da4 100644 --- a/Master/texmf-dist/tex/latex/univie-ling/univie-ling-handout.cls +++ b/Master/texmf-dist/tex/latex/univie-ling/univie-ling-handout.cls @@ -35,7 +35,7 @@ \NeedsTeXFormat{LaTeX2e}[2022/06/01] -\ProvidesClass{univie-ling-handout}[2024/05/09 v.2.5 Univie Ling handout class (JSp)] +\ProvidesClass{univie-ling-handout}[2024/07/23 v.2.7 Univie Ling handout class (JSp)] %% ============================================================ %% CLASS OPTIONS @@ -652,6 +652,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:} %% ============================================================ @@ -920,6 +922,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@uvh@covington \RequirePackage{covington} |