summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/acro/examples/acro.example.texsx-513623.tex
diff options
context:
space:
mode:
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}