From 130992c80053bef3107c54fb5e53b6afb3a17ab7 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Sun, 10 Nov 2019 22:04:01 +0000
Subject: hyperref (10nov19)

git-svn-id: svn://tug.org/texlive/trunk@52719 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/tex/latex/hyperref/hyperref.sty | 53 +++++++++++------------
 1 file changed, 25 insertions(+), 28 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/hyperref/hyperref.sty')

diff --git a/Master/texmf-dist/tex/latex/hyperref/hyperref.sty b/Master/texmf-dist/tex/latex/hyperref/hyperref.sty
index fe8d0462c76..d9e40da4579 100644
--- a/Master/texmf-dist/tex/latex/hyperref/hyperref.sty
+++ b/Master/texmf-dist/tex/latex/hyperref/hyperref.sty
@@ -33,7 +33,7 @@
 %%
 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
 \ProvidesPackage{hyperref}
-  [2019/09/28 v7.00a %
+  [2019/11/06 v7.00b %
   Hypertext links for LaTeX]
 \begingroup
   \@makeother\`%
@@ -102,11 +102,8 @@
   }%
 \endgroup
 \Hy@SetCatcodes
-\IfFileExists{hobsub-hyperref.sty}{%
-  \RequirePackage{hobsub-hyperref}[2011/01/30]%
-}{}
 \RequirePackage{ltxcmds}[2010/11/12]
-\RequirePackage{ifpdf}[2006/02/20]
+\RequirePackage{iftex}[2019/10/24]
 \RequirePackage{pdftexcmds}[2009/04/10]
 \@ifpackagelater{pdftexcmds}{2010/11/04}{}{%
   \ltx@IfUndefined{pdfdraftmode}{%
@@ -130,8 +127,6 @@
 \RequirePackage{kvsetkeys}[2007/09/29]
 \RequirePackage{kvdefinekeys}[2011/04/07]
 \RequirePackage{pdfescape}[2007/11/11]
-\RequirePackage{ifvtex}
-\RequirePackage{ifxetex}[2006/08/21]
 \RequirePackage{hycolor}
 \RequirePackage{letltxmacro}[2008/06/13]
 \RequirePackage{auxhook}[2009/12/14]
@@ -2924,7 +2919,7 @@
     \def\Hy@DviErrMsg{XeTeX is running}%
   \else
     \ifvtex
-      \ifvtexdvi
+      \ifnum\OpMode=\z@
         \Hy@DviModetrue
       \else
         \def\Hy@DviErrMsg{VTeX is running, but not in DVI mode}%
@@ -4646,24 +4641,26 @@
   \ifx\Hy@driver\@empty
   \else
     \def\Hy@temp{hvtexhtm}%
-    \ifvtexhtml
-      \ifx\Hy@driver\Hy@temp
+    \ifvtex
+      \ifnum\OpMode=10 %
+        \ifx\Hy@driver\Hy@temp
+        \else
+          \Hy@WarningNoLine{%
+            Wrong driver `\Hy@driver.def';\MessageBreak
+            VTeX is running in HTML mode.\MessageBreak
+            Forcing driver `\Hy@temp.def'%
+          }%
+          \let\Hy@driver\Hy@temp
+        \fi
       \else
-        \Hy@WarningNoLine{%
-          Wrong driver `\Hy@driver.def';\MessageBreak
-          VTeX is running in HTML mode.\MessageBreak
-          Forcing driver `\Hy@temp.def'%
-        }%
-        \let\Hy@driver\Hy@temp
-      \fi
-    \else
-      \ifx\Hy@driver\Hy@temp
-        \Hy@WarningNoLine{%
-          Wrong driver `\Hy@driver.def';\MessageBreak
-          VTeX is not running in HTML mode.\MessageBreak
-          Using default driver%
-        }%
-        \let\Hy@driver\@empty
+        \ifx\Hy@driver\Hy@temp
+          \Hy@WarningNoLine{%
+            Wrong driver `\Hy@driver.def';\MessageBreak
+            VTeX is not running in HTML mode.\MessageBreak
+            Using default driver%
+          }%
+          \let\Hy@driver\@empty
+        \fi
       \fi
     \fi
   \fi
@@ -4682,7 +4679,7 @@
         \ifxetex
           \def\Hy@driver{hxetex}%
         \else
-          \ifvtexhtml
+          \ifnum\OpMode=10 %
             \def\Hy@driver{hvtexhtm}%
             \def\MaybeStopEarly{%
               \Hy@Message{Stopped early}%
@@ -4693,10 +4690,10 @@
               \endinput
             }%
           \else
-            \ifvtexpdf
+            \ifnum\OpMode=\@ne
               \def\Hy@driver{hvtex}%
             \else
-              \ifvtexps
+              \ifnum\OpMode=\tw@
                 \def\Hy@driver{hvtex}%
               \else
                 \ifx\HyOpt@DriverFallback\ltx@empty
-- 
cgit v1.2.3

