
目前,我手動追蹤我的縮寫並將它們放在如下頁面中。我希望能夠在論文文本中定義縮寫詞,然後將它們的列表自動打印在頁面上,如下所示:
這可能嗎?
\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)latex
一個步驟。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}