I use \phantomsection
in my document, because I have nonnumbered chapters in Table of Contents:
\chapter*{Chapter title}
\phantomsection
\addcontentsline{toc}{chapter}{Chapter title}
Command \phantomsection
doesn’t work correctly – jumps properly to page, but the center of the page, not on the top. View as a pdf is 'fit to horizontal' so I cannot see 'Chapter title' without scrolling through the page. Command \chapter{}
works fine.
Best Answer
The command
\phantomsection
sets the label at the current position. However the commandchapter
has previous and and skip below the title. Based on the last skip the position of\phantomsection
is specified. To provide the label at the top of the page use the following order:If you use a KOMA class you can also use the command
\addchap
which simplefy the the lines above to