diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/acro/examples/acro.example.units.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/acro/examples/acro.example.units.tex | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/acro/examples/acro.example.units.tex b/Master/texmf-dist/doc/latex/acro/examples/acro.example.units.tex new file mode 100644 index 00000000000..7a3ff0b3512 --- /dev/null +++ b/Master/texmf-dist/doc/latex/acro/examples/acro.example.units.tex @@ -0,0 +1,99 @@ +\documentclass{scrartcl} +\usepackage[T1]{fontenc} +\usepackage[ngerman]{babel} +\usepackage[version=3]{acro} + +\acsetup{ list/display = all , pages/display = all} + +\usepackage{longtable,siunitx} + +\DeclareAcronym{ecm}{ + short = ECM , + long = Electro Chemical Machining , + extra = Elektrochemisches Abtragen +} +\DeclareAcronym{adc}{ + short = ADC , + long = Analog-to-Digital-Converter +} +\DeclareAcronym{edm}{ + short = EDM , + long = Electro Discharge Machining +} +\DeclareAcronym{ecdm}{ + short = ECDM , + long = Electro Chemical Discharge Machining , + extra = Kombination aus \acs*{ecm} und \acs*{edm} +} + +\DeclareAcroProperty{unit} + +% "Acronyme" (tatsächlich physikalische Größen) einer speziellen Klasse: +\DeclareAcronym{f}{ + short = \ensuremath{f} , + long = Frequenz , + unit = \si{\hertz} , + class = physics +} +\DeclareAcronym{A}{ + short = \ensuremath{A} , + long = Fläche , + unit = \si{\metre^2} , + class = physics +} +\DeclareAcronym{C}{ + short = \ensuremath{C} , + long = Kapazität , + unit = \si{\farad} , + class = physics +} +\DeclareAcronym{F}{ + short = \ensuremath{F} , + long = Kraft , + unit = \si{\newton} , + class = physics +} + +\NewAcroTemplate[list]{physics}{% + \def\TableCode{}% + \acronymsmapT{% + \AcroPutRight\TableCode{% + \def\AcronymID{##1}% + \acrowrite{short}% + & + \def\AcronymID{##1}% + \acrowrite{unit}% + & + \def\AcronymID{##1}% + \acrowrite{long}% + & + \def\AcronymID{##1}% + \acroifpagesT{\acropages{S. }{S. }}% + \tabularnewline + }% + }% + \acroheading + \acropreamble + \par\noindent + \setlength\LTleft{0pt}% + \setlength\LTright{0pt}% + \begin{longtable}{@{}lll@{\extracolsep{\fill}}l@{}} + \TableCode + \end{longtable} +} + +\begin{document} + +erstes Mal: \ac{ecm} + +zweites Mal: \ac{ecm} + +\ac{F} + +% % alle außer der Klasse 'physics' auflisten: +\printacronyms[exclude=physics]%, name=Abkürzungsverzeichnis] + +% nur die Klasse 'physics' auflisten: +\printacronyms[template=physics, include=physics]%, name=Formelverzeichnis] + +\end{document} |