=================================================================== RCS file: /home/cvs/OpenXM_contrib/pari-2.2/doc/Attic/pdfmacs.tex,v retrieving revision 1.1 retrieving revision 1.2 diff -u -p -r1.1 -r1.2 --- OpenXM_contrib/pari-2.2/doc/Attic/pdfmacs.tex 2001/10/02 11:16:56 1.1 +++ OpenXM_contrib/pari-2.2/doc/Attic/pdfmacs.tex 2002/09/11 07:26:42 1.2 @@ -1,4 +1,4 @@ -% $Id: pdfmacs.tex,v 1.1 2001/10/02 11:16:56 noro Exp $ +% $Id: pdfmacs.tex,v 1.2 2002/09/11 07:26:42 noro Exp $ % Copyright (c) 2000 The PARI Group % % This file is part of the PARI/GP documentation @@ -126,6 +126,7 @@ %% labels and symbolic cross-refs. For this we use the parameter to %% build the symbolic pdf destination. +\@ifundef{pdfstartlink}{\global\let\pdfstartlink\pdfannotlink}{} \def\label#1{\immediate\write\aux{\string \newlabel{#1}{{\the\chapno}{\currentlabel}}} \pdfdest name {pdf@lab#1} xyz} @@ -134,7 +135,7 @@ {\edef\@temp{\csname r@#1\endcsname}% \def\lbl{\@ref}\def\chp{\@cref}% \pdfjumpref{#1}{\ifx\chp{\the\chapno}\lbl\else\chp.\lbl\fi}}} -\def\pdfjumpref#1#2{\pdfannotlink attr {/Border [ 0 0 0 ] /H /O} +\def\pdfjumpref#1#2{\pdfstartlink attr {/Border [ 0 0 0 ] /H /O} goto name {pdf@lab#1}\pushcolor{\linkcolor}#2\popcolor\pdfendlink} \catcode`\@=12