summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/acro
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-01-18 23:26:48 +0000
committerKarl Berry <karl@freefriends.org>2013-01-18 23:26:48 +0000
commitfb0e09783157c2c9f8e6899a25abc2442b8a77f6 (patch)
tree3ac58c5ecaa0f0e9130476ed1507cd8fdac116fc /Master/texmf-dist/doc/latex/acro
parent9a3b24b6c40172a8e489ab6d7409303db574c826 (diff)
acro (17jan13)
git-svn-id: svn://tug.org/texlive/trunk@28867 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/acro')
-rw-r--r--Master/texmf-dist/doc/latex/acro/README6
-rw-r--r--Master/texmf-dist/doc/latex/acro/acro_en.pdfbin460959 -> 471647 bytes
-rw-r--r--Master/texmf-dist/doc/latex/acro/acro_en.tex617
-rw-r--r--Master/texmf-dist/doc/latex/acro/example_one.tex57
-rw-r--r--Master/texmf-dist/doc/latex/acro/example_two.tex72
5 files changed, 574 insertions, 178 deletions
diff --git a/Master/texmf-dist/doc/latex/acro/README b/Master/texmf-dist/doc/latex/acro/README
index 969a0cf1784..ae974b44b72 100644
--- a/Master/texmf-dist/doc/latex/acro/README
+++ b/Master/texmf-dist/doc/latex/acro/README
@@ -1,9 +1,9 @@
--------------------------------------------------------------------------
-the ACRO package v0.6a
+the ACRO package v1.0
Typeset Acronyms
-2013/01/02
+2013/01/16
--------------------------------------------------------------------------
Clemens Niederberger
Web: https://bitbucket.org/cgnieder/acro/
@@ -24,7 +24,7 @@ This work has the LPPL maintenance status `maintained'.
The Current Maintainer of this work is Clemens Niederberger.
--------------------------------------------------------------------------
The acro package consists of the files
- - acro.sty, acro_en.tex, acro_en.pdf, README
+ - acro.sty, acro0.def, acro1.def, acro_en.tex, acro_en.pdf, README
--------------------------------------------------------------------------
If you have any ideas, questions, suggestions or bugs to report, please
feel free to contact me.
diff --git a/Master/texmf-dist/doc/latex/acro/acro_en.pdf b/Master/texmf-dist/doc/latex/acro/acro_en.pdf
index 0abda9252e3..fabcc34ad36 100644
--- a/Master/texmf-dist/doc/latex/acro/acro_en.pdf
+++ b/Master/texmf-dist/doc/latex/acro/acro_en.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/acro/acro_en.tex b/Master/texmf-dist/doc/latex/acro/acro_en.tex
index c021a4eff59..72c4fe55d40 100644
--- a/Master/texmf-dist/doc/latex/acro/acro_en.tex
+++ b/Master/texmf-dist/doc/latex/acro/acro_en.tex
@@ -27,7 +27,7 @@
% The Current Maintainer of this work is Clemens Niederberger.
% --------------------------------------------------------------------------
% The acro package consists of the files
-% - acro.sty, acro_en.tex, acro_en.pdf, README
+% - acro.sty, acro0.def, acro1.def, acro_en.tex, acro_en.pdf, README
% --------------------------------------------------------------------------
% If you have any ideas, questions, suggestions or bugs to report, please
% feel free to contact me.
@@ -40,7 +40,7 @@
%
\documentclass[DIV10,toc=index,toc=bib,hyperfootnotes=false]{cnpkgdoc}
\docsetup{
- pkg = {[single,macros,sort]acro} ,
+ pkg = {[single,macros,accsupp]acro} ,
language = en ,
code-box = {
backgroundcolor = gray!7!white ,
@@ -95,8 +95,8 @@
@package{acronym,
title = {acronym -- An Acronym Environment for \LaTeXe},
author = {Tobias Oetiker},
- date = {2010-09-08},
- version = {1.36},
+ date = {2012-10-29},
+ version = {1.38},
url = {http://www.ctan.org/pkg/acronym}
}
@package{acroterm,
@@ -109,8 +109,8 @@
@package{glossaries,
title = {glossaries},
author = {Nicola L.C. Talbot},
- date = {2011-04-12},
- version = {3.01},
+ date = {2012-11-18},
+ version = {3.04},
url = {http://www.ctan.org/pkg/glossaries}
}
@package{nomencl,
@@ -177,25 +177,85 @@
}
\ExplSyntaxOff
-\DeclareAcronym{cd}{cd}{Compact Disc}
- \DeclareAcronymFormat{cd}{\scshape}
-\DeclareAcronym{id}{id}{identification string}
- \DeclareAcronymFormat{id}{\scshape}
-\DeclareAcronym{jpg}{JPEG}[JPG]{Joint Photographic Experts Group}
-\DeclareAcronym{la}{LA,}{Los Angeles,}[city]
-\DeclareAcronym*{mp}{MP}{Member of Parliament,Members of Parliament}
-\DeclareAcronym{nato}{nato}{North Atlantic Treaty Organization}{\textit{deutsch}: Organisation des Nordatlantikvertrags}
- \DeclareAcronymFormat{nato}{\scshape}
-\DeclareAcronym{ny}{NY,}{New York,}[city]
-\DeclareAcronymCitation{ny}{NewYork}
-\DeclareAcronym{ot}{ot}{Other Test}
- \DeclareAcronymFormat{ot}{\scshape}
-\DeclareAcronym{pdf}{pdf}{Portable Document Format}
- \DeclareAcronymFormat{pdf}{\scshape}
- \DeclareAcronymPDFString{pdf}{PDF}
-\DeclareAcronym{sw}{SW}{Sammelwerk,e}
-\DeclareAcronym{test}{ST}{Some Test}
-\DeclareAcronym{texse}{\{TeX\}.SE}{\TeX\ StackExchange}
+% declare acronyms
+\DeclareAcronym{cd}
+ {
+ short = cd ,
+ long = Compact Disc ,
+ format = \scshape
+ }
+\DeclareAcronym{id}
+ {
+ short = id ,
+ long = identification string ,
+ format = \scshape
+ }
+\DeclareAcronym{jpg}
+ {
+ short = JPEG ,
+ alt = JPG ,
+ long = Joint Photographic Experts Group
+ }
+\DeclareAcronym{la}
+ {
+ short = LA ,
+ short-plural = ,
+ long = Los Angeles,
+ long-plural = ,
+ class = city
+ }
+\DeclareAcronym{mp}
+ {
+ short = MP ,
+ long = Member of Parliament ,
+ long-plural-form = Members of Parliament
+ }
+\DeclareAcronym{nato}
+ {
+ short = nato ,
+ long = North Atlantic Treaty Organization ,
+ extra = \emph{deutsch}: Organisation des Nordatlantikvertrags ,
+ format = \scshape
+ }
+\DeclareAcronym{ny}
+ {
+ short = NY ,
+ short-plural = ,
+ long = New York ,
+ long-plural = ,
+ class = city ,
+ cite = NewYork
+ }
+\DeclareAcronym{ot}
+ {
+ short = ot ,
+ long = Other Test ,
+ format = \scshape
+ }
+\DeclareAcronym{pdf}
+ {
+ short = pdf ,
+ long = Portable Document Format ,
+ format = \scshape ,
+ pdfstring = PDF ,
+ accsupp = PDF
+ }
+\DeclareAcronym{sw}
+ {
+ short = SW ,
+ long = Sammelwerk ,
+ long-plural = e
+ }
+\DeclareAcronym{test}
+ {
+ short = ST ,
+ long = Some Test
+ }
+\DeclareAcronym{texse}
+ {
+ short = \{TeX\}.SE ,
+ long = \TeX{} StackExchange
+ }
\usepackage{imakeidx}
\makeindex[columns=2,options={-sl \jobname.ist},intoc]
@@ -215,6 +275,14 @@
\textcolor{black!75}{Changed in version~#1}}%
\@esphack}
\renewcommand*\cnpkgdoctriangle{}
+
+\AtBeginDocument{%
+ \ifdef\texorpdfstring{}{\let\texorpdfstring\@firstoftwo}%
+}
+\newrobustcmd\@versionstar{\raisebox{-.25em}{*}}
+\newcommand\versionstar{\texorpdfstring{\@versionstar}{*}}
+
+\newcommand*\CTANlink[1]{\href{http://www.ctan.org/pkg/#1}{#1}}
\makeatother
\begin{document}
@@ -224,8 +292,10 @@ terms of the \LaTeX{} Project Public License, version 1.3 or later
(\url{http://www.latex-project.org/lppl.txt}). The package has the status
``maintained.''
-\acro loads and needs the following packages: \paket{expl3},
-\paket{xparse}, \paket{xtemplate} and \paket{l3keys2e}.
+\acro loads and needs the following packages: \paket*{expl3}\footnote{\CTANurl{l3kernel}},
+\paket*{xparse}, \paket*{xtemplate}, \paket*{l3keys2e}\footnote{All three part of
+the \CTANlink{l3packages} bundle} and \paket*{translations}\footnote{Part of the
+\CTANlink{exsheets} bundle.}.
\section{About}
\begin{zitat}[\cite{wikipedia}]
@@ -234,7 +304,7 @@ terms of the \LaTeX{} Project Public License, version 1.3 or later
or parts of words (as in Benelux and Ameslan). There is no universal agreement
on the precise definition of the various terms nor on written usage.
\end{zitat}
-After \wikipedia\ told us what acronyms are and we won't confuse them with units
+After \wikipedia{} told us what acronyms are and we won't confuse them with units
or other kinds of abbreviations -- why would we need another package for them?
There are several already: \paket{acronym}~\cite{acronym}, \paket{acromake}%
~\cite{acromake}, \paket{acroterm}~\cite{acroterm}, the abbreviations package
@@ -247,8 +317,9 @@ new package.
On the other hand \paket{acronym}, the best of the acronym specific packages,
has one or two shortcomings and sometimes using \paket{glossaries} seems a bit
of an overkill (or simply inconvenient as one has to run \code{makeglossaries},
-\code{makeindex} or \code{xindy}, then). So \acro stands somewhere in between
-(but much closer to \paket{acronym}).
+\code{makeindex} or \code{xindy}, then\footnote{Rumour has it there is going to
+be a version that can be used without running an external program}). So \acro
+stands somewhere in between (but closer to \paket{acronym}).
The main reason for the existance of \acro is a question on \acs{texse}%
\footnote{\url{http://tex.stackexchange.com/q/59449/5049}} which intrigued
@@ -258,44 +329,111 @@ me and in consequence led to \acro and it's option \key{single}.
some macros have the same name and meaning\footnote{\emph{Not} in the sense of
\code{\textbackslash\textcolor{code}{meaning}}!}.
+Please take a minute to think and decide which package will suit your needs
+best. Are you planning to add a glossary to your book? You should probably go
+with \paket{glossaries}, then. Are you planning to add a nomenclature? You
+may want to choose \paket{nomencl} and so on\ldots
+
+
+\section{Updating from Version~0.\versionstar}
+Version~1.0 introduces a major syntax change. In order to keep documents
+using a prior version compilable \acro introduces the option \key{version}{0}.
+It provides the acronym defining commands with the old syntax and also all the
+additional commands like \cmd{DeclareAcronymFormat} that have been dropped in
+version~1.0. Also the old syntax of \cmd{printacronyms} is restored.
+Versions~0.\versionstar{} also set labels when an acronym was used the first time,
+version~1.0 doesn't do that any more. \key{version}{0} sets them as expected.
+
+Note that \key{version}{0} \emph{does not and will not} support new features of
+any kind.
+
+With version~1.0 acronyms are declared with a key/value syntax similar to the
+way in package \paket{glossaries} glossary entries are defined. This was made
+for a good reason: in the beginning the old \cmd*{DeclareAcronym} already had
+lots of arguments that were hard to remember. Every new feature needed to
+introduce further commands so that in version~0.6 there have been \emph{four}
+different commands already. All this isn't necessary any more and there is only
+one command with only two arguments.
+
\section{Basics}\secidx{Basics}
\subsection{Creating New Acronyms}\secidx[new acronyms]{Basics}
-Acronyms are created with the command \cmd{DeclareAcronym} that can only be used
-in the preamble.
+\noindent\changedversion{1.0}Acronyms are created with the command
+\cmd{DeclareAcronym} that can only be used in the preamble.
\begin{beschreibung}
- \Befehl{DeclareAcronym}*{<id>}\ma{<short>,<pl>}\oa{<alt.>}\ma{<long>,<pl>}\ma{<extra>}\oa{<class>}
- \verb+% can be used only in preamble+
- \Befehl{DeclareAcronymFormat}{<id>}\ma{<format>} \verb+% can be used only in preamble+
- \Befehl{DeclareAcronymCitation}{<id>}\oa{<pre>}\oa{<post>}\ma{<cite keys>}
- \verb+% can be used only in preamble+
- \Befehl{DeclareAcronymPDFString}{<id>}\ma{<pdf entry>,<plural ending>}
- \verb+% can be used only in preamble+
+ \Befehl{DeclareAcronym}{<id>}\ma{<list of keys>}
\end{beschreibung}
-Although \cmd{DeclareAcronym} has quite a number of arguments. In the simplest
-case you'll only need three:
+This command understands a number of keys which are listed below. Some of them
+are not described immediately but at appropriate places in the documentation.
+\begin{beschreibung}
+ \Option{short}{<text>}\newline
+ the short form of the acronym.
+ \Option{long}{<text>}\newline
+ the long form of the acronym.
+ \Option{short-plural}{<text>}\Default{s}
+ the plural ending appended to the short form.
+ \Option{long-plural}{<text>}\Default{s}
+ the plural ending appended to the long form.
+ \Option{long-plural-form}{<text>}\newline
+ plural long form of the acronym; replaces the long form when used instead of
+ appending the plural ending.
+ \Option{alt}{<text>}\newline
+ alternative short form.
+ \Option{extra}{<text>}\newline
+ extra information to be added in the list of acronyms.
+ \Option{sort}{<text>}\newline
+ if used the acronym will be sorted according to this key instead of its \acs{id}.
+ \Option{class}{<text>}\newline
+ the class the acronym belongs to.
+ \Option{cite}{[<prenote>][<postnote>]\{citation keys\}}\newline
+ a citation that is printed to the acronym according to an option explained later.
+ \Option{format}{<\TeX{} code>}\newline
+ the format used for the short form of the acronym.
+ \Option{pdfstring}{<text>/<plural ending>}\newline
+ used as \acs{pdf} string replacement in bookmarks when used together with the
+ \paket*{hyperref} package. The appended plural ending is optional. If you
+ leave it (\emph{and} the \code{/}) the default ending is used.
+ \Option{accsupp}{<text>}\newline
+ sets the \code{ActualText} key as presented by the \paket*{accsupp} package
+ for the acronym.
+\end{beschreibung}
+
+In its simplest form an acronym needs a short and a long form. Please note that
+both keys \emph{must} be set and that the \key{short} key \emph{must} always be
+the \emph{first} key that is set.
\begin{beispiel}[code only]
- % preamble
- \DeclareAcronym{test}{ST}{Some Test}
+ % preamble:
+ \DeclareAcronym{test}{
+ short = ST ,
+ long = Some Test
+ }
\end{beispiel}
This creates the acronym ``\acs{test}'' with the \acs{id} ``test'' and the long
-form ``\acl{test}.'' The other arguments will be described later in this document.
+form ``\acl{test}.''
-\cmd{DeclareAcronymFormat} lets you assign a special format to an acronym. Maybe
-small caps:
+The \key{format} key allows you to choose a specific format for the short form of
+an acronym:
\begin{beispiel}[code only]
% preamble:
- \DeclareAcronym{ot}{ot}{Other Test}
- \DeclareAcronymFormat{ot}{\scshape}
+ \DeclareAcronym{ot}{
+ short = ot ,
+ long = Other Test ,
+ format = \scshape
+ }
\end{beispiel}
The short form now looks like this: \acs{ot}.
-With \cmd{DeclareAcronymCitation} you can add a key as used in \cmd*{cite} that
-is added to the first or every appearance of the acronym (depending on an option
-that is described later).
+The \key{cite} key needs a bit explaining. It expects arguments like the standard
+\cmd*{cite} command, i.e., two optional arguments setting the \code{<prenote>}
+and \code{<postnote>} and one mandatory argument setting the citation key.
\begin{beispiel}[code only]
% preamble:
- \DeclareAcronym{ny}{NY,}{New York,}
- \DeclareAcronymCitation{ny}{NewYork}
+ \DeclareAcronym{ny}{
+ short = NY ,
+ short-plural = ,
+ long = New York ,
+ long-plural = ,
+ cite = {NewYork}
+ }
% bib file for use with biber/biblatex:
@online{NewYork,
author = {Wikipedia},
@@ -311,29 +449,39 @@ of course depends on the citation style you're using.}: \acf{ny}.
\subsection{Using the Acronyms -- the Commands}\secidx[using acronyms]{Basics}
Acronyms are used with with one of the following commands:
\begin{beschreibung}
- \befehl{ac}*{<id>} basic command; the first output is different from subsequent
- ones.
- \befehl{Ac}*{<id>} same as \cmd{ac} but capitalizes the first letter of the
- long form.
- \befehl{acs}*{<id>} \h{s}hort form; the actual acronym.
- \befehl{acl}*{<id>} \h{l}ong form; the meaning of the acronym.
- \befehl{Acl}*{<id>} same as \cmd{acl} but capitalizes first letter.
- \befehl{aca}*{<id>} \h{a}lternative short form as specified in the \oa{<short>}
- argument of \cmd{DeclareAcronym}; if it hasn't been specified this is
- identical to \cmd{acs}.
- \befehl{acf}*{<id>} first form; output like the first time \cmd{ac} is output.
- \befehl{Acf}*{<id>} same as \cmd{acf} but capitalizes first letter of the long
- form.
- \befehl{acp}*{<id>} \h{p}lural form of \cmd{ac};
- \befehl{Acp}*{<id>} same as \cmd{acp} but capitalizes first letter of the long
- form.
- \befehl{acsp}*{<id>} plural form of \cmd{acs};
- \befehl{aclp}*{<id>} plural form of \cmd{acl};
- \befehl{Aclp}*{<id>} same as \cmd{aclp} but capitalizes first letter.
- \befehl{acap}*{<id>} plural form of \cmd{aca};
- \befehl{acfp}*{<id>} plural form of \cmd{acf};
- \befehl{Acfp}*{<id>} same as \cmd{acfp} but capitalizes first letter of the
- long form.
+ \Befehl{ac}*{<id>}\newline
+ basic command; the first output is different from subsequent ones.
+ \Befehl{Ac}*{<id>}\newline
+ same as \cmd{ac} but capitalizes the first letter of the long form.
+ \Befehl{acs}*{<id>}\newline
+ \h{s}hort form; the actual acronym.
+ \Befehl{acl}*{<id>}\newline
+ \h{l}ong form; the meaning of the acronym.
+ \Befehl{Acl}*{<id>}\newline
+ same as \cmd{acl} but capitalizes first letter.
+ \Befehl{aca}*{<id>}\newline
+ \h{a}lternative short form as specified in the \key{alt} key of
+ \cmd{DeclareAcronym}; if it hasn't been specified this is identical to \cmd{acs}.
+ \Befehl{acf}*{<id>}\newline
+ first form; output like the first time \cmd{ac} is output.
+ \Befehl{Acf}*{<id>}\newline
+ same as \cmd{acf} but capitalizes first letter of the long form.
+ \Befehl{acp}*{<id>}\newline
+ \h{p}lural form of \cmd{ac};
+ \Befehl{Acp}*{<id>}\newline
+ same as \cmd{acp} but capitalizes first letter of the long form.
+ \Befehl{acsp}*{<id>}\newline
+ plural form of \cmd{acs};
+ \Befehl{aclp}*{<id>}\newline
+ plural form of \cmd{acl};
+ \Befehl{Aclp}*{<id>}\newline
+ same as \cmd{aclp} but capitalizes first letter.
+ \Befehl{acap}*{<id>}\newline
+ plural form of \cmd{aca};
+ \Befehl{acfp}*{<id>}\newline
+ plural form of \cmd{acf};
+ \Befehl{Acfp}*{<id>}\newline
+ same as \cmd{acfp} but capitalizes first letter of the long form.
\end{beschreibung}
If an acronym is used the first time with \cmd{ac} its output is different from
subsequent uses. To be clear on this: the first time! If the acronym has been
@@ -345,8 +493,12 @@ used. This proves useful if an acronym is typeset in a section title, for exampl
since then the appearance in the table of contents won't mark it as used.
\begin{beispiel}
- % preamble: \DeclareAcronym{cd}{cd}{Compact Disc}
- % \DeclareAcronymFormat{cd}{\scshape}
+ % preamble:
+ % \DeclareAcronym{cd}{
+ % short = cd ,
+ % long = Compact Disc ,
+ % format = \scshape
+ % }
first time: \ac{cd} \\
second time: \ac{cd} \\
short: \acs{cd} \\
@@ -361,25 +513,45 @@ since then the appearance in the table of contents won't mark it as used.
If an acronym is defined in the standard way \acro uses an `s' that's appended to
both the short and the long form when one of the plural commands is used. However,
that is not always the best solution. For one thing not all acronyms may have a
-plural form. Second, the plural form especially of the long forms may be fomed
+plural form. Second, the plural form especially of the long forms may be formed
differently. And third, other languages can have other plural endings.
-For this reason \cmd{DeclareAcronym} provides additional arguments:
+For these reasons \cmd{DeclareAcronym} can get the following keys:
\begin{beschreibung}
- \Befehl{DeclareAcronym}{<id>}\ma{<short>,<plural ending>}\ma{<long>,<plural ending>}
- \Befehl{DeclareAcronym}*{<id>}\ma{<short>,<plural ending>}\ma{<long>,<plural form>}
+ \Option{short-plural}{<text>}
+ \Option{long-plural}{<text>}
+ \Option{long-plural-form}{<text>}
\end{beschreibung}
-These arguments are optional. If they're not used, the default setting is `s'.
-If you use the starred version the long form will be replaced by the specified
-plural form when necessary. A given short plural will still be appended.
+These keys are optional. If they're not used, the default setting is `s'.
+If you use \key{long-plural-form} the long form will be replaced by the specified
+plural form when necessary.
+Suppose we define the following acronyms:
+\begin{beispiel}[code only]
+ \DeclareAcronym{cd}{
+ short = cd ,
+ long = Compact Disc ,
+ format = \scshape
+ }
+ \DeclareAcronym{ny}{
+ short = NY ,
+ short-plural = ,
+ long = New York ,
+ long-plural =
+ }
+ \DeclareAcronym{sw}{
+ short = SW ,
+ long = Sammelwerk ,
+ long-plural = e
+ }
+ \DeclareAcronym{mp}{
+ short = MP ,
+ long = Member of Parliament ,
+ long-plural-form = Members of Parliament
+ }
+\end{beispiel}
+These acronyms now have the following plural appearances:
\begin{beispiel}
- % preamble:
- % \DeclareAcronym{cd}{\textsc{cd}}{Compact Disc}
- % \DeclareAcronymFormat{cd}{\scshape}
- % \DeclareAcronym{ny}{NY,}{New York,}
- % \DeclareAcronym{sw}{SW}{Sammelwerk,e}
- % \DeclareAcronym*{mp}{MP}{Member of Parliament,Members of Parliament}
\acsp{cd}, \aclp{cd} \\
\acsp{ny}, \aclp{ny} \\
\acsp{sw}, \aclp{sw} \\
@@ -388,12 +560,17 @@ plural form when necessary. A given short plural will still be appended.
\subsection{Alternative Short Forms}\secidx[alternative forms]{Basics}
For some acronyms it might be useful to have alternative forms. For this
-\cmd{DeclareAcronym} has another optional argument:
+\cmd{DeclareAcronym} has another key:
\begin{beschreibung}
- \Befehl{DeclareAcronym}{<id>}\ma{<short>}\oa{<alternative>}\ma{<long>}
+ \Option{alt}{<text>}
\end{beschreibung}
\begin{beispiel}
- % preamble \DeclareAcronym{jpg}{JPEG}[JPG]{Joint Photographic Experts Group}
+ % preamble:
+ % \DeclareAcronym{jpg}{
+ % short = JPEG ,
+ % alt = JPG ,
+ % long = Joint Photographic Experts Group
+ % }
default: \acs{jpg} \\
alt.: \aca{jpg}
\end{beispiel}
@@ -403,17 +580,21 @@ is formatted in the same way.
\subsection{Extra Information for the List Entry}\secidx[extra information]{Basics}
Of course you can print a list of acronyms where their meaning is explained.
Sometimes it can be useful to add additional information there. This is done with
-another optional argument to \cmd{DeclareAcronym}:
+another key to \cmd{DeclareAcronym}:
\begin{beschreibung}
- \Befehl{DeclareAcronym}{<id>}\ma{<short>}\ma{<long>}\ma{<extra>}
+ \Option{extra}{<text>}
\end{beschreibung}
These information will only be displayed in the list. See section~\ref{sec:print_lists}
for the impact of the following example.
\begin{beispiel}
% preamble:
- % \DeclareAcronym{nato}{nato}{North Atlantic Treaty Organization}{\textit{deutsch}: Organisation des Nordatlantikvertrags}
- % \DeclareAcronymFormat{nato}{\scshape}
+ % \DeclareAcronym{nato}{
+ % short = nato ,
+ % long = North Atlantic Treaty Organization ,
+ % extra = \textit{deutsch}: Organisation des Nordatlantikvertrags ,
+ % format = \scshape
+ % }
The \ac{nato} is an intergovernmental military alliance based on the
North Atlantic Treaty which was signed on 4~April 1949. \ac{nato}
headquarters are in Brussels, Belgium, one of the 28 member states
@@ -426,14 +607,27 @@ for the impact of the following example.
\subsection{Using Classes}\secidx[classes]{Additional Commands}
The acronyms of \acro can be divided into different classes. This doesn't change
the output but allows different acronym lists, see section~\ref{sec:print_lists}.
-For this \cmd{DeclareAcronym} has an optional argument:
+For this \cmd{DeclareAcronym} has an additional key:
\begin{beschreibung}
- \Befehl{DeclareAcronym}{<id>}\ma{<short>}\ma{<long>}\oa{<class>}
+ \Option{class}{<text>}
\end{beschreibung}
\begin{beispiel}
% preamble:
- % \DeclareAcronym{la}{LA,}{Los Angeles,}[city]
- % \DeclareAcronym{ny}{NY,}{New York,}[city]
+ % \DeclareAcronym{la}{
+ % short = LA ,
+ % short-plural = ,
+ % long = Los Angeles ,
+ % long-plural = ,
+ % class = city
+ % }
+ % \DeclareAcronym{ny}{
+ % short = NY ,
+ % short-plural = ,
+ % long = New York ,
+ % long-plural = ,
+ % class = city ,
+ % cite = NewYork
+ % }
\acl{la} (\acs{la}) \\
\acl{ny} (\acs{ny})
\end{beispiel}
@@ -451,19 +645,13 @@ for the first time you can call one of these commands:
\begin{beispiel}
\acreset{ny}\ac{ny}
\end{beispiel}
-Beware that both commands act \emph{globally}! There is also one command that
-effectively is the opposite of \cmd{acreset}, i.e., it marks an acronym as used:
+Beware that both commands act \emph{globally}! There are also commands that
+effectively do the opposite of \cmd{acreset}, i.e., mark acronyms as used:
\begin{beschreibung}
\Befehl{acuse}{<comma separated list of ids>}\sinceversion{0.5}
\Befehl{acuseall}\sinceversion{0.6a}
\end{beschreibung}
-\subsection{Labels}\secidx[labels]{Additional Commands}
-The first usage of an acronym sets a label \verb+\label{ac:<id>}+, regardless
-which command has been used to typeset it. This label is used to create the page
-numbers in the list (see section~\ref{sec:print_lists} for details) but can also
-be used for other references if needed.
-
\subsection{\cmd{ac} and Friends in \acs*{pdf} Bookmarks}
\noindent\sinceversion{0.5}\acro's commands usually are not expandable which
means they'd leave unallowed tokens in \acs{pdf} bookmarks. \paket{hyperref}
@@ -477,44 +665,76 @@ would do (or \cmd{acsp} for plural forms). These text strings both can accessed
manually and can be modified to an output reserved for \acs{pdf} bookmarks.
\begin{beschreibung}
- \befehl{acpdfstring}{<id>} access the text string used in \acs{pdf} bookmarks.
- \befehl{acpdfstringplural}{<id>} access the plural form of the text string used
- in \acs{pdf} bookmarks.
- \Befehl{DeclareAcronymPDFString}{<id>}\ma{<pdf entry>,<plural ending>} \cnpkgdocarrow\
- declare a custom text string for \acs{pdf} bookmarks.
+ \Befehl{acpdfstring}{<id>}\newline
+ access the text string used in \acs{pdf} bookmarks.
+ \Befehl{acpdfstringplural}{<id>}\newline
+ access the plural form of the text string used in \acs{pdf} bookmarks.
+ \Option{pdfstring}{<pdfstring>/<plural ending>}\newline
+ Key for \cmd{DeclareAcronym} to declare a custom text string for \acs{pdf}
+ bookmarks. The plural ending can be set optionally.
+ \Option{accsupp}{<text>}\newline
+ \sinceversion{1.0}Key for \cmd{DeclareAcronym} to set the \code{ActualText}
+ property of \cmd*{BeginAccSupp} (see \paket{accsupp}'s documentation for details)
+ to be used for an acronym. It only has an effect when the package option \key{accsupp}
+ is used, too.
\end{beschreibung}
For example the \acs{pdf} acronym used in the title for this section is defined
as follows:
\begin{beispiel}[code only]
- \DeclareAcronym{pdf}{pdf}{Portable Document File}
- \DeclareAcronymFormat{pdf}{\scshape}
- \DeclareAcronymPDFString{pdf}{PDF}
+ \DeclareAcronym{pdf}
+ {
+ short = pdf ,
+ long = Portable Document Format ,
+ format = \scshape ,
+ pdfstring = PDF ,
+ accsupp = PDF
+ }
\end{beispiel}
+This also demonstrates the \key{accsupp} key. For this to work you need to use
+the \emph{package option} \key{accsupp}, too, which will load the package
+\paket{accsupp}. Then the key \key{accsupp} will set the \code{ActualText}
+property of \cmd*{BeginAccSupp}. Please refer to \paket{accsupp}'s documentation
+for details. To see its effect copy \ac{pdf} and paste it into a text file. You
+should get uppercase letters instead of lowercase ones.
\secidx*{Additional Commands}
\section{Printing the List}\label{sec:print_lists}\secidx{Printing the List}
-Printing the whole list of acronyms is easy: just place \cmd{printacronyms}
-wherever you want the list to be.
+\noindent\changedversion{1.0}Printing the whole list of acronyms is easy: just
+place \cmd{printacronyms} wherever you want the list to be.
\begin{beschreibung}
- \Befehl{printacronyms}{<list of classes>}\oa{<excluded classes>} \cnpkgdocarrow\
- the first \emph{optional} (!) argument \ma{<list of classes>} takes a comma-separated
- list of the classes of acronyms that should be in the list. If the argument is
- left out, \emph{all} acronyms are printed. In the optional argument \oa{<excluded
- classes>} classes can be specified that shall not be included into the list.
+ \Befehl{printacronyms}[<options>]
\end{beschreibung}
-\begin{beispiel}[below]
- \acsetup{hyperref=false,extra-style=comma}
- \printacronyms[city]
- \acsetup{list-name=City Acronyms}
- \printacronyms{city}
+The commands takes a few options, namely the following ones:
+\begin{beschreibung}
+ \Option{include-classes}{<list of classes>}\newline
+ takes a comma-separated list of the classes of acronyms that should be in the
+ list.
+ \Option{exclude-classes}{<list of classes>}\newline
+ takes a comma-separated list of the classes of acronyms that should \emph{not}
+ be in the list.
+ \Option{name}{<name of the list>}\newline
+ sets the name for the list.
+ \Option{header}{<sectioning command without leading backslash>}\Default{section*}
+ sets the sectioning command for the header of the list.
+\end{beschreibung}
+\begin{beispiel}[code only]
+ \acsetup{extra-style=comma}
+ \printacronyms[exclude-classes=city]
+
+ \printacronyms[include-classes=city,name={City Acronyms}]
\end{beispiel}
+\acsetup{extra-style=comma}
+\printacronyms[exclude-classes=city]
+
+\printacronyms[include-classes=city,name={City Acronyms}]
+
You can see that the default layout is a \code{description} list with a
\code{section*} title. Both can be changed, see section~\ref{sec:customization}.
-The command \cmd{printacronyms} needs two \LaTeX\ runs. This is a precaution to
+The command \cmd{printacronyms} needs two \LaTeX{} runs. This is a precaution to
avoid error messages with a possibly empty list. But since almost all documents
need at least two runs and often are compiled much more often than that, this
fact shouldn't cause too much inconvenience.
@@ -526,6 +746,10 @@ There are a few options which change the general behaviour of \acro.
\default{Underlined} values are used if no value is given.
\begin{beschreibung}
%%
+ \Option{version}{0|1}\Default{1}
+ Provide backwards compatibility for documents set with \acro in a version
+ prior to v1.0.
+ %%
\Option{single}{\default{true}|false}\Default{false}
If set to \code{true} an acronym that's used only once '(with \cmd{ac}) in a
document will only print the long form and will not be printed in the list.
@@ -534,6 +758,13 @@ There are a few options which change the general behaviour of \acro.
If set to \code{true} the short forms of the acronyms will be linked to their
list entry.
%%
+ \Option{record-pages}{\default{true}|false}\Default{true}
+ Since \acro can handle arabic, roman and Roman page numbers but \emph{not}
+ any other kind of numbering this option enables to turn the page number
+ recording of for these cases as it would lead to errors else. This affects
+ the whole document and can only be set in the preamble! It means you cannot
+ have page numbers in the list of acronyms in this case.
+ %%
\Option{only-used}{\default{true}|false}\Default{true}
This option is \code{true} as default. It means that only acronyms that are
actually used in the document are printed in the list. If \code{false}, all
@@ -553,14 +784,14 @@ There are a few options which change the general behaviour of \acro.
If set to \code{true} and the option \key{macros}{true} is in effect then
already existing macros will be overwritten.
%%
- \Option{sort}{\default{true}|false}\Default{false}
+ \Option{sort}{\default{true}|false}\Default{true}
If set to \code{true} the acronym list will be sorted automatically. The
entries are sorted by their \acs{id} ignoring upper and lower case. This
option needs the experimental package \paket*{l3sort} (from the
\paket{l3experimental} bundle) and can only be set in the preamble.
%%
\Option{cite}{\default{all}|first|none}\Default{first}
- This option decides whether citations that are added vie \cmd{DeclareAcronymCitation}
+ This option decides whether citations that are added via \cmd{DeclareAcronymCitation}
are added to each first, every or no appearance of an acronym.
%%
\Option{cite-cmd}{<cmd>}\Default{\cmd*{cite}}
@@ -573,6 +804,11 @@ There are a few options which change the general behaviour of \acro.
citation or maybe not (e.g.\ \cmd*{footcite}\ldots). This option allows you to
set this. Actually it can be used to place arbitrary code right before the
citation.\catcode`\_=11
+ %%
+ \Option{accsupp}{\default{true}|false}\Default{false}
+ \sinceversion{1.0}Activates the access support as provided by the
+ \paket{accsupp} package.
+ %%
\Option{uc-cmd}{<cmd>}\Default{\cmd*{acro_first_upper_case:n}}
The command that is used to capitalize the first word in the \cmd{Ac} and the
like commands. You can change it to another one like for example
@@ -583,8 +819,8 @@ There are a few options which change the general behaviour of \acro.
All options of this and the following sections can be set up either as package
options or via the setup command:
\begin{beschreibung}
- \Befehl{acsetup}{<options>} set up \acro anywhere in the document. Or separate
- package loading from setup.
+ \Befehl{acsetup}{<options>}\newline
+ set up \acro anywhere in the document. Or separate package loading from setup.
\end{beschreibung}
\begin{beispiel}
@@ -643,11 +879,36 @@ possible output forms of the acronyms.
\begin{beschreibung}
%%
\Option{page-ref}{none|plain|comma|paren}\Default{none}
- The style with which the page number of the first appearance of the acronym
- in the text is displayed.
+ If this option is set to a value other than \code{none} the page numbers of
+ the an acronym appeared on are printed in the list. Please note that this
+ is an experimental feature and might fail in quite a number of cases. If you
+ notice anything please send me an email!
+ %%
+ \Option{page-name}{<page name>}\Default{p.\cmd*{@}\cmd*{,}}
+ The ``name'' of the page label. This is automatically translated to the
+ active language. However for the time being there are many translations
+ missing, yet. Please notify me if you find your language missing.
+ \Option{pages-name}{<page name plural>}\Default{pp.\cmd*{@}\cmd*{,}}
+ \sinceversion{1.0}The ``name'' of the page label when there are more than one
+ page. This is automatically translated to the active language. However for the
+ time being there are many translations missing, yet. Please notify me if you
+ find your language missing.
%%
- \Option{page-name}{<page name>}\Default{p.}
- The ``name'' of the page label.
+ \Option{page-ranges}{\default{true}|false}\Default{true}
+ \sinceversion{1.0}If set to \code{false} ranges will be set by appending
+ \code{f} or \code{ff}, respectively.
+ %%
+ \Option{next-page}{<text>}\Default{\cmd*{,}f.\cmd*{@}}
+ \sinceversion{1.0}Appended to a page number when \key{page-ranges} is set to
+ \code{false} and the range is only 2 pages long. This is automatically
+ translated to the active language. However, for the time being there are many
+ translations missing, yet. Please notify me if you find your language missing.
+ %%
+ \Option{next-pages}{<text>}\Default{\cmd*{,}ff.\cmd*{@}}
+ \sinceversion{1.0}Appended to a page number when \key{page-ranges} is set to
+ \code{false} and the range is more than 2 pages long. This is automatically
+ translated to the active language. However, for the time being there are many
+ translations missing, yet. Please notify me if you find your language missing.
%%
\Option{list-type}{table|<list>}\Default{description}
This option let's you choose how the list is printed. \code{<list>} can be any
@@ -666,7 +927,10 @@ possible output forms of the acronyms.
The header type of the list.\Default{section*}
%%
\Option{list-name}{<list name>}\Default{Acronyms}
- The name of the list. This is what's written in the list-header.
+ The name of the list. This is what's written in the list-header. This is
+ automatically translated to the active language. However, for the time being
+ there are many translations missing, yet. Please notify me if you find your
+ language missing.
%%
\Option{list-table-width}\Default{.7\cmd{linewidth}}
This has only an effect if you chose \key{list-type}{table}. The second column
@@ -679,7 +943,7 @@ possible output forms of the acronyms.
If you for example have loaded \paket{enumitem} you can define a custom list for
the acronym list:
-\begin{beispiel}
+\begin{beispiel}[code only]
% preamble:
% \usepackage{enumitem}
\newlist{acronyms}{description}{1}
@@ -688,8 +952,38 @@ the acronym list:
\acsetup{list-type=acronyms,hyperref=false,extra-style=comma}
\printacronyms
\end{beispiel}
+\newlist{acronyms}{description}{1}
+\newcommand*\addcolon[1]{#1:}
+\setlist[acronyms]{labelwidth=3em,leftmargin=3.5em,noitemsep,itemindent=0pt,font=\addcolon}
+\acsetup{list-type=acronyms,extra-style=comma}
+\printacronyms
+
+\section{About Page Ranges}\secidx{About Page Ranges}
+If you enable the \key{page-ref} option \acro adds page numbers to the list of
+acronyms. In version~0.\versionstar{} it would add a page reference for an acronym
+in the list of acronyms that used \cmd*{pageref} to refer to the first appearance
+of an acronym. This is retained using \key{version}{0}. Version~1.0 uses a
+different approach that doesn't use a label but instead will list \emph{all}
+pages an acronym appeared on. With \paket{hyperref} the pages are referenced
+using \cmd*{hyperpage}.
+
+There are some options that control how this list will be typeset, e.g.,
+\key{page-ranges}, \key{next-pages} or the option \key{page-ref} itself. It is
+important to mention that the page list will always take two compilation runs
+until changes in the options or the actual page numbers affect it. This is due to
+the fact that the updated sequence is first written to the \code{aux} file and
+only read in during the next run.
+
+There is another important fact: \acro can only handle arabic and lowercase and
+uppercase roman page numbering. If you happen to choose a different numbering
+style you either have to use the package option \key{record-pages}{false} which
+means you will have to pass on page numbers in the list of acronyms, or you need
+to make sure that you only use the \emph{starred} versions of the \cmd{ac} commands
+on these pages so acronyms don't count as used there!
\secidx*{Customization}
+\secidx*{About Page Ranges}
+
\section{hyperref Support}\secidx{\paket{hyperref} support}[hyperref Support]
The option \key{hyperref}{true} adds internal links from all short (or alternative)
forms to their respective list entries. Of course this only works if you have
@@ -699,10 +993,30 @@ in loads of \paket{hyperref} warnings. Also printing several lists can result in
warnings if don't clearly separate the lists into different classes. If an acronym
appears in more than one list there will also be more than one hypertarget for this
acronym.
+
+Using \paket{hyperref} will also add \cmd{hyperpage} to the page numbers in the
+list (provided they are displayed in the style chosen). Like with an index the
+references will thus not point to the acronyms directly but to the page they're
+on.
\secidx*{\paket{hyperref} support}[hyperref Support]
\appendix
+\section{Commands provided in version~0.\versionstar}
+Prior to version~1.0 the following commands were available. They are still
+provided if you set the option \key{version}{0}. They will be mentioned here
+shortly but they won't be explained any more. If you'd like a more thorough
+description ask me for the documentation to version~0.6a.
+\begin{beschreibung}
+ \Befehl{DeclareAcronym}*{<id>}\ma{<short>,<pl>}\oa{<alt.>}\ma{<long>,<pl>}\ma{<extra>}\oa{<class>}
+ \newline\verb+% can be used only in preamble+
+ \Befehl{DeclareAcronymFormat}{<id>}\ma{<format>} \verb+% can be used only in preamble+
+ \Befehl{DeclareAcronymCitation}{<id>}\oa{<pre>}\oa{<post>}\ma{<cite keys>}
+ \newline\verb+% can be used only in preamble+
+ \Befehl{DeclareAcronymPDFString}{<id>}\ma{<pdf entry>,<plural ending>}
+ \newline\verb+% can be used only in preamble+
+\end{beschreibung}
+
\section{All Acronyms Used in this Documentation}\label{sec:documentation_acronyms}
\begin{beispiel}[code only]
\acsetup{
@@ -710,30 +1024,29 @@ acronym.
list-style = longtable,
list-header = subsection*,
extra-style = comma,
- page-ref = comma,
- list-name = All Acronyms}
- \printacronyms
+ page-ref = comma
+ }
+ \printacronyms[name=All Acronyms]
\end{beispiel}
\acsetup{
list-type = table,
list-style = longtable,
list-header = subsection*,
extra-style = comma,
- page-ref = comma,
- list-name = All Acronyms}
-\printacronyms
+ page-ref = comma
+}
+\printacronyms[name=All Acronyms]
\begin{beispiel}[code only]
\acsetup{
list-type = table,
list-style = longtable,
list-header = subsection*,
- page-ref = comma,
- list-name = City-Acronyms}
- \printacronyms{city}
+ page-ref = comma
+ }
+ \printacronyms[include-classes=city,name=City Acronyms]
\end{beispiel}
-\acsetup{list-name=City-Acronyms}
-\printacronyms{city}
+\printacronyms[include-classes=city,name=City Acronyms]
{\RaggedRight\EmbracOff
\printbibliography}
diff --git a/Master/texmf-dist/doc/latex/acro/example_one.tex b/Master/texmf-dist/doc/latex/acro/example_one.tex
index e2bff36d42c..ea775ba86c3 100644
--- a/Master/texmf-dist/doc/latex/acro/example_one.tex
+++ b/Master/texmf-dist/doc/latex/acro/example_one.tex
@@ -3,6 +3,7 @@
\documentclass{scrartcl}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
+\usepackage[ngerman]{babel}
\usepackage{acro}
\acsetup{
page-ref = paren,% Seitennummer in Klammern
@@ -13,16 +14,50 @@
\usepackage{longtable,siunitx}
-\DeclareAcronym{ecm}{ECM} {Electro Chemical Machining}{Elektrochemisches Abtragen}
-\DeclareAcronym{adc}{ADC} {Analog-to-Digital-Converter}
-\DeclareAcronym{edm}{EDM} {Electro Discharge Machining}
-\DeclareAcronym{ecdm}{ECDM}{Electro Chemical Discharge Machining}{Kombination aus \acs{ecm} und \acs{edm}}
+\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}
+}
% "Acronyme" (tatsächlich physikalische Größen) einer speziellen Klasse:
-\DeclareAcronym{f}{\ensuremath{f}}{Frequenz}{\si{\hertz}}[physics]
-\DeclareAcronym{A}{\ensuremath{A}}{Fläche}{\si{\metre^2}}[physics]
-\DeclareAcronym{C}{\ensuremath{C}}{Kapazität}{\si{\farad}}[physics]
-\DeclareAcronym{F}{\ensuremath{F}}{Kraft}{\si{\newton}}[physics]
+\DeclareAcronym{f}{
+ short = \ensuremath{f} ,
+ long = Frequenz ,
+ extra = \si{\hertz} ,
+ class = physics
+}
+\DeclareAcronym{A}{
+ short = \ensuremath{A} ,
+ long = Fläche ,
+ extra = \si{\metre^2} ,
+ class = physics
+}
+\DeclareAcronym{C}{
+ short = \ensuremath{C} ,
+ long = Kapazität ,
+ extra = \si{\farad} ,
+ class = physics
+}
+\DeclareAcronym{F}{
+ short = \ensuremath{F} ,
+ long = Kraft ,
+ extra = \si{\newton} ,
+ class = physics
+}
\begin{document}
@@ -31,16 +66,14 @@ erstes Mal: \ac{ecm}
zweites Mal: \ac{ecm}
% alle außer der Klasse 'physics' auflisten:
-\acsetup{list-name=Abkürzungsverzeichnis}
-\printacronyms[physics]
+\printacronyms[exclude-classes=physics, name=Abkürzungsverzeichnis]
% nur die Klasse 'physics' auflisten:
\acsetup{
- list-name = Formelverzeichnis,
list-type = table,
list-style = extra-longtable-rev,
extra-style = plain
}
-\printacronyms{physics}
+\printacronyms[include-classes=physics, name=Formelverzeichnis]
\end{document} \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/acro/example_two.tex b/Master/texmf-dist/doc/latex/acro/example_two.tex
index 75b009e33d0..f75738b45f4 100644
--- a/Master/texmf-dist/doc/latex/acro/example_two.tex
+++ b/Master/texmf-dist/doc/latex/acro/example_two.tex
@@ -3,21 +3,71 @@
% this file is an adapted version of acrotest.tex shipped out with the `acronym'
% package
\documentclass{article}
+\usepackage[T1]{fontenc}
+\usepackage[utf8]{inputenc}
+\usepackage[english]{babel}
+\usepackage{fixltx2e}
\usepackage[colorlinks]{hyperref}
\usepackage{acro}
+\DeclareInstance{acro-extra}{paren}{default}{
+ punct = true ,
+ punct-symbol =
+}
\acsetup{sort,page-ref=comma,extra-style=paren,hyperref}
-\DeclareAcronym{CDMA}{CDMA}{Code Division Multiple Access}
-\DeclareAcronym{GSM}{GSM}{Global System for Mobile communication}
-\DeclareAcronym{NA}{\ensuremath{N_{\mathrm A}}}{Number of Avogadro}{see \S\ref{Chem}}
-\DeclareAcronym{NAD+}{NAD\textsuperscript{+}}{Nicotinamide Adenine Dinucleotide}
-\DeclareAcronym{NUA}{NUA}{Not Used Acronym}
-\DeclareAcronym{TDMA}{TDMA}{Time Division Multiple Access}
-\DeclareAcronym{UA}{UA}{Used Acronym}
-\DeclareAcronym{lox}{\ensuremath{LOX}}{Liquid Oxygen}%
-\DeclareAcronym{lh2}{\ensuremath{LH_2}}{Liquid Hydrogen}%
-\DeclareAcronym{IC}{IC}{Integrated Circuit}%
-\DeclareAcronym*{BUT}{BUT}{Block Under Test,Blocks Under Test}%
+\DeclareAcronym{CDMA}{
+ short = CDMA ,
+ long = Code Division Multiple Access ,
+ long-plural = es
+}
+\DeclareAcronym{GSM}{
+ short = GSM ,
+ long = Global System for Mobile communication
+}
+\DeclareAcronym{NA}{
+ short = {\ensuremath{N_{\mathrm{A}}}} ,
+ long = Number of Avogadro ,
+ extra = see \S\ref{Chem} ,
+ pdfstring = NA
+}
+\DeclareAcronym{NAD+}{
+ short = {NAD\textsuperscript{+}} ,
+ short-plural = ,
+ long = Nicotinamide Adenine Dinucleotide ,
+ pdfstring = NAD+
+}
+\DeclareAcronym{NUA}{
+ short = NUA ,
+ long = Not Used Acronym
+}
+\DeclareAcronym{TDMA}{
+ short = TDMA ,
+ long = Time Division Multiple Access ,
+ long-plural = es
+}
+\DeclareAcronym{UA}{
+ short = UA ,
+ long = Used Acronym
+}
+\DeclareAcronym{lox}{
+ short = {\emph{LOX}} ,
+ long = Liquid Oxygen ,
+ pdfstring = LOX
+}
+\DeclareAcronym{lh2}{
+ short = {\emph{LH\textsubscript{2}}} ,
+ long = Liquid Hydrogen ,
+ pdfstring = LH2
+}
+\DeclareAcronym{IC}{
+ short = IC ,
+ long = Integrated Circuit
+}
+\DeclareAcronym{BUT}{
+ short = BUT ,
+ long = Block Under Test ,
+ long-plural-form = Blocks Under Test
+}
\begin{document}
\section{Intro}