I am using MacTeX with TextMate and Skim. Can somebody tell me why the example below does not work? Normally it should be possible to jump with \HERE to a specific location in the pdf file.
Code: Select all
\documentclass{book}
\usepackage{zref-abspage}
\makeatletter
\newcommand*{\HERE}{%
\zref@label{HERE}%
}
\makeatletter
\AtBeginDocument{%
\hypersetup{%
pdfstartpage=\zref@extractdefault{HERE}{abspage}{1}%
}%
}
\makeatother
\usepackage{hyperref}
\begin{document}
\frontmatter
\tableofcontents
\mainmatter
\chapter{Introduction}
\chapter{Documentation}
\section{Hello World}
\HERE
\backmatter
\chapter{Appendix}
\end{document}