diff options
Diffstat (limited to 'macros/latex/contrib/acro/examples/acro.example.texsx-542461.tex')
-rw-r--r-- | macros/latex/contrib/acro/examples/acro.example.texsx-542461.tex | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/macros/latex/contrib/acro/examples/acro.example.texsx-542461.tex b/macros/latex/contrib/acro/examples/acro.example.texsx-542461.tex new file mode 100644 index 0000000000..c44358073e --- /dev/null +++ b/macros/latex/contrib/acro/examples/acro.example.texsx-542461.tex @@ -0,0 +1,39 @@ +\documentclass{article} +\usepackage{acro} + +\DeclareAcroArticle{definite}{the} +\DeclareAcroEnding{possessive}{'s}{'s} + +\NewAcroCommand\dac{m}{\acrodefinite\UseAcroTemplate{first}{#1}} +\NewAcroCommand\Dac{m}{\acroupper\acrodefinite\UseAcroTemplate{first}{#1}} + +\NewAcroCommand\Dacg{m}{% + \acroupper + \acrodefinite + \acropossessive + \UseAcroTemplate{first}{#1}% +} + +\DeclareAcronym{css}{ + short = CSS , + long = Centre for Spaghetti Studies , + short-definite = \nospace , + long-possessive = ' +} + +\begin{document} + +Bob hails from \dac{css}. \par +Bob hails from \dac{css}. + +\acreset{css} + +\Dacg{css} mandate is broad. \par +\Dacg{css} mandate is broad. + +\acreset{css} + +\Dac{css} scientists eat well. \par +\Dac{css} scientists eat well. \par + +\end{document} |