Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problem with glossaries \acrlong

182 views
Skip to first unread message

woel...@gmx.net

unread,
Apr 2, 2010, 8:21:28 AM4/2/10
to
Hi there...

I encountered a problem with the glossaries package when using \& or
\, together with \acrlong or \Acrlong:

A code example:

______________

\documentclass[fontsize=12pt,paper=A4]{scrreprt}

\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage[ngerman]{babel}
\usepackage{mathptmx}
\usepackage[scaled=.92]{helvet}
\usepackage{courier}

\usepackage[acronym]{glossaries}
\makeglossaries
\newacronym[\glslongpluralkey={xx \& Yy}]{XY}{x\&Y}{x \& Y}


\begin{document}

\printglossary[type=\acronymtype]

\section*{Text}
\acrshort{XY} \verb+\acrshort{XY}+ \\
\Acrshort{XY} \verb+\Acrshort{XY}+ \\
\acrshortpl{XY} \verb+\acrshortpl{XY}+ \\
\Acrshortpl{XY} \verb+\Acrshortpl{XY}+ \\
\acrlong{XY} \verb+\acrlong{XY}+ \\
\Acrlong{XY} \verb+\Acrlong{XY}+ \\
\acrlongpl{XY} \verb+\acrlongpl{XY}+ \\
\Acrlongpl{XY} \verb+\Acrlongpl{XY}+ \\
\acrfull{XY} \verb+\acrfull{XY}+ \\
\Acrfull{XY} \verb+\Acrfull{XY}+ \\
\acrfullpl{XY} \verb+\acrfullpl{XY}+ \\
\Acrfullpl{XY} \verb+\Acrfullpl{XY}+ \\
\gls{XY} \verb+\gls{XY}+ \\
\Gls{XY} \verb+\Gls{XY}+ \\


\end{document}
_____________________

Running

latex testfile
makeindex -s testfile.ist -t testfile.alg -o testfile.acr testfile.acn
latex testfile
pdflatex testfile

produces:

Acronyms
x&Y x & Y. 1

Text
x&Y \acrshort{XY}
X&Y \Acrshort{XY}
x&Ys \acrshortpl{XY}
X&Ys \Acrshortpl{XY}
x \& Y \acrlong{XY}
X \& Y \Acrlong{XY}
xx & Yy \acrlongpl{XY}
Xx & Yy \Acrlongpl{XY}
x & Y (x&Y) \acrfull{XY}
X & Y (x&Y) \Acrfull{XY}
xx & Yy (x&Ys) \acrfullpl{XY}
Xx & Yy (x&Ys) \Acrfullpl{XY}
x & Y (x&Y) \gls{XY}
X&Y \Gls{XY}

So when using \acrlong or \Acrlong the \ of \& is printed, too. The
same occures with \,
Is this a known behaviour? Any way to prevent it?

I have installed the following versions:

MiKTeX 2.8
pdfTeX, Version 3.1415926-1.40.10
Glossaries 2.05 dated Feb. 2010

Thanks for help.

Nicola Talbot

unread,
Apr 2, 2010, 10:38:29 AM4/2/10
to

Use sanitize=none option:

\usepackage[acronym,sanitize=none]{glossaries}

Regards
Nicola Talbot


--
Home: http://theoval.cmp.uea.ac.uk/~nlct/
LaTeX Related Information: http://theoval.cmp.uea.ac.uk/~nlct/latex/
Creating a LaTeX Minimal Example:
http://theoval.cmp.uea.ac.uk/~nlct/latex/minexample/

--- news://freenews.netfront.net/ - complaints: ne...@netfront.net ---

woel...@gmx.net

unread,
Apr 2, 2010, 11:01:24 AM4/2/10
to

>
> Use sanitize=none option:
>

Thank you so much.
Following your answer I found the corresponding hint in your
documentation for the glossaries package.
I apologize for not reading it more thoroughly.

Regards
Anja

0 new messages