]> git.lyx.org Git - lyx.git/blobdiff - lib/doc/UserGuide.lyx
documentation: some preamble fixes, part 2/3
[lyx.git] / lib / doc / UserGuide.lyx
index 11c418b49756dba276b3eea5be8a67eae8b3333f..738d69d79fa528012693b0d8478375b021c26e7f 100644 (file)
 % 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]{\contentsname}{}
-   \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{%