Differences between revisions 17 and 18
Revision 17 as of 2011-01-07 08:43:26
Size: 243
Editor: 121
Comment: http://www.panzavidela.com/ acomplia rhcj http://www.centralparkposse.com/Acomplia.htm diet pill acomplia 077546 http://www.librolacarta.com/cialis.html cialis fjw http://www.gerryggriffin.com/propec
Revision 18 as of 2011-01-07 10:26:39
Size: 836
Editor: JunHu
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
 http://www.panzavidela.com/ acomplia rhcj http://www.centralparkposse.com/Acomplia.htm diet pill acomplia 077546 http://www.librolacarta.com/cialis.html cialis fjw http://www.gerryggriffin.com/propecia propecia 40628
----
CategoryHomepage
= Resolve a conflict between gloss and hyperref =

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%

}}}

Resolve a conflict between gloss and hyperref

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%