I have a glossary entry using a negative thinspace ("\!"), but it seems that makeglossaries
is generating wrong code. I filed a bug report, but maybe there is a work-around?
Here is a minimal working example :
\documentclass[12pt,a4paper,twoside]{memoir}
\usepackage{lipsum}
\usepackage[acronym,toc]{glossaries}
\newglossaryentry{foo}{text=foo,name=Foo,description={This is foo}}
\newglossaryentry{footoo}{text={foo-too},name={Foo-\!Too},description={This is foo-too}}
\makeglossaries
\begin{document}
\lipsum[1]
\gls{foo}
\lipsum[1]
\gls{footoo}
\lipsum[1]
\printglossaries{}
\end{document}
In the glossary, at the end of the "Foo" line, there is a residual "Foo- ̈".I find Foo-\"\relax \glsresetentrylist
in the .gls file, which, once removed, cleans the output of pdflatex
, but the root cause is likely in the glo file which replaces the "\!" with "\"!".
name={Foo-{\!}Too}
?!
has a special meaning in working with indexing programmes (which makeglossasries uses behind the scenes), perhaps you should give it a different name.