Hebrew docs: move bookmarks inside of pdflatex if

This fixes XeTeX export of the Hebrew documents.
This commit is contained in:
Scott Kostyshak 2013-10-28 19:12:18 -04:00
parent 828db4287d
commit 6f488a9ef2
2 changed files with 10 additions and 6 deletions

View File

@ -19,9 +19,9 @@
% set fonts for nicer pdf view
\IfFileExists{lmodern.sty}{\usepackage{lmodern}}{}
\fi % end if pdflatex is used
% the pages of the TOC is numbered roman
% 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
@ -31,6 +31,8 @@
\cleardoublepage
\pagenumbering{arabic} }
\fi % end if pdflatex is used
%disable hyphenation (breaking words at end of line)
\usepackage[none]{hyphenat}

View File

@ -19,9 +19,9 @@
% set fonts for nicer pdf view
\IfFileExists{lmodern.sty}{\usepackage{lmodern}}{}
\fi % end if pdflatex is used
% the pages of the TOC is numbered roman
% 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
\let\myTOC\tableofcontents
\renewcommand\tableofcontents{%
@ -30,6 +30,8 @@
\myTOC
\mainmatter }
\fi % end if pdflatex is used
%disable hyphenation (breaking words at end of line)
\usepackage[none]{hyphenat}