In the very least, please send an example of the whole
\addtocontentsline command. Even better, strip down the document and
send a complete minimal example of what might be the problem. For more
information, see the UK TeX FAQ entry
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=minxampl
This problem may also occur if there was some mistake in the compiled
version of your LaTeX code which was corrected at a later stage.
The .aux (and .toc) file contains information about the compilation
(and toc entries)...so delete these and re-compile. If that doesn't
fix the problem, refer to my first paragraph.
Werner
\cleardoublepage
\selectlanguage{english}
\typeout{List of Abbreviations}
\include{filename}
\addcontentsline{toc}{chapter}{List of Abbreviations}
Hyperref works and it goes at the right page from the TOC, however the
title is too high on the page and therefore it is not seen directly.
Any idea to do it better
I understand from this that the title (probably the 'List of
Abbreviations' in filename) _is_ displayed, but the hyperref link
jumps to just below it, rather than on it, correct?
If this is the case, how do you specify the title of the 'List of
Abbreviations'? Hopefully you're using \chapter*{List of
Abbreviations}. If this is the case, just add the following in
filename:
% \cleardoublepage
\phantomsection
\chapter*{List of Abbreviations}
\addcontentsline{toc}{chapter}{List of Abbreviations}
and remove the \addcontentsline{...}{...}{...} from your main
document. The hyperref \phantomsection command is similar to
\hypertarget and sets the target/reference for the bookmarks to the
beginning of \chapter*{...}. You may have to actually use the
\cleardoublepage (that is, remove the comment in the above code) to
get the \phantomsection to work correctly. I haven't tested the code
to know.
Werner