Currently I am using the acronym package to generate a glossary of acronyms, but I would like to also have a glossary of mathematical symbols. Therefore, I am looking to move to the glossaries package. I am having issues (detailed below) that the glossary section is not generated and so would like to know what is the simplest way to do this?
Below is a simple WORKING use case with acronym, from which I can generate a pdf, on mac os X, in texmaker (4.4.1) running the quick build option;
PdfLaTex + Bib(la)tex + PdfLaTex(x2) + View Pdf
main.tex:
\documentclass{article}
\usepackage{acronym}
\usepackage[backend=bibtex,bibencoding=ascii]{biblatex}
\addbibresource{example_bib.bib}
\begin{document}
\section{Body}
Try printing \ac{aa} and citing something.\cite{a_reference}
\section{Acronyms}
\begin{acronym}[AAAAAAA]
\acro{aa}[AA]{An Acronym}
\end{acronym}
\printbibliography
\end{document}
example_bib.bib:
@ARTICLE{a_reference,
author = {A, Name},
title = {A Title},
volume = {1},
pages = {1--2},
abstract = {an abstarct},
date = {2013-06},
doi = {10.1016/j.commatsci.2013.03.013},
issn = {0927-0256},
journaltitle = {Computational Materials Science},
keywords = {Keyword},
shortjournal = {Computational Materials Science},
url = {http://www.sciencedirect.com},
urldate = {2015-10-28}}
If I try adapting the main.tex file to:
\documentclass{article}
\usepackage[acronym]{glossaries}
\usepackage[backend=bibtex,bibencoding=ascii]{biblatex}
\makeglossaries
\newacronym{aa}{AA}{An Acronym}
\addbibresource{example_bib.bib}
\begin{document}
\section{Body}
Try printing \gls{aa} and citing something.\cite{a_reference}
\printacronyms
\printbibliography
\end{document}
It runs, but there is NO glossary section output to the pdf! (the acronym is inserted in the body text)
This is also the case if I try using glossary terms:
\documentclass{article}
\usepackage{glossaries}
\usepackage[backend=bibtex,bibencoding=ascii]{biblatex}
\makeglossaries
\newglossaryentry{aa}{name=aa,description={A description of AA}}
\addbibresource{example_bib.bib}
\begin{document}
\section{Body}
Try printing \gls{aa} and citing something.\cite{a_reference}
\printglossaries
\printbibliography
\end{document}
I have looked at a number of questions on here related to this issue, but none seem to provide an adequate answer.
\newacronym{aa}[AA]{An Acronym}They should all be curly brackets{}not square[]. So it should be\newacronym{aa}{AA}{An Acronym}– Nicola Talbot Jun 10 '16 at 13:10makeglossariesafterpdflatex. You mentioned your build option isPdfLaTex + Bib(la)tex + PdfLaTex(x2) + View Pdf. I don't use TeXMaker, but there needs to be a MakeGlossaries in there (either before or after Bib(la)tex). Alternatively, add the package optionautomake: \usepackage[automake]{glossaries} – Nicola Talbot Jun 10 '16 at 14:15automakedid the trick, thank you very much! This seems an easier option than messing with the build? Also, is there any other top tips you could give me for usingglossariesthat might not come up in the basic howto's? – Chris Sewell Jun 10 '16 at 14:28glossariespackage. There are some examples of different styles in my gallery. Have you seen the glossaries article on the LaTeX Community site? – Nicola Talbot Jun 10 '16 at 14:42glossariesand it all appears to be working great. No I hadn't seen them articles, so I will check them out. Thanks again Nicola – Chris Sewell Jun 10 '16 at 15:17sortkey it defaults to the value of thename. Frommakeindex's point of view characters like{,},$and \ are just symbols. – Nicola Talbot Jun 10 '16 at 16:13