summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/acro/examples/acro.example.acflike.tex
blob: 40e103718192de366d9e811fa50bb78972be771e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
\documentclass{article}
\usepackage[ngerman]{babel}
\usepackage{acro}
\acsetup{format/long=\itshape}

\DeclareAcronym{cd}{short = CD, long = Compact Disc}

\RenewAcroCommand\acflike{mm}{%
  \acroformat{long}{#2} (\UseAcroTemplate{short}{#1})%
}

\begin{document}

\ac{cd} \par
\acflike{cd}{Rohling}

\end{document}