[pdftex] Naïve problem with \pdfdest ?
Michael Chapman
mchapman at mchapman.com
Mon Mar 31 09:28:37 CEST 2003
Apologies in advance, I suspect this is due to some very stupid coding on my
part, but I just can't see it:
I use (I've stripped some of the spacing out):
\newcommand{\PIC}[5]{
\fontsize{3pt}{3pt}\selectfont \pdfdest name{LINK#5} xyz zoom 4000 %
\hyperlink{LINK#5}{\includegraphics[scale=#3]{#2}}
\parbox{30mm}{#4}
\Acrobatmenu{GoBack}{Revert to normal view}
\fontsize{12pt}{12pt}\selectfont}
to make a "click and zoom" image.
Which I then call using other commands such as:
\newcommand{\ABC}[1]{\PIC{-0.25}{pyr}{0.1}{This is from ....}{100#1}}
\newcommand{\DEF}[1]{\PIC{-0.25}{def}{0.1}{This is from ....}{200#1}}
Etc.
Then in the document I use \ABC{1}, \ABC{2}, etc. \ABC always calls the same
image (pyr.png). But my hope based on experiment, not knowledge) is that each
usage is unique (e.g. the name is LINK1001, LINK1002, etc.).
But in practice clicking on an image may provide a nicely zoomed rendition of
it, or may shoot off somewhere else in the document.
Am I failing to reset some counter? Or ... ?
Thanks for any pointers,
Michael.
More information about the pdftex
mailing list