diff options
Diffstat (limited to 'macros/latex/contrib/univie-ling/doc/univie-ling-expose.tex')
-rw-r--r-- | macros/latex/contrib/univie-ling/doc/univie-ling-expose.tex | 40 |
1 files changed, 39 insertions, 1 deletions
diff --git a/macros/latex/contrib/univie-ling/doc/univie-ling-expose.tex b/macros/latex/contrib/univie-ling/doc/univie-ling-expose.tex index 9a9fc48809..c3d1c66805 100644 --- a/macros/latex/contrib/univie-ling/doc/univie-ling-expose.tex +++ b/macros/latex/contrib/univie-ling/doc/univie-ling-expose.tex @@ -63,7 +63,7 @@ \author{\texorpdfstring{Jürgen Spitzmüller% \thanks{Please report issues via \protect\url{https://github.com/jspitz/univie-ling}.}}{Jürgen Spitzmüller}} -\date{Version 2.5, 2024/05/09} +\date{Version 2.7, 2024/07/23} \maketitle @@ -102,6 +102,7 @@ The following class and packages are required and loaded by \uvlt: \item \textsf{csquotes}: Context sensitive quotations. \item \textsf{datetime2}: Date localization. \item \textsf{graphicx}: Graphic support. + \item \textsf{isodate}: Format URL dates. \item \textsf{l3keys}: Key-value interface for class options. \item \textsf{scrlayer-scrpage}: Page layout settings. \item \textsf{setspace}: Line spacing adjustments. @@ -268,6 +269,34 @@ You can redefine each of these commands, if needed, like this: \renewcommand*\Meaning[1]{\enquote*{#1}} \end{lstlisting} +\section{Hyperlinks} + +The stylesheet requires you to always give last access dates to web links (URLs). To make this easier, +\uvlt\ provides a number of convenience macros. To begin with, you can easily enter URLs with the last date you +accessed the site with the function +\begin{lstlisting}[language={[LaTeX]TeX},basicstyle={\small\ttfamily},frame=single,morekeywords={weblink}] +\weblink{<URL>}[<date>] +\end{lstlisting} +% +This will format the date in the preferred way (``[last accessed: <date>]''), localized to English or German. +The argument can be given in the form YYYY-MM-DD, DD/MM/YYYY, or DD.MM.YYYY, e.g. +\begin{lstlisting}[language={[LaTeX]TeX},basicstyle={\small\ttfamily},frame=single,morekeywords={weblink}] +\weblink{https://linguistics.univie.ac.at}[27/06/2024] +\end{lstlisting} +% +will print: \url{https://linguistics.univie.ac.at} [last accessed: 27/06/2024]. +If you do not give the optional date argument, no date is printed unless you have specified a general last access date +by means of the function +\begin{lstlisting}[language={[LaTeX]TeX},basicstyle={\small\ttfamily},frame=single,morekeywords={SetURLDate}] +\SetURLDate{<date>} +\end{lstlisting} +% +which takes the same date format as argument. This function might come in handy if you have the same access date +for all, or many, URLs. And it lets you update all URL access dates with a single change. + +For hyperlinks without date, you can also use the legacy command \jcsmacro{url\{<URL>\}}. +To output the date information only, you can use the macro \jcsmacro{urldate\{<date>\}}. + \section{Linguistic examples and glosses} The class automatically loads the \textsf{covington} package which provides macros for examples and glosses. @@ -341,6 +370,15 @@ Templates are provided as well: \section{Release History} \begin{itemize} + \item 2024/07/23 (v.\,2.7) + \begin{itemize} + \item Fix spacing after \jfcsmacro{weblink}. + \item Fix empty argument check in \jfcsmacro{weblink}. + \end{itemize} + \item 2024/06/27 (v.\,2.6) + \begin{itemize} + \item Provide \jcsmacro{weblink}, \jcsmacro{SetURLDate} and \jcsmacro{urldate} macros. + \end{itemize} \item 2024/05/09 (v.\,2.5) \begin{itemize} \item No change to this class. |