glossaries package to define terms once and reuse them consistently.
Setup
glossary-basic.tex
Build Steps
- Run LaTeX.
- Run
makeglossaries <jobname>. - Run LaTeX twice.
Create glossaries and acronym lists in LaTeX with the glossaries package and a stable build workflow.
glossaries package to define terms once and reuse them consistently.
\documentclass{report}
\usepackage[colorlinks=true]{hyperref}
\usepackage[acronym]{glossaries}
\makeglossaries
\newglossaryentry{latex}{
name=LaTeX,
description={A high-quality typesetting system}
}
\newacronym{api}{API}{Application Programming Interface}
\begin{document}
\gls{latex} is widely used in academia.
First use: \gls{api}. Later use: \gls{api}.
\printglossary
\printglossary[type=\acronymtype,title=Acronyms]
\end{document}
makeglossaries <jobname>.Was this page helpful?