# [tex4ht] [glossaries] First (long) occurrence of an acronym not long in title

Fri Sep 7 16:29:25 CEST 2012

Hi,

consider the following test.tex MCE:

\documentclass{article}
\usepackage[nonumberlist]{glossaries}
\makeglossaries
\newacronym{tex4ht}{\TeX4ht}{\TeX{} for HTML}
\title{\gls{tex4ht}}
\begin{document}
%\maketitle
\gls{tex4ht}
\printglossary
\end{document}

and compile it with:

htlatex test
makeglossaries test
htlatex test

Because of the commented \maketitle, the first occurrence of the
"acronym" \gls{tex4ht} (that appears in the current text) is displayed
correctly (long form followed by the short form in brackets).

But, if the title appears (\maketitle uncommented), the fist occurrence
of the "acronym" (that appears this time in the title) is not displayed
correctly: it is displayed as a not first occurrence (only the short
form is displayed). BTW, this wrong behaviour doesn't arise if the file
is compiled with pdflatex instead of htlatex.

Do you know a way to get the right behaviour ?

Thanks!
--
Denis