Differences between revisions 1 and 22 (spanning 21 versions)
Revision 1 as of 2005-07-06 10:36:05
Size: 782
Editor: dyn176170
Comment:
Revision 22 as of 2013-12-27 22:33:55
Size: 0
Editor: JunHu
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
If hyperref is loaded, the gloss pacakage tryies to map its `\glosslinkborder` to `pdfborder`. When the source TeX file is not compiled by PDFLaTeX, this will cause a problem when `\gloss` is used to cite the glossary item:{{{
! Undefined control sequence.
\glosslinkborder ->\@pdfborder
}}}

The problem can be solved by redefine the command `\glosslinkborder`:{{{
\renewcommand{\glosslinkborder}{}
}}}

Or it can be made somewhat intelligent:{{{
\usepackage{gloss}
\usepackage{hyperref}

\newif\ifPDF%
\ifx\pdfoutput\undefined\PDFfalse%
\else\ifnum\pdfoutput > 0\PDFtrue%
     \else\PDFfalse%
     \fi%
\fi%

\ifPDF%
    \usepackage[pdftex]{graphicx,color}%
\else%
    \usepackage[dvips]{graphicx,color}
    \renewcommand{\glosslinkborder}{}
\fi%

}}}