texlive[68046] Master/texmf-dist: expex-acro (24aug23)
commits+karl at tug.org
commits+karl at tug.org
Thu Aug 24 22:18:16 CEST 2023
Revision: 68046
http://tug.org/svn/texlive?view=revision&revision=68046
Author: karl
Date: 2023-08-24 22:18:16 +0200 (Thu, 24 Aug 2023)
Log Message:
-----------
expex-acro (24aug23)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/generic/expex-acro/README.md
trunk/Master/texmf-dist/doc/generic/expex-acro/expex-acro.pdf
trunk/Master/texmf-dist/source/generic/expex-acro/expex-acro.dtx
trunk/Master/texmf-dist/tex/generic/expex-acro/expex-acro.sty
Modified: trunk/Master/texmf-dist/doc/generic/expex-acro/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/generic/expex-acro/README.md 2023-08-24 20:18:06 UTC (rev 68045)
+++ trunk/Master/texmf-dist/doc/generic/expex-acro/README.md 2023-08-24 20:18:16 UTC (rev 68046)
@@ -1,6 +1,6 @@
# expex-acro
This package is a small wrapper for the excellent [expex](https://ctan.org/pkg/expex), adding ways to define, use, and summarize glossing abbreviations. It also provides commands to refer to examples, as well as some inline formatting commands commonly used in linguistics.
-e-mail: florianmatter at gmail.com
+e-mail: fmatter at mailbox.org
Released under the LaTeX Project Public License v1.3c or later, see [https://www.latex-project.org/lppl.txt](https://www.latex-project.org/lppl.txt).
\ No newline at end of file
Modified: trunk/Master/texmf-dist/doc/generic/expex-acro/expex-acro.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/source/generic/expex-acro/expex-acro.dtx
===================================================================
--- trunk/Master/texmf-dist/source/generic/expex-acro/expex-acro.dtx 2023-08-24 20:18:06 UTC (rev 68045)
+++ trunk/Master/texmf-dist/source/generic/expex-acro/expex-acro.dtx 2023-08-24 20:18:16 UTC (rev 68046)
@@ -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 @@
%\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 @@
% \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 @@
% \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 @@
\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 @@
}
}
} {
- \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})
+ }
+
}
}
Modified: trunk/Master/texmf-dist/tex/generic/expex-acro/expex-acro.sty
===================================================================
--- trunk/Master/texmf-dist/tex/generic/expex-acro/expex-acro.sty 2023-08-24 20:18:06 UTC (rev 68045)
+++ trunk/Master/texmf-dist/tex/generic/expex-acro/expex-acro.sty 2023-08-24 20:18:16 UTC (rev 68046)
@@ -22,7 +22,7 @@
%%
\NeedsTeXFormat{LaTeX2e}[1994/06/01]
\ProvidesPackage{expex-acro}
- [2022/05/17 v0.0.2 ]
+ [2023/08/23 v0.0.3 ]
@@ -379,8 +379,8 @@
\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}
@@ -425,11 +425,20 @@
}
}
} {
- \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})
+ }
+
}
}
More information about the tex-live-commits
mailing list.