I'm making a custom document without any chapters, sections, etc. But I also want a table of contents in my document, with entries that I define. So far, I have used
\phantomsection
\addcontentsline{toc}{section}{My entry}
and this creates an entry within my table of contents (\tableofcontents). But when I click one of these entries, the jump takes me to the exact location in the document where this phantom section was defined. Instead I want jumps that takes me to the top of that page. Ideally, the page should be jumped to and fit to screen (zoom out, typically) when I click the entry.
How can I add entries to the table of contents that jumps to the top of the page I want an entry for?
\phantompagereftogether with\addcontentsline. And it will not jump to the page border of my document, instead it jumps to the top of my header on this page (refer to the line which 5 points to in this figure: https://en.wikibooks.org/wiki/LaTeX/Page_Layout#Page_dimensions). The example above will not jump at all. – telephone Jan 28 '17 at 11:46pagetop.\@the@H@page. Looks like we are closer, though :) – telephone Jan 28 '17 at 14:51I think you are capable of answering this question too: http://tex.stackexchange.com/questions/285201/hyperlink-to-top-of-the-page-with-given-hypertarget
– telephone Jan 28 '17 at 15:51