]> git.lyx.org Git - lyx.git/commitdiff
Hebrew docs: move bookmarks inside of pdflatex if
authorScott Kostyshak <skostysh@lyx.org>
Mon, 28 Oct 2013 23:12:18 +0000 (19:12 -0400)
committerScott Kostyshak <skostysh@lyx.org>
Tue, 12 Nov 2013 03:01:48 +0000 (22:01 -0500)
This fixes XeTeX export of the Hebrew documents.

lib/doc/he/Intro.lyx
lib/doc/he/Tutorial.lyx

index d0e883524b52f8c830b5b427b3d69cb838cdc9d5..ce3fcad762b37d5731bd6ff88fc68f9271156d25 100644 (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}
 
index c71aaa1d8805f6f19a006758971d4708d8233aec..b7c9a006d17a4b8e1f0c88d0fa5939b2e5174c47 100644 (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}