[LyX/master] Fix XeTeX export of ja/Formula-numbering.lyx

Scott Kostyshak <[email protected]>
Newsgroups gmane.editors.lyx.cvs
Message-ID <[email protected]>
commit c128941585a39f0dda32e40be11d4d7512f95a26
Author: Scott Kostyshak <[email protected]>
Date:   Mon Mar 16 11:58:46 2026 +0100

    Fix XeTeX export of ja/Formula-numbering.lyx
    
    Using the "hypertex" option gave the following error:
    
      ! Package hyperref Error: Wrong DVI mode driver option `hypertex',
    
    Removing that option fixes compilation.
---
 development/autotests/invertedTests |  2 --
 lib/doc/ja/Formula-numbering.lyx    | 11 ++++++++++-
 2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/development/autotests/invertedTests b/development/autotests/invertedTests
index 34616ce545..41fce1359a 100644
--- a/development/autotests/invertedTests
+++ b/development/autotests/invertedTests
@@ -75,8 +75,6 @@ export/export/latex/unicodesymbols/031-thai_th_(euc-|gbk|jis|utf8-cjk).*
 # unicode-math or mathspec, but I am not familiar with those packages,
 # and my attempts only made things worse.
 export/doc/ja/(Math).*_systemF
-#
-export/doc/ja/Formula-numbering_pdf4_systemF
 
 # Test for command \pdfsave fails:
 # ! Package xypdf Error: pdfTeX version 1.40.0 or higher is needed for the xypdf
diff --git a/lib/doc/ja/Formula-numbering.lyx b/lib/doc/ja/Formula-numbering.lyx
index 5c2db34f74..6cbce2b155 100644
--- a/lib/doc/ja/Formula-numbering.lyx
+++ b/lib/doc/ja/Formula-numbering.lyx
@@ -19,7 +19,14 @@
 
 \else % if DVI
 
-\usepackage[colorlinks=true, hypertex]{hyperref}
+% using the option "hypertex" for some reason
+% gives the following error only for the Japanese
+% version with pdf4 systemF. The error is:
+%
+% ! Package hyperref Error: Wrong DVI mode driver option `hypertex',
+%\usepackage[colorlinks=true, hypertex]{hyperref}
+% so instead we remove the hypertex option:
+\usepackage[colorlinks=true]{hyperref}
 
 \fi
 
@@ -71,6 +78,8 @@
 \output_sync 0
 \bibtex_command default
 \index_command default
+\float_placement class
+\float_alignment class
 \paperfontsize 12
 \spacing single
 \use_hyperref false
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.