From b273a879fbed76480fb7368ad555010024f3e411 Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Thu, 30 Apr 2020 03:01:50 +0000
Subject: CTAN sync 202004300301

---
 .../acro/examples/acro.example.issue-119.tex       | 49 ++++++++++++++++++++++
 1 file changed, 49 insertions(+)
 create mode 100644 macros/latex/contrib/acro/examples/acro.example.issue-119.tex

(limited to 'macros/latex/contrib/acro/examples/acro.example.issue-119.tex')

diff --git a/macros/latex/contrib/acro/examples/acro.example.issue-119.tex b/macros/latex/contrib/acro/examples/acro.example.issue-119.tex
new file mode 100644
index 0000000000..d1b5cadc65
--- /dev/null
+++ b/macros/latex/contrib/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}
-- 
cgit v1.2.3

