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 % set fonts for nicer pdf view
\IfFileExists{lmodern.sty}{\usepackage{lmodern}}{} \IfFileExists{lmodern.sty}{\usepackage{lmodern}}{}
\fi % end if pdflatex is used % XeTeX with Hebrew does not like this bookmark code
% so it is in the conditional.
% the pages of the TOC is numbered roman % The pages of the TOC is numbered roman
% and a pdf-bookmark for the TOC is added % and a pdf-bookmark for the TOC is added
\pagenumbering{roman} \pagenumbering{roman}
\let\myTOC\tableofcontents \let\myTOC\tableofcontents
@ -31,6 +31,8 @@
\cleardoublepage \cleardoublepage
\pagenumbering{arabic} } \pagenumbering{arabic} }
\fi % end if pdflatex is used
%disable hyphenation (breaking words at end of line) %disable hyphenation (breaking words at end of line)
\usepackage[none]{hyphenat} \usepackage[none]{hyphenat}

View File

@ -19,9 +19,9 @@
% set fonts for nicer pdf view % set fonts for nicer pdf view
\IfFileExists{lmodern.sty}{\usepackage{lmodern}}{} \IfFileExists{lmodern.sty}{\usepackage{lmodern}}{}
\fi % end if pdflatex is used % XeTeX with Hebrew does not like this bookmark code
% so it is in the conditional.
% the pages of the TOC is numbered roman % The pages of the TOC is numbered roman
% and a pdf-bookmark for the TOC is added % and a pdf-bookmark for the TOC is added
\let\myTOC\tableofcontents \let\myTOC\tableofcontents
\renewcommand\tableofcontents{% \renewcommand\tableofcontents{%
@ -30,6 +30,8 @@
\myTOC \myTOC
\mainmatter } \mainmatter }
\fi % end if pdflatex is used
%disable hyphenation (breaking words at end of line) %disable hyphenation (breaking words at end of line)
\usepackage[none]{hyphenat} \usepackage[none]{hyphenat}