The aim of the tutorial is to explain how to use LyX and not special LaTeX issues with \frontmatter, non-TeX fonts etc. Therefore the preamble should kept clean.
\save_transient_properties true
\origin /systemlyxdir/doc/
\textclass book
-\begin_preamble
-% DO NOT ALTER THIS PREAMBLE!!!
-%
-%This preamble is designed to ensure that the document prints
-% out as advertised. If you mess with this preamble,
-% parts of the document may not print out as expected. If you
-% have problems LaTeXing this file, please contact
-% the documentation team
-% email: lyx-docs@lists.lyx.org
-
-% 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 }
-\end_preamble
\use_default_options false
\begin_modules
logicalmkup
\save_transient_properties true
\origin /systemlyxdir/doc/de/
\textclass book
-\begin_preamble
-% DO NOT ALTER THIS PREAMBLE!!!
-%
-%This preamble is designed to ensure that the document prints
-% out as advertised. If you mess with this preamble,
-% parts of the document may not print out as expected. If you
-% have problems LaTeXing this file, please contact
-% the documentation team
-% email: lyx-docs@lists.lyx.org
-
-% Die Seiten des Inhaltsverzeichnisses werden römisch numeriert,
-% ein PDF-Lesezeichen für das Inhaltsverzeichnis wird hinzugefügt
-\let\myTOC\tableofcontents
-\renewcommand\tableofcontents{%
- \frontmatter
- \pdfbookmark[1]{\contentsname}{}
- \myTOC
- \mainmatter }
-\end_preamble
\use_default_options false
\maintain_unincluded_children false
\language ngerman
\save_transient_properties true
\origin /systemlyxdir/doc/es/
\textclass book
-\begin_preamble
-% DO NOT ALTER THIS PREAMBLE!!!
-%
-%This preamble is designed to ensure that the document prints
-% out as advertised. If you mess with this preamble,
-% parts of the document may not print out as expected. If you
-% have problems LaTeXing this file, please contact
-% the documentation team
-% email: lyx-docs@lists.lyx.org
-
-% Work around a bug in Babel-Spanish with \lim if non-TeX fonts are used:
-\@ifpackageloaded{fontspec}{\unaccentedoperators}{}
-
-% 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 }
-\end_preamble
\use_default_options false
\maintain_unincluded_children false
\language spanish
\save_transient_properties true
\origin /systemlyxdir/doc/fr/
\textclass book
-\begin_preamble
-% DO NOT ALTER THIS PREAMBLE!!!
-%
-%This preamble is designed to ensure that the document prints
-% out as advertised. If you mess with this preamble,
-% parts of the document may not print out as expected. If you
-% have problems LaTeXing this file, please contact
-% the documentation team
-% email: lyx-docs@lists.lyx.org
-
-% 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 }
-\end_preamble
\use_default_options false
\maintain_unincluded_children false
\language french
\save_transient_properties true
\origin /systemlyxdir/doc/ja/
\textclass jsbook
-\begin_preamble
-% DO NOT ALTER THIS PREAMBLE!!!
-%
-%This preamble is designed to ensure that the document prints
-% out as advertised. If you mess with this preamble,
-% parts of the document may not print out as expected. If you
-% have problems LaTeXing this file, please contact
-% the documentation team
-% email: lyx-docs@lists.lyx.org
-
- % 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} }
-\end_preamble
\use_default_options false
\maintain_unincluded_children false
\begin_local_layout