Bit of an odd one, I have a glossary that is printing out my glossary and acronyms using the command \printglossaries
. This works fine mostly for every single acronym apart from one. The Acronym in question appears in the Acknowledgements which is created using the following:
\renewcommand{\abstractname}{Acknowledgements}
\begin{abstract}
%Lots of text
\acrfull{FX}
\end{abstract}
I'm having to do the renew as I've already create an abstract before. I was informed this was the best way to create an abstract and acknowledgments page in a report
style document. The funny thing is that the acronym works fine here and is displayed correctly as I refer to it in the glossary. However, it doesn't appear in my glossary like my other acronyms do.
\newacronym{FX}{FX}{Long text here}
\newacronym{IDE}{IDE}{Integrated development envrionment}
On the creation of the PDF, IDE appears as it's elsewhere in the document, but FX doesn't as it's only being created in the acknowledgements. Is this a known feature? If so, is there any way to force the \printglossaries
command to print that single entry?
One other thing to know is that the acknowledgment is on an unnumbered page. Could that also be affecting it?
[EDIT] This is a minimum version that has the issue
\documentclass[a4paper]{report}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{minitoc}
\usepackage[acronym,section]{glossaries}
\newacronym{FX}{FX}{Some text}
\newacronym{IDE}{IDE}{Integrated development envrionment}
\makeglossaries
\begin{document}
\pagenumbering{gobble}
\printglossaries
\begin{abstract}
Some blurb
\end{abstract}
\renewcommand{\abstractname}{Acknowledgements}
\begin{abstract}
\acrfull{FX}
\end{abstract}
\pagenumbering{arabic}
\dominitoc
\tableofcontents
\chapter{Test}
\section{This is a test}
\acrfull{IDE}
\end{document}
[Edit] Added in Roman style page numbering
\documentclass[a4paper]{report}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{minitoc}
\usepackage[acronym,section]{glossaries}
\newacronym{FX}{FX}{Some text}
\newacronym{IDE}{IDE}{Integrated development envrionment}
\makeglossaries
\begin{document}
\pagenumbering{roman}
\printglossaries
\begin{abstract}
Some blurb
\end{abstract}
\renewcommand{\abstractname}{Acknowledgements}
\begin{abstract}
\acrfull{FX}
\end{abstract}
\pagenumbering{arabic}
\dominitoc
\tableofcontents
\chapter{Test}
\section{This is a test}
\acrfull{IDE}
\end{document}
That causes the glossary to gain a page number, but neither of the abstracts do. I've tried using \pagestyle{plain}
and \pagenumbering{roman}
both before and after the \begin{abstract}
, but both abstracts are printed without a page number
\pagenumbering{gobble}
is the culprit!gobble
feature causes this. I'll check.glossaries
does not print the item if the page number slot is empty. The easiest way to bypass this is replacing\pagenumbering{gobble}
with\pagestyle{empty}
for the abstracts and afterwards using\pagestyle{plain}
(or whatever page style needed)makeindex
that's rejecting the entry. Themakeindex
transcript for the provided MWE contains2 entries accepted, 2 rejected
. The log (.alg) file containsIllegal page number
.\pagestyle{empty}
, the location in the glossary will confuse the reader. For example, if it appears as2
, then the reader will expect that to refer to page 2 of the main matter. It would be better to haveroman
numbering pages in the front matter with\pagestyle{empty}
in the abstract. That should give the reader a better clue. Or just use a non-indexing command in the abstract.