diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/acro/examples/acro.example.issue-119.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/acro/examples/acro.example.issue-119.tex | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/acro/examples/acro.example.issue-119.tex b/Master/texmf-dist/doc/latex/acro/examples/acro.example.issue-119.tex new file mode 100644 index 00000000000..d1b5cadc650 --- /dev/null +++ b/Master/texmf-dist/doc/latex/acro/examples/acro.example.issue-119.tex @@ -0,0 +1,49 @@ +\documentclass{article} +\usepackage[enable-debug]{expl3} + +\usepackage[version=3]{acro} + +\makeatletter +\NewAcroTemplate[list]{external}{% + \if@filesw + \newwrite\acro@list + \immediate\openout\acro@list\jobname.ac\relax + \immediate\write\acro@list{\string\begin{description}} + \let\item\relax + \acronymsmapF{% + \immediate\write\acro@list{% + \space\space + \item[\acrofield{##1}{short}] + \acrofield{##1}{long}% + \acrofieldifTF{##1}{extra}{ (\acrofield{##1}{extra})}{}% + }% + }{\immediate\write\acro@list{\item}\AcroRerun}% + \immediate\write\acro@list{\string\end{description}} + \immediate\closeout\acro@list + \fi +} +\makeatother + +\DeclareAcronym{ny}{ + short = NY , + long = New York , +} + +\DeclareAcronym{la}{ + short = LA , + long = Los Angeles , + extra = City of Angels +} + +\DeclareAcronym{dc}{ + short = D.C. , + long = Washington D.C. +} + +\begin{document} + +\acuseall +\printacronyms[template=external] +\null + +\end{document} |