summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/acro/examples/acro.example.texsx-513623.tex
blob: 049172952b53fb17c30bc7ef35e7295df853e281 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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}