[latex3-commits] [git/LaTeX3-latex3-hyperref] master: guard OpMode with \ifvtex (6e16e5c)

David Carlisle d.p.carlisle at gmail.com
Sat Nov 9 21:43:47 CET 2019


Repository : https://github.com/latex3/hyperref
On branch  : master
Link       : https://github.com/latex3/hyperref/commit/6e16e5c75f3668d4aaf3e276f0cd0de13475ebb9

>---------------------------------------------------------------

commit 6e16e5c75f3668d4aaf3e276f0cd0de13475ebb9
Author: David Carlisle <d.p.carlisle at gmail.com>
Date:   Sat Nov 9 20:43:47 2019 +0000

    guard OpMode with \ifvtex


>---------------------------------------------------------------

6e16e5c75f3668d4aaf3e276f0cd0de13475ebb9
 hyperref.dtx | 36 +++++++++++++++++++-----------------
 1 file changed, 19 insertions(+), 17 deletions(-)

diff --git a/hyperref.dtx b/hyperref.dtx
index 769e98c..5fa0f2e 100644
--- a/hyperref.dtx
+++ b/hyperref.dtx
@@ -7415,24 +7415,26 @@
   \ifx\Hy at driver\@empty
   \else
     \def\Hy at temp{hvtexhtm}%
-    \ifnum\OpMode=10 %
-      \ifx\Hy at driver\Hy at temp
+    \ifvtex
+      \ifnum\OpMode=10 %
+        \ifx\Hy at driver\Hy at temp
+        \else
+          \Hy at WarningNoLine{%
+            Wrong driver `\Hy at driver.def';\MessageBreak
+            VTeX is running in HTML mode.\MessageBreak
+            Forcing driver `\Hy at temp.def'%
+          }%
+          \let\Hy at driver\Hy at temp
+        \fi
       \else
-        \Hy at WarningNoLine{%
-          Wrong driver `\Hy at driver.def';\MessageBreak
-          VTeX is running in HTML mode.\MessageBreak
-          Forcing driver `\Hy at temp.def'%
-        }%
-        \let\Hy at driver\Hy at temp
-      \fi
-    \else
-      \ifx\Hy at driver\Hy at temp
-        \Hy at WarningNoLine{%
-          Wrong driver `\Hy at driver.def';\MessageBreak
-          VTeX is not running in HTML mode.\MessageBreak
-          Using default driver%
-        }%
-        \let\Hy at driver\@empty
+        \ifx\Hy at driver\Hy at temp
+          \Hy at WarningNoLine{%
+            Wrong driver `\Hy at driver.def';\MessageBreak
+            VTeX is not running in HTML mode.\MessageBreak
+            Using default driver%
+          }%
+          \let\Hy at driver\@empty
+        \fi
       \fi
     \fi
   \fi





More information about the latex3-commits mailing list