texmf-dist/doc/latex/acro/examples/acro.example.acflike.tex
raw| 1 | \documentclass{article} |
| 2 | \usepackage[ngerman]{babel} |
| 3 | \usepackage{acro} |
| 4 | \acsetup{format/long=\itshape} |
| 5 | |
| 6 | \DeclareAcronym{cd}{short = CD, long = Compact Disc} |
| 7 | |
| 8 | \RenewAcroCommand\acflike{mm}{% |
| 9 | \acroformat{long}{#2} (\UseAcroTemplate{short}{#1})% |
| 10 | } |
| 11 | |
| 12 | \begin{document} |
| 13 | |
| 14 | \ac{cd} \par |
| 15 | \acflike{cd}{Rohling} |
| 16 | |
| 17 | \end{document} |