% for correct jump positions whe clicking on a link to a float
\usepackage[figure]{hypcap}
- % the pages of the TOC are numbered roman
- % and a pdf-bookmark for the TOC is added
- \pagenumbering{roman}
- \let\myTOC\tableofcontents
- \renewcommand\tableofcontents{%
- \pdfbookmark[1]{Contents}{}
- \myTOC
- \cleardoublepage
- \pagenumbering{arabic} }
+% the pages of the TOC is numbered roman
+% and a pdf-bookmark for the TOC is added
+\let\myTOC\tableofcontents
+\renewcommand\tableofcontents{%
+ \frontmatter
+ \pdfbookmark[1]{\contentsname}{}
+ \myTOC
+ \mainmatter }
% redefine the \LyX macro for PDF bookmarks
\def\LyX{\texorpdfstring{%
\begin_layout Standard
The preferences dialog is described in detail in chapter
-\begin_inset Formula $\,$
+\begin_inset space \thinspace{}
\end_inset