diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/univie-ling/univie-ling-paper.cls')
-rw-r--r-- | Master/texmf-dist/tex/latex/univie-ling/univie-ling-paper.cls | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/latex/univie-ling/univie-ling-paper.cls b/Master/texmf-dist/tex/latex/univie-ling/univie-ling-paper.cls index 4ee6eaf8f8f..88ec71a6fae 100644 --- a/Master/texmf-dist/tex/latex/univie-ling/univie-ling-paper.cls +++ b/Master/texmf-dist/tex/latex/univie-ling/univie-ling-paper.cls @@ -32,7 +32,7 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \NeedsTeXFormat{LaTeX2e}[2022/06/01] -\ProvidesPackage{univie-ling-paper}[2024/05/09 v.2.5 Univie Linguistic Papers (JSp)] +\ProvidesPackage{univie-ling-paper}[2024/06/27 v.2.6 Univie Linguistic Papers (JSp)] %% ============================================================ @@ -243,6 +243,8 @@ This includes all drawings, sketches, graphics and internet sources.} \deftranslation[to=English]{selbst3p}{Furthermore, we declare that this paper has not been submitted as an examination already, neither as a whole nor in parts.} \deftranslation[to=German]{wien}{Wien} \deftranslation[to=English]{wien}{Vienna} +\deftranslation[to=German]{urlaccess}{Abruf am:} +\deftranslation[to=English]{urlaccess}{last accessed:} %% ============================================================ @@ -283,6 +285,24 @@ This includes all drawings, sketches, graphics and internet sources.} % 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}% + {\ifthenelse{\isempty{\wlg@urldate}}{}{% + \ \urldate{\wlg@urldate}% + }}% + {\ \urldate{#2}} + } +} + % Fix for \slash-Makro, by Donald Arsenau \def\slash{/\penalty\exhyphenpenalty\hskip\z@skip} |