Re: References to pages within \stepwise

Hans Fredrik Nordhaug <[email protected]> Mon, 8 Dec 2003 13:58:51 +0100 (CET)
Newsgroups gmane.comp.tex.texpower.user
Message-ID <[email protected]>
On Mon, 8 Dec 2003, Prof. Dr. Jobst Hoffmann wrote:

> I have a problem similar to Andreas Mathias:
>
> In a presentation I create a page stepwise and I want to switch to some
> remarks and back to the place where I come from. My code reads as
> follows:

[cut no working example]

> It doesn't work and it can't, as H. F. Nordhaug pointed out. Now I
> changed the code according to his hint to
>
> \documentclass[12pt,a4paper]{article}
>
> \usepackage[latin1]{inputenc}
> \usepackage[T1]{fontenc}
> \usepackage[display]{texpower}
> \usepackage[colorlinks]{hyperref}

\usepackage{count1to}

> \makeatletter
> \renewcommand{\dont@insert@firstanchor@TP}{\hypertarget{firstpage.\the\count1}{}}
> \renewcommand{\do@insert@firstanchor@TP}{\hypertarget{firstpage.\the\count1}{}}
> \makeatother
>
> \begin{document}
>     \stepwise{%
>       \step{step 1, \hyperlink{rem:step1}{remarks to step 1}}
>
>       \step{step 2, \hyperlink{rem:step2}{remarks to step 2}}
>
>       \step{step 3, \hyperlink{rem:step3}{remarks to step 3}}
>
>       \step{End of the presentation}
>
>     }
>
> \newpage
> \hypertarget{rem:step1}{remarks to step 1}
>
> \hyperlink{firstpage.1}{back to step 1}
>
> \newpage
> \hypertarget{rem:step2}{remarks to step 2}
>
> \hyperlink{firstpage.1}{back to step 2}

--->         ###########

> \newpage
> \hypertarget{rem:step3}{remarks to step 3}
>
> \hyperlink{page.1}{back to step 3}
>
> \end{document}
>
> and this works nearly with pdflatex - can't go back to page 2 -, but not
> with vTeX, my standard tex-to-pdf-processor:
>
> + warning: reference "firstpage.1" was not resolved
>
> What' s wrong? Is there another solution?

Typo. You have "firstpage.1" twice. Concerning VTeX, I don't know since I
can't test on it. (I had to add "\usepackage{count1to}" to make it work
for pdflatex.)

Regards,
Hans

PS! Please don't use "firstpage.n" since it's part of TeXPower. What you
do in you own documents is none of my business, but on the mailing list it
can create a lot of confusion.


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/