References to pages within \stepwise
"Prof. Dr. Jobst Hoffmann" <[email protected]> Mon, 08 Dec 2003 12:44:31 +0100
| Newsgroups | gmane.comp.tex.texpower.user |
|---|---|
| Organization | Fachhochschule Aachen, Abt. =?UNKNOWN?Q?J=C3=BClich?= |
| Message-ID | <[email protected]> |
I have a problem similar to Andreas Mathias:
In a presentation I create a page stepwise and I want to switch to so=
me
remarks and back to the place where I come from. My code reads as
follows:
\documentclass[12pt,a4paper]{article}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[display]{texpower}
\usepackage[colorlinks]{hyperref}
\begin{document}
\stepwise{%
\step{\hypertarget{bck:step1}{step 1}, =20
\hyperlink{rem:step1}{remarks to step 1}}
\step{\hypertarget{bck:step2}{step 2},
\hyperlink{rem:step2}{remarks to step 2}}
\step{\hypertarget{bck:step3}{step 3},
\hyperlink{rem:step3}{remarks to step 3}}
\step{End of the presentation}
}
\newpage
\hypertarget{rem:step1}{remarks to step 1}
\hyperlink{bck:step1}{back to step 1}
\newpage
\hypertarget{rem:step2}{remarks to step 2}
\hyperlink{bck:step2}{back to step 2}
\newpage
\hypertarget{rem:step3}{remarks to step 3}
\hyperlink{bck:step3}{back to step 3}
\end{document}
It doesn't work and it can't, as H. F. Nordhaug pointed out. Now I
changed the code according to his hint to=20
\documentclass[12pt,a4paper]{article}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[display]{texpower}
\usepackage[colorlinks]{hyperref}
\makeatletter
\renewcommand{\dont@insert@firstanchor@TP}{\hypertarget{firstpage.\th=
e\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?
--=20
Prof. Dr. Jobst Hoffmann Tel: (0049)-2461-99-3159
Fachhochschule Aachen Abt. J=C3=BClich Fax: (0049)-2461-99-3189
Fachbereich 9 email: [email protected]
-------------------------------------------------------
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/