diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/hyperref/hyperref.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/hyperref/hyperref.sty | 64 |
1 files changed, 57 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/hyperref/hyperref.sty b/Master/texmf-dist/tex/latex/hyperref/hyperref.sty index 4674d098203..9b83a8fc71f 100644 --- a/Master/texmf-dist/tex/latex/hyperref/hyperref.sty +++ b/Master/texmf-dist/tex/latex/hyperref/hyperref.sty @@ -9,6 +9,8 @@ %% File: hyperref.dtx Copyright 1995-2001 Sebastian Rahtz, %% with portions written by David Carlisle and Heiko Oberdiek, %% 2001-2012 Heiko Oberdiek. +%% 2016 Oberdiek Package Suport Group +%% https://github.com/ho-tex/hyperref/issues %% %% This file is part of the `Hyperref Bundle'. %% ------------------------------------------- @@ -30,11 +32,8 @@ %% \NeedsTeXFormat{LaTeX2e}[1995/12/01] \ProvidesPackage{hyperref} - [2016/05/05 v6.83n % + [2016/05/21 v6.83p % Hypertext links for LaTeX] -\ifx\directlua\@undefined\else - \RequirePackage{luatex85} -\fi \begingroup \@makeother\`% \@makeother\=% @@ -2957,6 +2956,7 @@ \DeclareVoidOption{pdftex}{% \ifpdf \def\Hy@driver{hpdftex}% + \PassOptionsToPackage{pdftex}{color}% \else \Hy@Error{% Wrong driver option `pdftex',\MessageBreak @@ -2964,9 +2964,26 @@ }\@ehc \fi } +\DeclareVoidOption{luatex}{% + \ifpdf + \ifx\pdfextension\@undefined + \def\Hy@driver{hpdftex}% + \PassOptionsToPackage{pdftex}{color}% + \else + \def\Hy@driver{hluatex}% + \PassOptionsToPackage{luatex}{color}% + \fi + \else + \Hy@Error{% + Wrong driver option `luatex',\MessageBreak + because luaTeX in PDF mode is not detected% + }\@ehc + \fi +} \DeclareVoidOption{nativepdf}{% \HyOpt@CheckDvi{nativepdf}{% \def\Hy@driver{hdvips}% + \PassOptionsToPackage{dvips}{color}% }% } \DeclareVoidOption{dvipdfm}{% @@ -2977,6 +2994,7 @@ \DeclareVoidOption{dvipdfmx}{% \HyOpt@CheckDvi{dvipdfmx}{% \def\Hy@driver{hdvipdfm}% + \PassOptionsToPackage{dvipdfmx}{color}% }% } \define@key{Hyp}{dvipdfmx-outline-open}[true]{% @@ -3005,6 +3023,7 @@ \DeclareVoidOption{dvips}{% \HyOpt@CheckDvi{dvips}{% \def\Hy@driver{hdvips}% + \PassOptionsToPackage{dvips}{color}% }% } \DeclareVoidOption{hypertex}{% @@ -3069,6 +3088,7 @@ \DeclareVoidOption{dvipsone}{% \HyOpt@CheckDvi{dvipsone}{% \def\Hy@driver{hdvipson}% + \PassOptionsToPackage{dvipsone}{color}% }% } \DeclareVoidOption{textures}{% @@ -3084,6 +3104,7 @@ \DeclareVoidOption{ps2pdf}{% \HyOpt@CheckDvi{ps2pdf}{% \def\Hy@driver{hdvips}% + \PassOptionsToPackage{dvips}{color}% }% } \let\HyOpt@DriverFallback\ltx@empty @@ -3341,6 +3362,24 @@ \def\theoremautorefname{Teorema}% \def\pageautorefname{P\'agina}% } +\def\HyLang@catalan{% +\def\equationautorefname{Equaci\'o}% +\def\footnoteautorefname{Nota al peu de p\`agina}% +\def\itemautorefname{Element}% +\def\figureautorefname{Figura}% +\def\tableautorefname{Taula}% +\def\partautorefname{Part}% +\def\appendixautorefname{Ap\`endix}% +\def\chapterautorefname{Cap\'itol}% +\def\sectionautorefname{Secci\'o}% +\def\subsectionautorefname{Subsecci\'o}% +\def\subsubsectionautorefname{Subsubsecci\'o}% +\def\paragraphautorefname{Par\`agraf}% +\def\subparagraphautorefname{Subpar\`agraf}% +\def\FancyVerbLineautorefname{L\'inia}% +\def\theoremautorefname{Teorema}% +\def\pageautorefname{P\`agina}% +} \def\HyLang@vietnamese{% \def\equationautorefname{Ph\uhorn{}\ohorn{}ng tr\`inh}% \def\footnoteautorefname{Ch\'u th\'ich}% @@ -3416,6 +3455,7 @@ \HyLang@DeclareLang{brazilian}{portuges}{} \HyLang@DeclareLang{portuguese}{portuges}{} \HyLang@DeclareLang{spanish}{spanish}{} +\HyLang@DeclareLang{catalan}{catalan}{} \HyLang@DeclareLang{afrikaans}{afrikaans}{} \HyLang@DeclareLang{french}{french}{} \HyLang@DeclareLang{frenchb}{french}{} @@ -4575,7 +4615,11 @@ \def\HyOpt@DriverType{ (autodetected)}% \providecommand*{\Hy@defaultdriver}{hypertex}% \ifpdf - \def\Hy@driver{hpdftex}% + \ifx\pdfextension\@undefined + \def\Hy@driver{hpdftex}% + \else + \def\Hy@driver{hluatex}% + \fi \else \ifxetex \def\Hy@driver{hxetex}% @@ -6094,7 +6138,7 @@ \def\Fld@align{#1}% } \define@key{Field}{value}{% - \def\Fld@value{#1}% + \Hy@pdfstringdef\Fld@value{#1}% } \define@key{Field}{checkboxsymbol}{% \Fld@DingDef\Fld@cbsymbol{#1}% @@ -7259,6 +7303,7 @@ \ignorespaces }% \fi +\Hy@AtBeginDocument{% \@ifpackageloaded{amsthm}{% \def\Hy@temp#1#2#3{% \ifhmode\unskip\unskip\par\fi @@ -7379,7 +7424,12 @@ \clubpenalty\@clubpenalty \everypar{}% \fi }% -}{} +}% +{% +\let\Hy@savedthm\@thm +\def\@thm{\ifhmode\unskip\fi\Hy@savedthm}% +}% +} \ifHy@hyperfootnotes \newcounter{Hfootnote}% \let\H@@footnotetext\@footnotetext |