diff options
author | Karl Berry <karl@freefriends.org> | 2016-06-11 23:25:30 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-06-11 23:25:30 +0000 |
commit | fc425dd2d6d4c8a958e1f1f3152fff900b452f72 (patch) | |
tree | 11b99cf7edc4f534109eb8ef9a510b50f7a7728f /Master/texmf-dist/source/latex/hyperref/hyperref.dtx | |
parent | b8932a2863ab57aed166ce0f527de1a11c47f555 (diff) |
hyperref (28may16)
git-svn-id: svn://tug.org/texlive/trunk@41396 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/hyperref/hyperref.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/hyperref/hyperref.dtx | 113 |
1 files changed, 94 insertions, 19 deletions
diff --git a/Master/texmf-dist/source/latex/hyperref/hyperref.dtx b/Master/texmf-dist/source/latex/hyperref/hyperref.dtx index 0ea2b99f524..da702f474b2 100644 --- a/Master/texmf-dist/source/latex/hyperref/hyperref.dtx +++ b/Master/texmf-dist/source/latex/hyperref/hyperref.dtx @@ -2,6 +2,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'. %% ------------------------------------------- @@ -28,6 +30,7 @@ %<check>\ProvidesFile{hycheck.tex} %<hypertex>\ProvidesFile{hypertex.def} %<pdftex>\ProvidesFile{hpdftex.def} +%<luatex>\ProvidesFile{hluatex.def} %<pdfmark>\ProvidesFile{pdfmark.def} %<vtexpdfmark>\ProvidesFile{hvtexmrk.def} %<dvips>\ProvidesFile{hdvips.def} @@ -45,7 +48,7 @@ %<puvnenc>\ProvidesFile{puvnenc.def} %<puarenc>\ProvidesFile{puarenc.def} %<psdextra>\ProvidesFile{psdextra.def} -%<!none> [2016/05/05 v6.83n % +%<!none> [2016/05/21 v6.83p % %<package> Hypertext links for LaTeX] %<nohyperref> Dummy hyperref (SR)] %<driver> Hyperref documentation driver file] @@ -54,6 +57,8 @@ %<hypertex>\Hy@VersionCheck{hypertex.def} %<pdftex> Hyperref driver for pdfTeX] %<pdftex>\Hy@VersionCheck{hpdftex.def} +%<luatex> Hyperref driver for luaTeX] +%<luatex>\Hy@VersionCheck{hluatex.def} %<pdfmark> Hyperref definitions for pdfmark specials] %<pdfmark>\Hy@VersionCheck{pdfmark.def} %<vtexpdfmark> Hyperref driver for VTeX in PDF/PS mode (pdfmark specials)] @@ -111,12 +116,11 @@ % % title % - \GetFileInfo{hyperref.drv}% + \GetFileInfo{hyperref.sty}% \title{Hypertext marks in \LaTeX}% - \author{Sebastian Rahtz\\% - Email: \texttt{sebastian.rahtz at oucs.ox.ac.uk}\\[1.5ex]% + \author{Sebastian Rahtz (deceased)\\% Heiko Oberdiek (maintainer)\\% - Email: \texttt{heiko.oberdiek at googlemail.com}}% + \texttt{https://github.com/ho-tex/hyperref/issues}}% % \date{processed \today}% \date{\filedate\space\fileversion}% \maketitle @@ -147,7 +151,6 @@ \end{document} %</driver> % \fi -% \CheckSum{39767} % % \MakeShortVerb{|} % \StopEventually{} @@ -499,9 +502,9 @@ % Until a Lua\TeX\ driver is writen, load |luatex85| so that % the |pdftex| driver continues to work with Lua\TeX. % \begin{macrocode} -\ifx\directlua\@undefined\else - \RequirePackage{luatex85} -\fi +%\ifx\directlua\@undefined\else +% \RequirePackage{luatex85} +%\fi % \end{macrocode} % % \subsection{Save catcodes} @@ -5360,6 +5363,7 @@ \DeclareVoidOption{pdftex}{% \ifpdf \def\Hy@driver{hpdftex}% + \PassOptionsToPackage{pdftex}{color}% \else \Hy@Error{% Wrong driver option `pdftex',\MessageBreak @@ -5367,9 +5371,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}{% @@ -5380,6 +5401,7 @@ \DeclareVoidOption{dvipdfmx}{% \HyOpt@CheckDvi{dvipdfmx}{% \def\Hy@driver{hdvipdfm}% + \PassOptionsToPackage{dvipdfmx}{color}% }% } \define@key{Hyp}{dvipdfmx-outline-open}[true]{% @@ -5408,6 +5430,7 @@ \DeclareVoidOption{dvips}{% \HyOpt@CheckDvi{dvips}{% \def\Hy@driver{hdvips}% + \PassOptionsToPackage{dvips}{color}% }% } \DeclareVoidOption{hypertex}{% @@ -5472,6 +5495,7 @@ \DeclareVoidOption{dvipsone}{% \HyOpt@CheckDvi{dvipsone}{% \def\Hy@driver{hdvipson}% + \PassOptionsToPackage{dvipsone}{color}% }% } \DeclareVoidOption{textures}{% @@ -5490,6 +5514,7 @@ \DeclareVoidOption{ps2pdf}{% \HyOpt@CheckDvi{ps2pdf}{% \def\Hy@driver{hdvips}% + \PassOptionsToPackage{dvips}{color}% }% } % \end{macrocode} @@ -5919,6 +5944,28 @@ \def\theoremautorefname{Teorema}% \def\pageautorefname{P\'agina}% } +% \end{macrocode} +% \begin{macrocode} +\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}% +} +% \end{macrocode} +% \begin{macrocode} \def\HyLang@vietnamese{% \def\equationautorefname{Ph\uhorn{}\ohorn{}ng tr\`inh}% \def\footnoteautorefname{Ch\'u th\'ich}% @@ -6003,6 +6050,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}{} @@ -7354,7 +7402,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}% @@ -9362,7 +9414,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}% @@ -11315,6 +11367,7 @@ % % Support for package \texttt{amsthm} (Daniel M\"ullner): % \begin{macrocode} +\Hy@AtBeginDocument{% \@ifpackageloaded{amsthm}{% % \end{macrocode} % Class amsbook uses a different definition of \cs{@thm}, @@ -11446,7 +11499,16 @@ \clubpenalty\@clubpenalty \everypar{}% \fi }% -}{} +}% +% \end{macrocode} +% non \texttt{amsthm} case, remove final space on line before a theorem +% for githib issue 11. +% \begin{macrocode} +{% +\let\Hy@savedthm\@thm +\def\@thm{\ifhmode\unskip\fi\Hy@savedthm}% +}% +} % \end{macrocode} % % \section{Footnotes}\label{footnotes} @@ -14997,10 +15059,12 @@ \Hy@DisableOption{ocgcolorlinks}% \fi % \end{macrocode} +% Use primitive counter arithmetic here to avoid amsmath +% redefining |\stepcounter| (github issue/13) % \begin{macrocode} \def\Hy@BeginAnnot#1{% - \stepcounter{Hy@AnnotLevel}% - \ifnum\value{Hy@AnnotLevel}=\@ne + \global\advance\c@Hy@AnnotLevel\@ne + \ifnum\c@Hy@AnnotLevel=\@ne #1% \fi } @@ -15009,7 +15073,7 @@ \Hy@endcolorlink \@pdfm@mark{eann}% \fi - \addtocounter{Hy@AnnotLevel}\m@ne + \global\advance\c@Hy@AnnotLevel\m@ne } % \end{macrocode} % \begin{macrocode} @@ -19787,6 +19851,7 @@ \Fld@flags /Q \Fld@align /BS<</W \Fld@borderwidth /S/\Fld@borderstyle>>% + /AP<< /N <</Yes<<>>>> >> %new string /Yes is from below /MK<<% \ifnum\Fld@rotation=\z@ \else @@ -19911,12 +19976,22 @@ >>% /DA(/ZaDb \strip@pt\Fld@charsize\space Tf% \ifx\Fld@color\@empty\else\space\Fld@color\fi)% - \ifx\@currValue\Fld@default - /V/\Fld@default - /DV/\Fld@default - \else +% \end{macrocode} +%^^A \ifx\@currValue\Fld@default %old code +%^^A /V/\Fld@default +%^^A /DV/\Fld@default +%^^A \else +%^^A /V/Off% +%^^A /DV/Off% +%^^A \fi +% New code, the default value is used for all buttons +% \begin{macrocode} + \ifx\Fld@default\@empty /V/Off% /DV/Off% + \else + /V/\Fld@default + /DV/\Fld@default \fi \Fld@additionalactions } |