diff options
Diffstat (limited to 'Master/texmf-dist/source/generic')
-rw-r--r-- | Master/texmf-dist/source/generic/expex-acro/expex-acro.dtx | 27 |
1 files changed, 19 insertions, 8 deletions
diff --git a/Master/texmf-dist/source/generic/expex-acro/expex-acro.dtx b/Master/texmf-dist/source/generic/expex-acro/expex-acro.dtx index e5d5d5d9f24..6eda6ef051d 100644 --- a/Master/texmf-dist/source/generic/expex-acro/expex-acro.dtx +++ b/Master/texmf-dist/source/generic/expex-acro/expex-acro.dtx @@ -16,7 +16,7 @@ % \iffalse %<package>\NeedsTeXFormat{LaTeX2e}[1994/06/01] %<package>\ProvidesPackage{expex-acro} -%<package> [2022/05/17 v0.0.2 ] +%<package> [2023/08/23 v0.0.3 ] %<*package> %</package> %<*driver> @@ -47,6 +47,7 @@ %\CheckSum{0} +%\changes{v0.0.3}{2023/08/23}{More versatile exref command in LaTeX label mode; removed underscores from abbreviations.} %\changes{v0.0.2}{2022/05/17}{Options for predefined abbreviations and exref modes.} %\changes{v0.0.1}{2022/04/28}{Initial release} @@ -144,7 +145,7 @@ To use \LaTeX{} |\label|s: %\RenewDocumentCommand{\exref}{ o m }{ % \IfValueTF{#1} {(\ref{#2}#1)}{(\ref{#2})}} % The alternative is to use the usual \LaTeX{} |\label| commands in your examples, like |\label{ex:1}| in \exref{ex:1} above. -% The corresponding usage is |\exref|\oarg{range}\marg{id}. +% The corresponding usage is |\exref|\oarg{range}\oarg{id2}\marg{id}. % In this mode, one can directly refer to subexamples: % \iffalse %<*example> @@ -155,7 +156,7 @@ To use \LaTeX{} |\label|s: % \iffalse %</example> % \fi -%The optional argument is simply inserted after the mandatory argument; ranges of subexamples can be done this way. +%The first optional argument is simply inserted after the mandatory argument; ranges of subexamples can be done this way. % \iffalse %<*example> % \fi @@ -165,6 +166,7 @@ To use \LaTeX{} |\label|s: % \iffalse %</example> % \fi +% The second optional argument is interpreted as the start of an example range, ending with the mandatory argument. %\section{Glossing abbreviations}\label{sec:abbrevs} %\textsf{expex-acro} loads the \textsf{acro} package for defining glossing abbreviations, displaying them in running text, and printing a list of the ones used. %\subsection{Package options} @@ -582,8 +584,8 @@ or \DeclareAcronym{rep}{short=rep,long=repetitive,short-format=\scshape} \DeclareAcronym{resum}{short=resum,long=resumptive,short-format=\scshape} \DeclareAcronym{rev}{short=rev,long=reversative,short-format=\scshape} -\DeclareAcronym{s_a_}{short=S\textsubscript{A},long=S~marked~like~A,short-format=\scshape} -\DeclareAcronym{s_p_}{short=S\textsubscript{P},long=S~marked~like~P,short-format=\scshape} +\DeclareAcronym{sa}{short=S\textsubscript{A},long=S~marked~like~A,short-format=\scshape} +\DeclareAcronym{sp}{short=S\textsubscript{P},long=S~marked~like~P,short-format=\scshape} \DeclareAcronym{sap}{short=sap,long=speech~act~participant,short-format=\scshape} \DeclareAcronym{sem}{short=sem,long=semelfactive,short-format=\scshape} \DeclareAcronym{seq}{short=seq,long=sequential,short-format=\scshape} @@ -633,11 +635,20 @@ or } } } { - \ProvideDocumentCommand{\exref}{ o m }{ + \ProvideDocumentCommand{\exref}{ o o m }{ \IfValueTF{#1} { - (\ref{#2}#1) + \IfValueTF{#2} { + (\ref{#3}-\ref{#2}#1) + }{ + (\ref{#3}#1) + } }{ - (\ref{#2}) + \IfValueTF{#2} { + (\ref{#3}-\ref{#2}) + }{ + (\ref{#3}) + } + } } |