| 1 |
\documentclass{article} |
| 2 |
\usepackage[english,ngerman]{babel} |
| 3 |
\usepackage{csquotes} |
| 4 |
\usepackage{acro} |
| 5 |
|
| 6 |
% issue #136 |
| 7 |
\DeclareAcroProperty{foreign-short} |
| 8 |
|
| 9 |
\RenewAcroTemplate{long-short}{% |
| 10 |
\acroiffirstTF{% |
| 11 |
\acrowrite{long}\acspace |
| 12 |
(% |
| 13 |
\acrowrite{short}% |
| 14 |
\acroifT{foreign}{, }% |
| 15 |
\acrowrite{foreign}% |
| 16 |
\acroifT{foreign-short}{, }% |
| 17 |
\acrowrite{foreign-short}% |
| 18 |
\acrogroupcite |
| 19 |
)% |
| 20 |
} |
| 21 |
{\acrowrite{short}}% |
| 22 |
} |
| 23 |
|
| 24 |
\RenewAcroTemplate[list]{description}{% |
| 25 |
\acroheading |
| 26 |
\acropreamble |
| 27 |
\begin{description} |
| 28 |
\acronymsmapF{ |
| 29 |
\item [\acrowrite{short}\acroifT{alt}{/\acrowrite{alt}}] |
| 30 |
\acrowrite{long}% |
| 31 |
\acroifanyT{foreign,extra,foreign-short}{ (}% |
| 32 |
\acrowrite{foreign}% |
| 33 |
\acroifallT{foreign-short,foreign}{, }% |
| 34 |
\acrowrite{foreign-short}% |
| 35 |
\acroifanyT{foreign-short,foreign}{\acroifT{extra}{, }}% |
| 36 |
\acrowrite{extra}% |
| 37 |
\acroifanyT{foreign,extra,foreign-short}{)}% |
| 38 |
\acroifpagesT{% |
| 39 |
\acropagefill |
| 40 |
\acropages |
| 41 |
{\acrotranslate{page}\nobreakspace}% |
| 42 |
{\acrotranslate{pages}\nobreakspace}% |
| 43 |
}% |
| 44 |
} |
| 45 |
{ \item \AcroRerun } |
| 46 |
\end {description} |
| 47 |
} |
| 48 |
|
| 49 |
\DeclareAcronym{dsgvo}{ |
| 50 |
short = DSGVO, |
| 51 |
long = {Datenschutz-Grundverordnung}, |
| 52 |
foreign = General Data Protection Regulation , |
| 53 |
foreign-short = GDPR, % new line |
| 54 |
foreign-babel = english, |
| 55 |
foreign-format = \enquote |
| 56 |
} |
| 57 |
|
| 58 |
\begin{document} |
| 59 |
|
| 60 |
\ac{dsgvo} |
| 61 |
|
| 62 |
\printacronyms |
| 63 |
|
| 64 |
\end{document} |