
Derzeit verfolge ich meine Abkürzungen manuell und füge sie auf einer Seite wie unten ein. Ich möchte die Abkürzungen im Text meines Dokuments definieren können und dann automatisch eine Liste davon auf einer Seite wie dieser ausdrucken lassen:
Ist das möglich und wenn ja, wie?
\clearpage
\setstretch{1.5}
\lhead{\emph{Abbreviations}}
\listofsymbols{ll} % Include a list of Abbreviations (a table of two columns)
{
\textbf{AHRS} & \textbf{A}ttitude and \textbf{H}eading \textbf{R}eference \textbf{S}ystem \\
\textbf{API} & \textbf{A}pplication \textbf{P}rogramming \textbf{I}nterface \\
\textbf{IMU} & \textbf{I}nertial \textbf{M}easurements \textbf{U}nit \\
\textbf{JSON} & \textbf{J}ava\textbf{S}cript \textbf{O}bject \textbf{N}otation \\
\textbf{VGA} & \textbf{V}ideo \textbf{G}raphics \textbf{A}rray ($640\times480$ px)\\
\textbf{WPF} & \textbf{W}indows \textbf{P}resentation \textbf{F}oundation \\
\textbf{XAML} & E\textbf{x}tended \textbf{A}pplication \textbf{M}arkup \textbf{L}anguage \\
}
Antwort1
Hierbei wird die acronym
Paketmethode verwendet glossaries
.
\newacronym{label}{Acronym}{Explanation}
Jedes Akronym wird in der Präambel definiert .
Das Etikett dient als Referenz \gls{label}
usw.
Um alle definierten Akronyme hinzuzufügen, verwenden Sie \glsaddall
.
Denken Sie daran, zweimal zu kompilieren (pdf)latex
und einen makeglossaries
Schritt dazwischen zu machen.
\documentclass{book}
\usepackage[acronym]{glossaries}
\renewcommand{\acronymname}{List of Abbreviations}
\makeglossaries
\newacronym{ahrs}{AHRS}{\textbf{A}ttitude and \textbf{H}eading \textbf{R}eference \textbf{S}ystem}
\newacronym{api}{\textbf{API}}{\textbf{A}pplication \textbf{P}rogramming \textbf{I}nterface}%
\newacronym{imu}{IMU}{ \textbf{I}nertial \textbf{M}easurements \textbf{U}nit}
\newacronym{json}{JSON} { \textbf{J}ava\textbf{S}cript \textbf{O}bject \textbf{N}otation}
\newacronym{vga}{VGA}{ \textbf{V}ideo \textbf{G}raphics \textbf{A}rray ($640\times480$ px)}
\newacronym{wpf}{WPF}{ \textbf{W}indows \textbf{P}resentation \textbf{F}oundation}
\newacronym{xaml}{XAML}{ E\textbf{x}tended \textbf{A}pplication \textbf{M}arkup \textbf{L}anguage}
\begin{document}
\glsaddall
\printacronyms
\end{document}