From 6f488a9ef2013a132e5ac89fe19e0ffeafc109b0 Mon Sep 17 00:00:00 2001 From: Scott Kostyshak Date: Mon, 28 Oct 2013 19:12:18 -0400 Subject: [PATCH] Hebrew docs: move bookmarks inside of pdflatex if This fixes XeTeX export of the Hebrew documents. --- lib/doc/he/Intro.lyx | 8 +++++--- lib/doc/he/Tutorial.lyx | 8 +++++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/lib/doc/he/Intro.lyx b/lib/doc/he/Intro.lyx index d0e883524b..ce3fcad762 100644 --- a/lib/doc/he/Intro.lyx +++ b/lib/doc/he/Intro.lyx @@ -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} diff --git a/lib/doc/he/Tutorial.lyx b/lib/doc/he/Tutorial.lyx index c71aaa1d88..b7c9a006d1 100644 --- a/lib/doc/he/Tutorial.lyx +++ b/lib/doc/he/Tutorial.lyx @@ -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}