summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/hyperref
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/hyperref')
-rw-r--r--Master/texmf-dist/tex/latex/hyperref/hdvipdfm.def8
-rw-r--r--Master/texmf-dist/tex/latex/hyperref/hdvips.def2
-rw-r--r--Master/texmf-dist/tex/latex/hyperref/hdvipson.def2
-rw-r--r--Master/texmf-dist/tex/latex/hyperref/hdviwind.def2
-rw-r--r--Master/texmf-dist/tex/latex/hyperref/hpdftex.def8
-rw-r--r--Master/texmf-dist/tex/latex/hyperref/htex4ht.cfg2
-rw-r--r--Master/texmf-dist/tex/latex/hyperref/htex4ht.def6
-rw-r--r--Master/texmf-dist/tex/latex/hyperref/htexture.def2
-rw-r--r--Master/texmf-dist/tex/latex/hyperref/hvtex.def2
-rw-r--r--Master/texmf-dist/tex/latex/hyperref/hvtexhtm.def18
-rw-r--r--Master/texmf-dist/tex/latex/hyperref/hvtexmrk.def2
-rw-r--r--Master/texmf-dist/tex/latex/hyperref/hxetex.def8
-rw-r--r--Master/texmf-dist/tex/latex/hyperref/hyperref.sty346
-rw-r--r--Master/texmf-dist/tex/latex/hyperref/hypertex.def18
-rw-r--r--Master/texmf-dist/tex/latex/hyperref/nohyperref.sty2
-rw-r--r--Master/texmf-dist/tex/latex/hyperref/pd1enc.def2
-rw-r--r--Master/texmf-dist/tex/latex/hyperref/pdfmark.def8
-rw-r--r--Master/texmf-dist/tex/latex/hyperref/puarenc.def2
-rw-r--r--Master/texmf-dist/tex/latex/hyperref/puenc.def2
-rw-r--r--Master/texmf-dist/tex/latex/hyperref/puvnenc.def2
20 files changed, 287 insertions, 157 deletions
diff --git a/Master/texmf-dist/tex/latex/hyperref/hdvipdfm.def b/Master/texmf-dist/tex/latex/hyperref/hdvipdfm.def
index f45ea7ed2c6..79f073870a3 100644
--- a/Master/texmf-dist/tex/latex/hyperref/hdvipdfm.def
+++ b/Master/texmf-dist/tex/latex/hyperref/hdvipdfm.def
@@ -29,7 +29,7 @@
%% given in the file `manifest.txt'.
%%
\ProvidesFile{hdvipdfm.def}
- [2010/09/11 v6.81m
+ [2010/09/13 v6.81n
Hyperref driver for dvipdfm]
\def\Hy@PutCatalog#1{\@pdfm@mark{docview << #1 >>}}
\ifHy@pagelabels
@@ -583,7 +583,7 @@
\Hy@DisableOption{setpagesize}%
}
\def\@Gauge[#1]#2#3#4{% parameters, label, minimum, maximum
- \typeout{Sorry, dvipdfm/XeTeX does not support FORM gauges}%
+ \Hy@Message{Sorry, dvipdfm/XeTeX does not support FORM gauges}%
}
\def\@Form[#1]{%
\@ifundefined{textcolor}{\let\textcolor\@gobble}{}%
@@ -788,7 +788,7 @@
}%
\PDFForm@Name
\ifHy@pdfa
- \PackageError{hyperref}{%
+ \Hy@Error{%
PDF/A: Push button with JavaScript is prohibited%
}\@ehc
\LayoutPushButtonField{%
@@ -846,7 +846,7 @@
}%
\leavevmode
\ifHy@pdfa
- \PackageError{hyperref}{%
+ \Hy@Error{%
PDF/A: Reset action is prohibited%
}\@ehc
\MakeButtonField{#2}%
diff --git a/Master/texmf-dist/tex/latex/hyperref/hdvips.def b/Master/texmf-dist/tex/latex/hyperref/hdvips.def
index 6cda6f66845..a216e0c7860 100644
--- a/Master/texmf-dist/tex/latex/hyperref/hdvips.def
+++ b/Master/texmf-dist/tex/latex/hyperref/hdvips.def
@@ -29,7 +29,7 @@
%% given in the file `manifest.txt'.
%%
\ProvidesFile{hdvips.def}
- [2010/09/11 v6.81m
+ [2010/09/13 v6.81n
Hyperref driver for dvips]
\providecommand*{\XR@ext}{pdf}
\def\Hy@raisedlink{}
diff --git a/Master/texmf-dist/tex/latex/hyperref/hdvipson.def b/Master/texmf-dist/tex/latex/hyperref/hdvipson.def
index a27928fe904..408cb4b8345 100644
--- a/Master/texmf-dist/tex/latex/hyperref/hdvipson.def
+++ b/Master/texmf-dist/tex/latex/hyperref/hdvipson.def
@@ -29,7 +29,7 @@
%% given in the file `manifest.txt'.
%%
\ProvidesFile{hdvipson.def}
- [2010/09/11 v6.81m
+ [2010/09/13 v6.81n
Hyperref driver for dvipsone]
\providecommand*{\XR@ext}{pdf}
\def\Hy@raisedlink{}
diff --git a/Master/texmf-dist/tex/latex/hyperref/hdviwind.def b/Master/texmf-dist/tex/latex/hyperref/hdviwind.def
index 30d960f878f..ecf7e8356fe 100644
--- a/Master/texmf-dist/tex/latex/hyperref/hdviwind.def
+++ b/Master/texmf-dist/tex/latex/hyperref/hdviwind.def
@@ -29,7 +29,7 @@
%% given in the file `manifest.txt'.
%%
\ProvidesFile{hdviwind.def}
- [2010/09/11 v6.81m
+ [2010/09/13 v6.81n
Hyperref driver for dviwindo]
\begingroup
\@ifundefined{headerps@out}{}{%
diff --git a/Master/texmf-dist/tex/latex/hyperref/hpdftex.def b/Master/texmf-dist/tex/latex/hyperref/hpdftex.def
index a6a93bab7df..5f4499bfb92 100644
--- a/Master/texmf-dist/tex/latex/hyperref/hpdftex.def
+++ b/Master/texmf-dist/tex/latex/hyperref/hpdftex.def
@@ -29,7 +29,7 @@
%% given in the file `manifest.txt'.
%%
\ProvidesFile{hpdftex.def}
- [2010/09/11 v6.81m
+ [2010/09/13 v6.81n
Hyperref driver for pdfTeX]
\let\Hy@PutCatalog\pdfcatalog
\ifHy@pagelabels
@@ -780,7 +780,7 @@
}
\AtBeginShipout{\Hy@FixNotFirstPage}
\def\@Gauge[#1]#2#3#4{% parameters, label, minimum, maximum
- \typeout{Sorry, pdftex does not support FORM gauges}%
+ \Hy@Message{Sorry, pdftex does not support FORM gauges}%
}
\def\MakeFieldObject#1#2{\sbox0{#1}%
\immediate\pdfxform0 %
@@ -1021,7 +1021,7 @@
}%
\PDFForm@Name
\ifHy@pdfa
- \PackageError{hyperref}{%
+ \Hy@Error{%
PDF/A: Push button with JavaScript is prohibited%
}\@ehc
\LayoutPushButtonField{%
@@ -1073,7 +1073,7 @@
}%
\leavevmode
\ifHy@pdfa
- \PackageError{hyperref}{%
+ \Hy@Error{%
PDF/A: Reset action is prohibited%
}\@ehc
\MakeButtonField{#2}%
diff --git a/Master/texmf-dist/tex/latex/hyperref/htex4ht.cfg b/Master/texmf-dist/tex/latex/hyperref/htex4ht.cfg
index 580ff7cee7d..03fe4ce5e60 100644
--- a/Master/texmf-dist/tex/latex/hyperref/htex4ht.cfg
+++ b/Master/texmf-dist/tex/latex/hyperref/htex4ht.cfg
@@ -29,7 +29,7 @@
%% given in the file `manifest.txt'.
%%
\ProvidesFile{htex4ht.cfg}
- [2010/09/11 v6.81m
+ [2010/09/13 v6.81n
Hyperref configuration file for TeX4ht]
\IfFileExists{\jobname.cfg}{\endinput}{}
\Preamble{html}
diff --git a/Master/texmf-dist/tex/latex/hyperref/htex4ht.def b/Master/texmf-dist/tex/latex/hyperref/htex4ht.def
index dd6a0058c35..281f6d2e839 100644
--- a/Master/texmf-dist/tex/latex/hyperref/htex4ht.def
+++ b/Master/texmf-dist/tex/latex/hyperref/htex4ht.def
@@ -29,12 +29,12 @@
%% given in the file `manifest.txt'.
%%
\ProvidesFile{htex4ht.def}
- [2010/09/11 v6.81m
+ [2010/09/13 v6.81n
Hyperref driver for TeX4ht]
\providecommand*{\XR@ext}{html}
\def\Hy@raisedlink{}
\@ifpackageloaded{tex4ht}{%
- \typeout{hyperref tex4ht: tex4ht already loaded}%
+ \Hy@InfoNoLine{tex4ht is already loaded}%
}{%
\RequirePackage[htex4ht]{tex4ht}%
}
@@ -167,7 +167,7 @@
}
\def\@endForm{\HCode{</form>}}
\def\@Gauge[#1]#2#3#4{% parameters, label, minimum, maximum
- \typeout{Sorry, TeX4ht does not support gauges}%
+ \Hy@Message{Sorry, TeX4ht does not support gauges}%
}
\def\@TextField[#1]#2{% parameters, label
\let\Hy@reserved@a\@empty
diff --git a/Master/texmf-dist/tex/latex/hyperref/htexture.def b/Master/texmf-dist/tex/latex/hyperref/htexture.def
index 396cec13baa..c8e2659fc47 100644
--- a/Master/texmf-dist/tex/latex/hyperref/htexture.def
+++ b/Master/texmf-dist/tex/latex/hyperref/htexture.def
@@ -29,7 +29,7 @@
%% given in the file `manifest.txt'.
%%
\ProvidesFile{htexture.def}
- [2010/09/11 v6.81m
+ [2010/09/13 v6.81n
Hyperref driver for Textures]
\providecommand*{\XR@ext}{pdf}
\begingroup
diff --git a/Master/texmf-dist/tex/latex/hyperref/hvtex.def b/Master/texmf-dist/tex/latex/hyperref/hvtex.def
index a436643199e..cb975bbc37e 100644
--- a/Master/texmf-dist/tex/latex/hyperref/hvtex.def
+++ b/Master/texmf-dist/tex/latex/hyperref/hvtex.def
@@ -29,7 +29,7 @@
%% given in the file `manifest.txt'.
%%
\ProvidesFile{hvtex.def}
- [2010/09/11 v6.81m
+ [2010/09/13 v6.81n
Hyperref driver for VTeX in PDF/PS mode]
\providecommand*{\XR@ext}{pdf}
\edef\Hy@VTeXversion{%
diff --git a/Master/texmf-dist/tex/latex/hyperref/hvtexhtm.def b/Master/texmf-dist/tex/latex/hyperref/hvtexhtm.def
index b21b4f9bdcd..eb4e612cab3 100644
--- a/Master/texmf-dist/tex/latex/hyperref/hvtexhtm.def
+++ b/Master/texmf-dist/tex/latex/hyperref/hvtexhtm.def
@@ -29,7 +29,7 @@
%% given in the file `manifest.txt'.
%%
\ProvidesFile{hvtexhtml.def}
- [2010/09/11 v6.81m
+ [2010/09/13 v6.81n
Hyperref driver for VTeX in HTML mode]
\providecommand*{\XR@ext}{htm}
\RequirePackage{vtexhtml}
@@ -119,29 +119,29 @@
\Hy@RestoreLastskip
}
\def\@Form[#1]{%
- \typeout{Sorry, TeXpider does not yet support FORMs}%
+ \Hy@Message{Sorry, TeXpider does not yet support FORMs}%
}
\def\@endForm{}
\def\@Gauge[#1]#2#3#4{% parameters, label, minimum, maximum
- \typeout{Sorry, TeXpider does not yet support FORM gauges}%
+ \Hy@Message{Sorry, TeXpider does not yet support FORM gauges}%
}
\def\@TextField[#1]#2{% parameters, label
- \typeout{Sorry, TeXpider does not yet support FORM text fields}%
+ \Hy@Message{Sorry, TeXpider does not yet support FORM text fields}%
}
\def\@CheckBox[#1]#2{% parameters, label
- \typeout{Sorry, TeXpider does not yet support FORM checkboxes}%
+ \Hy@Message{Sorry, TeXpider does not yet support FORM checkboxes}%
}
\def\@ChoiceMenu[#1]#2#3{% parameters, label, choices
- \typeout{Sorry, TeXpider does not yet support FORM choice menus}%
+ \Hy@Message{Sorry, TeXpider does not yet support FORM choice menus}%
}
\def\@PushButton[#1]#2{% parameters, label
- \typeout{Sorry, TeXpider does not yet support FORM pushbuttons}%
+ \Hy@Message{Sorry, TeXpider does not yet support FORM pushbuttons}%
}
\def\@Reset[#1]#2{%
- \typeout{Sorry, TeXpider does not yet support FORMs}%
+ \Hy@Message{Sorry, TeXpider does not yet support FORMs}%
}
\def\@Submit[#1]#2{%
- \typeout{Sorry, TeXpider does not yet support FORMs}%
+ \Hy@Message{Sorry, TeXpider does not yet support FORMs}%
}
\endinput
%%
diff --git a/Master/texmf-dist/tex/latex/hyperref/hvtexmrk.def b/Master/texmf-dist/tex/latex/hyperref/hvtexmrk.def
index f52225cfd92..54f77ca6571 100644
--- a/Master/texmf-dist/tex/latex/hyperref/hvtexmrk.def
+++ b/Master/texmf-dist/tex/latex/hyperref/hvtexmrk.def
@@ -29,7 +29,7 @@
%% given in the file `manifest.txt'.
%%
\ProvidesFile{hvtexmrk.def}
- [2010/09/11 v6.81m
+ [2010/09/13 v6.81n
Hyperref driver for VTeX in PDF/PS mode (pdfmark specials)]
\providecommand*{\XR@ext}{pdf}
\def\Hy@raisedlink{}
diff --git a/Master/texmf-dist/tex/latex/hyperref/hxetex.def b/Master/texmf-dist/tex/latex/hyperref/hxetex.def
index a02683aca73..2a68daa8872 100644
--- a/Master/texmf-dist/tex/latex/hyperref/hxetex.def
+++ b/Master/texmf-dist/tex/latex/hyperref/hxetex.def
@@ -29,7 +29,7 @@
%% given in the file `manifest.txt'.
%%
\ProvidesFile{hxetex.def}
- [2010/09/11 v6.81m
+ [2010/09/13 v6.81n
Hyperref driver for XeTeX]
\HyPsd@LoadUnicode
\Hy@unicodetrue
@@ -645,7 +645,7 @@
\fi
}
\def\@Gauge[#1]#2#3#4{% parameters, label, minimum, maximum
- \typeout{Sorry, dvipdfm/XeTeX does not support FORM gauges}%
+ \Hy@Message{Sorry, dvipdfm/XeTeX does not support FORM gauges}%
}
\def\@Form[#1]{%
\@ifundefined{textcolor}{\let\textcolor\@gobble}{}%
@@ -850,7 +850,7 @@
}%
\PDFForm@Name
\ifHy@pdfa
- \PackageError{hyperref}{%
+ \Hy@Error{%
PDF/A: Push button with JavaScript is prohibited%
}\@ehc
\LayoutPushButtonField{%
@@ -908,7 +908,7 @@
}%
\leavevmode
\ifHy@pdfa
- \PackageError{hyperref}{%
+ \Hy@Error{%
PDF/A: Reset action is prohibited%
}\@ehc
\MakeButtonField{#2}%
diff --git a/Master/texmf-dist/tex/latex/hyperref/hyperref.sty b/Master/texmf-dist/tex/latex/hyperref/hyperref.sty
index d7c55490684..ee45a5ee31d 100644
--- a/Master/texmf-dist/tex/latex/hyperref/hyperref.sty
+++ b/Master/texmf-dist/tex/latex/hyperref/hyperref.sty
@@ -30,7 +30,7 @@
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{hyperref}
- [2010/09/11 v6.81m
+ [2010/09/13 v6.81n
Hypertext links for LaTeX]
\begingroup
\@makeother\`%
@@ -100,6 +100,7 @@
\endgroup
\Hy@SetCatcodes
\RequirePackage{ltxcmds}[2010/03/09]
+\RequirePackage{infwarerr}[2010/04/08]
\RequirePackage{keyval}[1997/11/10]
\RequirePackage{kvsetkeys}[2007/09/29]
\RequirePackage{pdfescape}[2007/11/11]
@@ -108,9 +109,18 @@
\RequirePackage{ifxetex}[2006/08/21]
\RequirePackage{hycolor}
\RequirePackage{letltxmacro}[2008/06/13]
-\def\Hy@Warning#1{\PackageWarning{hyperref}{#1}}
-\def\Hy@WarningNoLine#1{\PackageWarningNoLine{hyperref}{#1}}
-\def\Hy@Info#1{\PackageInfo{hyperref}{#1}}
+\def\Hy@Error#1{\@PackageError{hyperref}}
+\def\Hy@Warning#1{\@PackageWarning{hyperref}{#1}}
+\def\Hy@WarningNoLine#1{\@PackageWarningNoLine{hyperref}{#1}}
+\def\Hy@Info#1{\@PackageInfo{hyperref}{#1}}
+\def\Hy@InfoNoLine{\@PackageInfoNoLine{hyperref}}
+\def\Hy@Message#1{%
+ \GenericWarning{%
+ (hyperref)\@spaces\@spaces\@spaces\@spaces
+ }{%
+ Package hyperref Message: #1\ltx@gobble
+ }%
+}
\ltx@IfUndefined{pdfmatch}{%
\def\Hy@Match#1#2#3#4{}%
}{%
@@ -169,6 +179,7 @@
\let\Hy@AtBeginDocumentHook\@undefined
}%
}
+\RequirePackage{kvoptions}[2009/07/21]
\newif\ifHy@typexml
\newif\ifHy@activeanchor
\newif\ifHy@backref
@@ -2276,6 +2287,10 @@
\fi
\fi
}%
+\SetupKeyvalOptions{%
+ family=Hyp,%
+ prefix=HyOpt%
+}
\def\Hy@boolkey{\@dblarg\Hy@@boolkey}
\def\Hy@@boolkey[#1]#2#3{%
\edef\Hy@tempa{#3}%
@@ -2500,7 +2515,7 @@
\ifx\HyPsd@LoadUnicode\relax
\else
\def\HyPsd@LoadUnicode{%
- \PackageError{hyperref}{%
+ \Hy@Error{%
Unicode support for bookmarks is not available.\MessageBreak
Activate unicode support by using one of the options\MessageBreak
`unicode', `pdfencoding=unicode', `pdfencoding=auto'\MessageBreak
@@ -2590,14 +2605,43 @@
\@namedef{Hy@pdfversion@1.8}{8}%
\@namedef{Hy@pdfversion@1.9}{9}%
\def\Hy@pdfversion{2}
-\define@key{Hyp}{hyperref}[true]{}
-\define@key{Hyp}{tex4ht}[true]{%
+\newif\ifHy@DviMode
+\let\Hy@DviErrMsg\ltx@empty
+\ifpdf
+ \def\Hy@DviErrMsg{pdfTeX or LuaTeX is running in PDF mode}%
+\else
+ \ifxetex
+ \def\Hy@DviErrMsg{XeTeX is running}%
+ \else
+ \ifvtex
+ \ifvtexdvi
+ \Hy@DviModetrue
+ \else
+ \def\Hy@DviErrMsg{VTeX is running, but not in DVI mode}%
+ \fi
+ \else
+ \Hy@DviModetrue
+ \fi
+ \fi
+\fi
+\def\HyOpt@CheckDvi#1{%
+ \ifHy@DviMode
+ \expandafter\ltx@firstofone
+ \else
+ \Hy@Error{%
+ Wrong DVI mode driver option `#1',\MessageBreak
+ because \Hy@DviErrMsg
+ }\@ehc
+ \expandafter\ltx@gobble
+ \fi
+}
+\DeclareVoidOption{tex4ht}{%
\Hy@texhttrue
\kvsetkeys{Hyp}{colorlinks=true}%
- \def\BeforeTeXIVht{\usepackage{color}}%
+ \def\BeforeTeXIVht{\RequirePackage{color}}%
\def\Hy@driver{htex4ht}%
\def\MaybeStopEarly{%
- \typeout{Hyperref stopped early}%
+ \Hy@Message{Stopped early}%
\Hy@AtBeginDocument{%
\PDF@FinishDoc
\gdef\PDF@FinishDoc{}%
@@ -2605,17 +2649,30 @@
\endinput
}%
}
-\define@key{Hyp}{pdftex}[true]{%
- \def\Hy@driver{hpdftex}%
+\DeclareVoidOption{pdftex}{%
+ \ifpdf
+ \def\Hy@driver{hpdftex}%
+ \else
+ \Hy@Error{%
+ Wrong driver option `pdftex',\MessageBreak
+ because pdfTeX in PDF mode is not detected%
+ }\@ehc
+ \fi
}
-\define@key{Hyp}{nativepdf}[true]{%
- \def\Hy@driver{hdvips}%
+\DeclareVoidOption{nativepdf}{%
+ \HyOpt@CheckDvi{nativepdf}{%
+ \def\Hy@driver{hdvips}%
+ }%
}
-\define@key{Hyp}{dvipdfm}[true]{%
- \def\Hy@driver{hdvipdfm}%
+\DeclareVoidOption{dvipdfm}{%
+ \HyOpt@CheckDvi{dvipdfm}{%
+ \def\Hy@driver{hdvipdfm}%
+ }%
}
-\define@key{Hyp}{dvipdfmx}[true]{%
- \def\Hy@driver{hdvipdfm}%
+\DeclareVoidOption{dvipdfmx}{%
+ \HyOpt@CheckDvi{dvipdfmx}{%
+ \def\Hy@driver{hdvipdfm}%
+ }%
}
\define@key{Hyp}{dvipdfmx-outline-open}[true]{%
\expandafter\ifx\csname if#1\expandafter\endcsname
@@ -2625,33 +2682,41 @@
\chardef\SpecialDvipdfmxOutlineOpen\z@
\fi
}
-\define@key{Hyp}{xetex}[true]{%
- \def\Hy@driver{hxetex}%
+\DeclareVoidOption{xetex}{%
+ \ifxetex
+ \def\Hy@driver{hxetex}%
+ \else
+ \Hy@Error{%
+ Wrong driver option `xetex',\MessageBreak
+ because XeTeX is not detected%
+ }\@ehc
+ \fi
}
-\define@key{Hyp}{pdfmark}[true]{%
- \def\Hy@driver{hdvips}%
+\DeclareVoidOption{pdfmark}{%
+ \HyOpt@CheckDvi{pdfmark}{%
+ \def\Hy@driver{hdvips}%
+ }%
}
-\define@key{Hyp}{dvips}[true]{%
- \def\Hy@driver{hdvips}%
+\DeclareVoidOption{dvips}{%
+ \HyOpt@CheckDvi{dvips}{%
+ \def\Hy@driver{hdvips}%
+ }%
}
-\define@key{Hyp}{hypertex}[true]{%
- \def\Hy@driver{hypertex}%
+\DeclareVoidOption{hypertex}{%
+ \HyOpt@CheckDvi{hypertex}{%
+ \def\Hy@driver{hypertex}%
+ }%
}
\let\Hy@MaybeStopNow\relax
-\define@key{Hyp}{vtex}[true]{%
- \begingroup\expandafter\expandafter\expandafter\endgroup
- \expandafter\ifx\csname OpMode\endcsname\relax
- \@latex@error{Non-VTeX processor}{}%
- \global\let\Hy@MaybeStopNow\endinput
- \endinput
- \else
+\DeclareVoidOption{vtex}{%
+ \ifvtex
\ifnum 0\ifnum\OpMode<1 1\fi \ifnum\OpMode>3 1\fi =0 %
\def\Hy@driver{hvtex}%
\else
\ifnum\OpMode=10\relax
\def\Hy@driver{hvtexhtm}%
\def\MaybeStopEarly{%
- \typeout{Hyperref stopped early}%
+ \Hy@Message{Stopped early}%
\Hy@AtBeginDocument{%
\PDF@FinishDoc
\gdef\PDF@FinishDoc{}%
@@ -2659,52 +2724,74 @@
\endinput
}%
\else
- \@latex@error{Mode (\the\OpMode) has no hyperref driver}{}%
- \global\let\Hy@MaybeStopNow\endinput
- \endinput
+ \Hy@Error{%
+ Wrong driver option `vtex',\MessageBreak
+ because of wrong OpMode (\the\OpMode)%
+ }\@ehc
\fi
\fi
+ \else
+ \Hy@Error{%
+ Wrong driver option `vtex',\MessageBreak
+ because VTeX is not running%
+ }\@ehc
\fi
}
-\define@key{Hyp}{vtexpdfmark}[true]{%
- \begingroup\expandafter\expandafter\expandafter\endgroup
- \expandafter\ifx\csname OpMode\endcsname\relax
- \@latex@error{Non-VTeX processor}{}%
- \let\Hy@MaybeStopNow\endinput
- \endinput
- \else
+\DeclareVoidOption{vtexpdfmark}{%
+ \ifvtex
\ifnum 0\ifnum\OpMode<1 1\fi \ifnum\OpMode>3 1\fi =0 %
\def\Hy@driver{hvtexmrk}%
\else
- \@latex@error{Mode (\the\OpMode) has no hyperref driver}{}%
- \let\Hy@MaybeStopNow\endinput
- \endinput
+ \Hy@Error{%
+ Wrong driver option `vtexpdfmark',\MessageBreak
+ because of wrong OpMode (\the\OpMode)%
+ }\@ehc
\fi
- \fi
-}
-\define@key{Hyp}{dviwindo}[true]{%
- \def\Hy@driver{hdviwind}%
- \kvsetkeys{Hyp}{colorlinks}%
- \ifpdf
\else
- \ifxetex
- \else
- \PassOptionsToPackage{dviwindo}{color}%
- \fi
+ \Hy@Error{%
+ Wrong driver option `vtexpdfmark,\MessageBreak
+ because VTeX is not running%
+ }\@ehc
\fi
}
-\define@key{Hyp}{dvipsone}[true]{%
- \def\Hy@driver{hdvipson}%
+\DeclareVoidOption{dviwindo}{%
+ \HyOpt@CheckDvi{dviwindo}{%
+ \def\Hy@driver{hdviwind}%
+ \kvsetkeys{Hyp}{colorlinks}%
+ \PassOptionsToPackage{dviwindo}{color}%
+ }%
+}
+\DeclareVoidOption{dvipsone}{%
+ \HyOpt@CheckDvi{dvipsone}{%
+ \def\Hy@driver{hdvipson}%
+ }%
}
-\define@key{Hyp}{textures}[true]{%
- \def\Hy@driver{htexture}%
+\DeclareVoidOption{textures}{%
+ \HyOpt@CheckDvi{textures}{%
+ \def\Hy@driver{htexture}%
+ }%
+}
+\DeclareVoidOption{latex2html}{%
+ \HyOpt@CheckDvi{latex2html}{%
+ \Hy@AtBeginDocument{\@@latextohtmlX}%
+ }%
}
-\define@key{Hyp}{latex2html}[true]{%
- \Hy@AtBeginDocument{\@@latextohtmlX}%
+\DeclareVoidOption{ps2pdf}{%
+ \HyOpt@CheckDvi{ps2pdf}{%
+ \def\Hy@driver{hdvips}%
+ }%
}
-\define@key{Hyp}{ps2pdf}[true]{%
- \def\Hy@driver{hdvips}%
- \providecommand*\@pdfborder{0 0 1}%
+\let\HyOpt@DriverFallback\ltx@empty
+\define@key{Hyp}{driverfallback}{%
+ \ifHy@DviMode
+ \def\HyOpt@DriverFallback{#1}%
+ \Hy@Match\HyOpt@DriverFallback{%
+ ^(|dvipdfm|dvipdfmx|dvips|dvipsone|dviwindo|hypertex|ps2pdf|%
+ latex2html|tex4ht)$%
+ }{}{%
+ \let\HyOpt@DriverFallback\ltx@empty
+ }%
+ \fi
}
\define@key{Hyp}{hyperfigures}[true]{%
\Hy@boolkey[hyperfigures]{figures}{#1}%
@@ -3018,7 +3105,7 @@
\HyLang@DeclareLang{italian}{italian}{}
\HyLang@DeclareLang{magyar}{magyar}{}
\HyLang@DeclareLang{hungarian}{magyar}{}
-\define@key{Hyp}{vietnamese}[]{%
+\DeclareVoidOption{vietnamese}{%
\HyLang@addto\extrasvietnamese\HyLang@vietnamese
\Hy@AtEndOfPackage{%
\@ifundefined{T@PU}{}{%
@@ -3026,7 +3113,7 @@
}%
}%
}
-\define@key{Hyp}{vietnam}[]{%
+\DeclareVoidOption{vietnam}{%
\HyLang@addto\extrasvietnam\HyLang@vietnamese
\Hy@AtEndOfPackage{%
\@ifundefined{T@PU}{}{%
@@ -3034,7 +3121,7 @@
}%
}%
}
-\define@key{Hyp}{arabic}[]{%
+\DeclareVoidOption{arabic}{%
\Hy@AtEndOfPackage{%
\@ifundefined{T@PU}{}{%
\input{puarenc.def}%
@@ -3163,9 +3250,23 @@
\define@key{Hyp}{linkfileprefix}{\hyperlinkfileprefix{#1}}
\hyperlinkfileprefix{file:}
\let\@pdfpagetransition\relax
-\define@key{Hyp}{pdfpagetransition}{\def\@pdfpagetransition{#1}}
+\define@key{Hyp}{pdfpagetransition}{%
+ \def\@pdfpagetransition{#1}%
+}
\let\@pdfpageduration\relax
-\define@key{Hyp}{pdfpageduration}{\def\@pdfpageduration{#1}}
+\define@key{Hyp}{pdfpageduration}{%
+ \def\@pdfpageduration{#1}%
+ \Hy@Match\@pdfpageduration{%
+ ^(|[0-9]+\.?[0-9]*|[0-9]*\.?[0-9]+)$%
+ }{}{%
+ \Hy@Warning{%
+ Invalid value `\@pdfpageduration'\MessageBreak
+ of `pdfpageduration'\MessageBreak
+ is replaced by an empty value%
+ }%
+ \let\@pdfpageduration\ltx@empty
+ }%
+}
\newif\ifHy@useHidKey
\Hy@useHidKeyfalse
\define@key{Hyp}{pdfpagehidden}[true]{%
@@ -3201,7 +3302,23 @@
\do{/O}{Outline}%
\do{/P}{Push}%
}
-\define@key{Hyp}{pdfborder}{\def\@pdfborder{#1}}
+\define@key{Hyp}{pdfborder}{%
+ \def\Hy@temp{#1}%
+ \Hy@Match\Hy@temp{%
+ ^(\HyPat@NonNegativeReal/ %
+ \HyPat@NonNegativeReal/ %
+ \HyPat@NonNegativeReal/%
+ ( ?[\HyPat@NonNegativeReal/( \HyPat@NonNegativeReal/)*])?)$%
+ }{%
+ \let\@pdfborder\Hy@temp
+ }{%
+ \Hy@Warning{%
+ Invalid value `\Hy@temp'\MessageBreak
+ for option `pdfborder'.\MessageBreak
+ Option setting is ignored%
+ }%
+ }%
+}
\define@key{Hyp}{pdfborderstyle}{\def\@pdfborderstyle{#1}}
\def\Hy@setpdfborder{%
\ifx\@pdfborder\@empty
@@ -3660,7 +3777,6 @@
\Hy@SetCatcodes
\let\ExecuteOptions\hyper@normalise
\Hy@MaybeStopNow
-\RequirePackage{kvoptions}[2009/07/21]
\SetupKeyvalOptions{family=Hyp}
\DeclareLocalOptions{%
a4paper,a5paper,b5paper,letterpaper,legalpaper,executivepaper%
@@ -3724,7 +3840,7 @@
\expandafter\endgroup
\ifx\y Y%
\else
- \PackageError{hyperref}{%
+ \Hy@Error{%
PDF/A: Named action `#1' is not permitted%
}\@ehc
{#2}%
@@ -3782,11 +3898,11 @@
\fi
\Hy@DisableOption{typexml}
\ifHy@implicit
- \typeout{Implicit mode ON; LaTeX internals redefined}%
+ \Hy@InfoNoLine{Implicit mode ON; LaTeX internals redefined}%
\else
- \typeout{Implicit mode OFF; no redefinition of LaTeX internals}%
+ \Hy@InfoNoLine{Implicit mode OFF; no redefinition of LaTeX internals}%
\def\MaybeStopEarly{%
- \typeout{Hyperref stopped early}%
+ \Hy@Message{Stopped early}%
\Hy@AtBeginDocument{%
\PDF@FinishDoc
\gdef\PDF@FinishDoc{}%
@@ -3875,7 +3991,9 @@
\fi
\fi
\fi
+ \def\HyOpt@DriverType{}%
\ifx\Hy@driver\@empty
+ \def\HyOpt@DriverType{ (autodetected)}%
\providecommand*{\Hy@defaultdriver}{hypertex}%
\ifpdf
\def\Hy@driver{hpdftex}%
@@ -3886,7 +4004,7 @@
\ifvtexhtml
\def\Hy@driver{hvtexhtm}%
\def\MaybeStopEarly{%
- \typeout{Hyperref stopped early}%
+ \Hy@Message{Stopped early}%
\Hy@AtBeginDocument{%
\PDF@FinishDoc
\gdef\PDF@FinishDoc{}%
@@ -3900,7 +4018,23 @@
\ifvtexps
\def\Hy@driver{hvtex}%
\else
- \let\Hy@driver\Hy@defaultdriver
+ \ifx\HyOpt@DriverFallback\ltx@empty
+ \let\Hy@driver\Hy@defaultdriver
+ \def\HyOpt@DriverType{ (default)}%
+ \else
+ \begingroup
+ \toks@\expandafter{\HyOpt@DriverFallback}%
+ \edef\x{\endgroup
+ \noexpand\kvsetkeys{Hyp}{\the\toks@}%
+ }%
+ \x
+ \ifx\Hy@driver\ltx@empty
+ \let\Hy@driver\Hy@defaultdriver
+ \def\HyOpt@DriverType{ (default)}%
+ \else
+ \def\HyOpt@DriverType{ (fallback)}%
+ \fi
+ \fi
\fi
\fi
\fi
@@ -3913,13 +4047,29 @@
\PassOptionsToPackage{dviwindo}{color}%
\fi
\fi
- \typeout{* hyperref using default driver \Hy@driver\ltx@space*}%
- \else
- \typeout{* hyperref using driver \Hy@driver\ltx@space*}%
\fi
+ \Hy@Message{Driver\HyOpt@DriverType: \Hy@driver}%
\input{\Hy@driver.def}%
\let\@unprocessedoptions\relax
\Hy@RestoreCatcodes
+ \Hy@DisableOption{tex4ht}%
+ \Hy@DisableOption{pdftex}%
+ \Hy@DisableOption{nativepdf}%
+ \Hy@DisableOption{dvipdfm}%
+ \Hy@DisableOption{dvipdfmx}%
+ \Hy@DisableOption{dvipdfmx-outline-open}%
+ \Hy@DisableOption{pdfmark}%
+ \Hy@DisableOption{dvips}%
+ \Hy@DisableOption{hypertex}%
+ \Hy@DisableOption{vtex}%
+ \Hy@DisableOption{vtexpdfmark}%
+ \Hy@DisableOption{dviwindo}%
+ \Hy@DisableOption{dvipsone}%
+ \Hy@DisableOption{textures}%
+ \Hy@DisableOption{latex2html}%
+ \Hy@DisableOption{ps2pdf}%
+ \Hy@DisableOption{xetex}%
+ \Hy@DisableOption{pdfversion}%
}
\newif\ifHy@DvipdfmxOutlineOpen
\ifxetex
@@ -3935,26 +4085,6 @@
\Hy@DvipdfmxOutlineOpentrue
\fi
\fi
-\Hy@DisableOption{tex4ht}
-\Hy@DisableOption{pdftex}
-\Hy@DisableOption{nativepdf}
-\Hy@DisableOption{dvipdfm}
-\Hy@DisableOption{dvipdfmx}
-\Hy@DisableOption{dvipdfmx-outline-open}
-\Hy@DisableOption{pdfmark}
-\Hy@DisableOption{dvips}
-\Hy@DisableOption{hypertex}
-\Hy@DisableOption{vtex}
-\Hy@DisableOption{vtexpdfmark}
-\Hy@DisableOption{dviwindo}
-\Hy@DisableOption{dvipsone}
-\Hy@DisableOption{textures}
-\Hy@DisableOption{latex2html}
-\Hy@DisableOption{ps2pdf}
-\Hy@DisableOption{xetex}
-\Hy@AtEndOfPackage{%
- \Hy@DisableOption{pdfversion}%
-}
\def\WriteBookmarks{0}
\def\@bookmarkopenstatus#1{%
\ifHy@bookmarksopen
@@ -4288,7 +4418,7 @@
\newif\ifHy@href@ismap
\define@key{href}{ismap}[true]{%
\ltx@IfUndefined{Hy@href@ismap#1}{%
- \PackageError{hyperref}{%
+ \Hy@Error{%
Invalid value (#1) for key `ismap'.\MessageBreak
Permitted values are `true' or `false'.\MessageBreak
Ignoring `ismap'%
@@ -4453,7 +4583,7 @@
\else
\ifx\@pdftempa\@pdftempwordrun
\ifHy@pdfa
- \PackageError{hyperref}{%
+ \Hy@Error{%
PDF/A: Launch action is prohibited%
}\@ehc
\begingroup
@@ -4744,7 +4874,7 @@
\lowercase{\def\Hy@temp{#1}}%
\@ifundefined{Fld@export@\Hy@temp}{%
\@onelevel@sanitize\Hy@temp
- \PackageError{hyperref}{%
+ \Hy@Error{%
Unknown export format `\Hy@temp'.\MessageBreak
Known formats are `FDF', `HTML', `XFDF', and `PDF'%
}\@ehc
@@ -4868,7 +4998,7 @@
\else\ifFld@password
\else\ifFld@fileselect
\else 1\fi\fi\fi\relax
- \PackageError{hyperref}{%
+ \Hy@Error{%
Field option `comb' cannot used together with\MessageBreak
`multiline', `password', or `fileselect'%
}\@ehc
@@ -5064,7 +5194,7 @@
\lowercase{\def\Hy@temp{#1}}%
\@ifundefined{Form@method@\Hy@temp}{%
\@onelevel@sanitize\Hy@temp
- \PackageError{hyperref}{%
+ \Hy@Error{%
Unknown method `\Hy@temp'.\MessageBreak
Known values are `post' and `get'%
}\@ehc
@@ -5229,7 +5359,7 @@
\def\Hy@@temp#1#2{%
\ifHy@pdfa
\define@key{Field}{#2}{%
- \PackageError{hyperref}{%
+ \Hy@Error{%
PDF/A: Additional action `#2' is prohibited%
}\@ehc
}%
@@ -5278,7 +5408,7 @@
\else
\ifHy@pdfa
\define@key{Field}{onclick}{%
- \PackageError{hyperref}{%
+ \Hy@Error{%
PDF/A: Action `onclick' is prohibited%
}\@ehc
}%
diff --git a/Master/texmf-dist/tex/latex/hyperref/hypertex.def b/Master/texmf-dist/tex/latex/hyperref/hypertex.def
index e5f03a5338c..d44af040097 100644
--- a/Master/texmf-dist/tex/latex/hyperref/hypertex.def
+++ b/Master/texmf-dist/tex/latex/hyperref/hypertex.def
@@ -29,7 +29,7 @@
%% given in the file `manifest.txt'.
%%
\ProvidesFile{hypertex.def}
- [2010/09/11 v6.81m
+ [2010/09/13 v6.81n
Hyperref driver for HyperTeX specials]
\providecommand*{\XR@ext}{dvi}
\def\PDF@FinishDoc{}
@@ -132,25 +132,25 @@
\special{html:<img src=\hyper@quote#1\hyper@quote>}%
\endgroup
}
-\def\@Form[#1]{\typeout{Sorry, HyperTeX does not support FORMs}}
+\def\@Form[#1]{\Hy@Message{Sorry, HyperTeX does not support FORMs}}
\def\@endForm{}
\def\@Gauge[#1]#2#3#4{% parameters, label, minimum, maximum
- \typeout{Sorry, HyperTeX does not support FORM gauges}%
+ \Hy@Message{Sorry, HyperTeX does not support FORM gauges}%
}
\def\@TextField[#1]#2{% parameters, label
- \typeout{Sorry, HyperTeX does not support FORM text fields}%
+ \Hy@Message{Sorry, HyperTeX does not support FORM text fields}%
}
\def\@CheckBox[#1]#2{% parameters, label
- \typeout{Sorry, HyperTeX does not support FORM checkboxes}%
+ \Hy@Message{Sorry, HyperTeX does not support FORM checkboxes}%
}
\def\@ChoiceMenu[#1]#2#3{% parameters, label, choices
- \typeout{Sorry, HyperTeX does not support FORM choice menus}%
+ \Hy@Message{Sorry, HyperTeX does not support FORM choice menus}%
}
\def\@PushButton[#1]#2{% parameters, label
- \typeout{Sorry, HyperTeX does not support FORM pushbuttons}%
+ \Hy@Message{Sorry, HyperTeX does not support FORM pushbuttons}%
}
-\def\@Reset[#1]#2{\typeout{Sorry, HyperTeX does not support FORMs}}
-\def\@Submit[#1]#2{\typeout{Sorry, HyperTeX does not support FORMs}}
+\def\@Reset[#1]#2{\Hy@Message{Sorry, HyperTeX does not support FORMs}}
+\def\@Submit[#1]#2{\Hy@Message{Sorry, HyperTeX does not support FORMs}}
\newlength\Hy@SectionHShift
\def\Hy@SectionAnchorHref#1{%
\ifx\protect\@typeset@protect
diff --git a/Master/texmf-dist/tex/latex/hyperref/nohyperref.sty b/Master/texmf-dist/tex/latex/hyperref/nohyperref.sty
index 327ba2cb427..f7d9b82a933 100644
--- a/Master/texmf-dist/tex/latex/hyperref/nohyperref.sty
+++ b/Master/texmf-dist/tex/latex/hyperref/nohyperref.sty
@@ -30,7 +30,7 @@
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{nohyperref}
- [2010/09/11 v6.81m
+ [2010/09/13 v6.81n
Dummy hyperref (SR)]
\RequirePackage{letltxmacro}[2008/06/13]
\let\hyper@@anchor\@gobble
diff --git a/Master/texmf-dist/tex/latex/hyperref/pd1enc.def b/Master/texmf-dist/tex/latex/hyperref/pd1enc.def
index a3665096d49..707196cedce 100644
--- a/Master/texmf-dist/tex/latex/hyperref/pd1enc.def
+++ b/Master/texmf-dist/tex/latex/hyperref/pd1enc.def
@@ -29,7 +29,7 @@
%% given in the file `manifest.txt'.
%%
\ProvidesFile{pd1enc.def}
- [2010/09/11 v6.81m
+ [2010/09/13 v6.81n
Hyperref: PDFDocEncoding definition (HO)]
\DeclareFontEncoding{PD1}{}{}
\DeclareTextAccent{\`}{PD1}{\textasciigrave}
diff --git a/Master/texmf-dist/tex/latex/hyperref/pdfmark.def b/Master/texmf-dist/tex/latex/hyperref/pdfmark.def
index c3256fa429d..a45ad53a232 100644
--- a/Master/texmf-dist/tex/latex/hyperref/pdfmark.def
+++ b/Master/texmf-dist/tex/latex/hyperref/pdfmark.def
@@ -29,7 +29,7 @@
%% given in the file `manifest.txt'.
%%
\ProvidesFile{pdfmark.def}
- [2010/09/11 v6.81m
+ [2010/09/13 v6.81n
Hyperref definitions for pdfmark specials]
\begingroup
\@ifundefined{headerps@out}{}{%
@@ -997,7 +997,7 @@
}
\def\@endForm{}
\def\@Gauge[#1]#2#3#4{% parameters, label, minimum, maximum
- \typeout{Sorry, pdfmark drivers do not support FORM gauges}%
+ \Hy@Message{Sorry, pdfmark drivers do not support FORM gauges}%
}
\def\@TextField[#1]#2{% parameters, label
\def\Fld@name{#2}%
@@ -1124,7 +1124,7 @@
\DefaultOptionsofPushButton,#1%
}%
\ifHy@pdfa
- \PackageError{hyperref}{%
+ \Hy@Error{%
PDF/A: Push button with JavaScript is prohibited%
}\@ehc
\LayoutPushButtonField{%
@@ -1170,7 +1170,7 @@
}%
\leavevmode
\ifHy@pdfa
- \PackageError{hyperref}{%
+ \Hy@Error{%
PDF/A: Reset action is prohibited%
}\@ehc
\MakeButtonField{#2}%
diff --git a/Master/texmf-dist/tex/latex/hyperref/puarenc.def b/Master/texmf-dist/tex/latex/hyperref/puarenc.def
index 00279107b34..5c0451dec73 100644
--- a/Master/texmf-dist/tex/latex/hyperref/puarenc.def
+++ b/Master/texmf-dist/tex/latex/hyperref/puarenc.def
@@ -29,7 +29,7 @@
%% given in the file `manifest.txt'.
%%
\ProvidesFile{puarenc.def}
- [2010/09/11 v6.81m
+ [2010/09/13 v6.81n
Hyperref: Additions to puenc.def for Arabi]
\DeclareTextCommand{\hamza}{PU}{\86\041}% 0621;afii57409;ARABIC LETTER HAMZA
\DeclareTextCommand{\alefmadda}{PU}{\86\042}% 0622;afii57410;ARABIC LETTER ALEF WITH MADDA ABOVE
diff --git a/Master/texmf-dist/tex/latex/hyperref/puenc.def b/Master/texmf-dist/tex/latex/hyperref/puenc.def
index d976e048a98..fdcbed084b9 100644
--- a/Master/texmf-dist/tex/latex/hyperref/puenc.def
+++ b/Master/texmf-dist/tex/latex/hyperref/puenc.def
@@ -29,7 +29,7 @@
%% given in the file `manifest.txt'.
%%
\ProvidesFile{puenc.def}
- [2010/09/11 v6.81m
+ [2010/09/13 v6.81n
Hyperref: PDF Unicode definition (HO)]
\DeclareFontEncoding{PU}{}{}
\DeclareTextCommand{\`}{PU}[1]{#1\83\000}% U+0300
diff --git a/Master/texmf-dist/tex/latex/hyperref/puvnenc.def b/Master/texmf-dist/tex/latex/hyperref/puvnenc.def
index b698f9c8c2c..bc08d2f5f2f 100644
--- a/Master/texmf-dist/tex/latex/hyperref/puvnenc.def
+++ b/Master/texmf-dist/tex/latex/hyperref/puvnenc.def
@@ -29,7 +29,7 @@
%% given in the file `manifest.txt'.
%%
\ProvidesFile{puvnenc.def}
- [2010/09/11 v6.81m
+ [2010/09/13 v6.81n
Hyperref: Additions to puenc.def for VnTeX]
\DeclareTextCommand{\abreve}{PU}{\81\003}
\DeclareTextCommand{\acircumflex}{PU}{\80\342}