summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/acro/examples/acro.example.texsx-513623.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2020-05-11 03:02:11 +0000
committerNorbert Preining <norbert@preining.info>2020-05-11 03:02:11 +0000
commitfd95e879442e050790f06552eb074eeb7c5b4cab (patch)
treefa133d89d5af2d1a52c702321ee187ad5065f189 /macros/latex/contrib/acro/examples/acro.example.texsx-513623.tex
parentadcdf254252f764d8969df03d013bf5da6333873 (diff)
CTAN sync 202005110302
Diffstat (limited to 'macros/latex/contrib/acro/examples/acro.example.texsx-513623.tex')
-rw-r--r--macros/latex/contrib/acro/examples/acro.example.texsx-513623.tex21
1 files changed, 21 insertions, 0 deletions
diff --git a/macros/latex/contrib/acro/examples/acro.example.texsx-513623.tex b/macros/latex/contrib/acro/examples/acro.example.texsx-513623.tex
new file mode 100644
index 0000000000..049172952b
--- /dev/null
+++ b/macros/latex/contrib/acro/examples/acro.example.texsx-513623.tex
@@ -0,0 +1,21 @@
+\documentclass{article}
+\usepackage{acro}
+
+\newrobustcmd*\newspecies[4][]{%
+ \DeclareAcronym{#2}{
+ short = {#3} ,
+ long = {#4} ,
+ #1 ,
+ tag = species ,
+ first-style= long ,
+ format = \itshape
+ }%
+}
+\newspecies{ecoli}{E.~coli}{Escherichia coli}
+
+\begin{document}
+
+First use: \ac{ecoli}\par
+Second use: \ac{ecoli}
+
+\end{document}