テキスト内に出現する略語のリストを生成しますか?

テキスト内に出現する略語のリストを生成しますか?

現在、私は略語を手動で追跡し、以下のようなページに入力しています。論文のテキスト内で略語を定義し、そのリストを次のようなページに自動的に印刷できるようにしたいと考えています。

それは可能ですか?もし可能であれば、どのようにすればいいですか?

ここに画像の説明を入力してください

\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 \\
}

答え1

これはパッケージacronymの方法を使用しますglossaries

各頭字語は、\newacronym{label}{Acronym}{Explanation}前文で を使用して定義されます。

ラベルは参照\gls{label}などに使用されます。

定義された頭字語をすべて追加するには、 を使用します\glsaddall

間に(pdf)latex1 つのステップを入れて、 を 2 回コンパイルすることを忘れないでください。makeglossaries

\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}  

ここに画像の説明を入力してください

関連情報