texmf-dist/doc/latex/acro/examples/acro.example.texsx-513623.tex
raw| 1 | \documentclass{article} |
| 2 | \usepackage{acro} |
| 3 | |
| 4 | \newrobustcmd*\newspecies[4][]{% |
| 5 | \DeclareAcronym{#2}{ |
| 6 | short = {#3} , |
| 7 | long = {#4} , |
| 8 | #1 , |
| 9 | tag = species , |
| 10 | first-style= long , |
| 11 | format = \itshape |
| 12 | }% |
| 13 | } |
| 14 | \newspecies{ecoli}{E.~coli}{Escherichia coli} |
| 15 | |
| 16 | \begin{document} |
| 17 | |
| 18 | First use: \ac{ecoli}\par |
| 19 | Second use: \ac{ecoli} |
| 20 | |
| 21 | \end{document} |