-% These are fancyhdr commands that makes the heading "fancy"
-% behave like "heading", only without the Hebrew bugs.
-
-\fancyhf{}
-\renewcommand{\headrulewidth}{0pt}
-\fancyhead[RO]{\rightmark \thepage { } | { }}
-\fancyhead[LE]{\thepage { } | { }\leftmark}
-\fancyfoot[C]{}
-
-
+% 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
+
+\usepackage{ifpdf} % part of the hyperref bundle
+\ifpdf % if pdflatex is used
+
+ % set fonts for nicer pdf view
+ \IfFileExists{lmodern.sty}{\usepackage{lmodern}}{}
+
+% XeTeX with Hebrew does not like this bookmark code
+% so it is in the conditional.
+% The pages of the TOC is 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} }
+
+\fi % end if pdflatex is used
+
+%disable hyphenation (breaking words at end of line)