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 | 39 |
1 files changed, 37 insertions, 2 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..d81cd6a27a1 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/09/28 v.2.9 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:} %% ============================================================ @@ -865,7 +867,22 @@ \DeclarePrintbibliographyDefaults{title=\uvh@bibheading} -% End of @uvh@biblatex condition +\else% @uvt@biblatex condition FALSE + +% Some support for legacy bibtex +\AtBeginDocument{% + \@ifundefined{bibhang}{}{% + \setlength{\bibhang}{\parindent}% + }% + \@ifundefined{bibfont}{}{% + \renewcommand{\bibfont}{\small}% + }% + \@ifundefined{bibsep}{}{% + \setlength\bibsep{0pt}% + }% +} + +% End of @uvt@biblatex condition \fi % Smaller @@ -920,6 +937,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} |