diff options
author | Karl Berry <karl@freefriends.org> | 2012-05-02 21:50:45 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-05-02 21:50:45 +0000 |
commit | aa1776c78dfdb456e2228fbceaa886e64e36174c (patch) | |
tree | 7967af7f0f2079a632809a813221918af16ba8cc /Master/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty | |
parent | a86d14742b305868a1c2b1f33f1263a6b7d0e03d (diff) |
oberdiek (1may12)
git-svn-id: svn://tug.org/texlive/trunk@26177 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty')
-rw-r--r-- | Master/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty | 410 |
1 files changed, 334 insertions, 76 deletions
diff --git a/Master/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty b/Master/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty index 71354f61e92..47f9af78aa4 100644 --- a/Master/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty +++ b/Master/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty @@ -23,9 +23,9 @@ %% This is a generated file. %% %% Project: hobsub -%% Version: 2011/04/23 v1.4 +%% Version: 2012/04/25 v1.12 %% -%% Copyright (C) 2011 by +%% Copyright (C) 2011, 2012 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -116,7 +116,7 @@ \fi \expandafter\x\csname ver@hobsub-hyperref.sty\endcsname \ProvidesPackage{hobsub-hyperref}% - [2011/04/23 v1.4 Bundle oberdiek, subset hyperref (HO)]% + [2012/04/25 v1.12 Bundle oberdiek, subset hyperref (HO)]% \begingroup\catcode61\catcode48\catcode32=10\relax% \catcode13=5 % ^^M \endlinechar=13 % @@ -161,7 +161,7 @@ \TMP@EnsureCode{96}{12}% ` \edef\HOBsub@AtEnd{\HOBsub@AtEnd\noexpand\endinput} \NeedsTeXFormat{LaTeX2e} -\RequirePackage{hobsub-generic}[2011/04/23] +\RequirePackage{hobsub-generic}[2012/04/25] \begingroup\expandafter\expandafter\expandafter\endgroup \expandafter\ifx\csname ver@hobsub.sty\endcsname\relax \else @@ -242,11 +242,11 @@ \begingroup\expandafter\expandafter\expandafter\endgroup \expandafter\ifx\csname ProvidesPackage\endcsname\relax \immediate\write-1{% - Package: hobsub 2011/04/23 v1.4 Subsetting bundle oberdiek (HO)% + Package: hobsub 2012/04/25 v1.12 Construct package bundles (HO)% }% \else \ProvidesPackage{hobsub}% - [2011/04/23 v1.4 Subsetting bundle oberdiek (HO)]% + [2012/04/25 v1.12 Construct package bundles (HO)]% \fi \endinput <hobsub> @@ -471,7 +471,7 @@ \edef\HOpatch@AtEnd{\HOpatch@AtEnd\noexpand\endinput} \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{hopatch}% - [2011/01/30 v1.0 Wrapper for package hooks (HO)] + [2011/06/24 v1.1 Wrapper for package hooks (HO)] \begingroup\expandafter\expandafter\expandafter\endgroup \expandafter\ifx\csname RequirePackage\endcsname\relax \def\TMP@RequirePackage#1[#2]{% @@ -543,9 +543,12 @@ } \AtBeginDocument{\HOpatch@list} \ltx@ifundefined{AtEndPreamble}{}{% +\ltx@ifundefined{@endpreamblehook}{}{% \AtEndPreamble{\HOpatch@list}% +}% } \ltx@ifundefined{AfterEndPreamble}{}{% +\ltx@ifundefined{@afterendpreamblehook}{}{% \AfterEndPreamble{% \let\HOpatch@OrgIfPackageLoaded\@ifpackageloaded \let\HOpatch@OrgIfPackageLater\@ifpackagelater @@ -561,6 +564,7 @@ \let\@ifclassloaded\HOpatch@OrgIfClassLoaded \let\@ifclasslater\HOpatch@OrgIfClassLater }% +}% } \HOpatch@AtEnd% \endinput @@ -769,7 +773,7 @@ \edef\AtVeryEnd@AtEnd{\AtVeryEnd@AtEnd\noexpand\endinput} \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{atveryend}% - [2011/04/23 v1.7 Hooks at very end of document (HO)] + [2011/06/30 v1.8 Hooks at the very end of document (HO)] \def\AtVeryEnd@ifundefined#1{% \begingroup\expandafter\expandafter\expandafter\endgroup \expandafter\ifx\csname #1\endcsname\relax @@ -930,6 +934,81 @@ \Call@AtVeryVeryEnd \@@end } +\expandafter\def\csname AtVeryEnd@test@standard20110627\endcsname{% +\let\AtEndDocument\@firstofone +\@enddocumenthook +\@checkend{document}% +\clearpage +\begingroup +\if@filesw +\immediate\closeout\@mainaux +\let\@setckpt\@gobbletwo +\let\@newl@bel\@testdef +\@tempswafalse +\makeatletter +\@@input\jobname.aux % +\fi +\@dofilelist +\ifdim \font@submax >\fontsubfuzz\relax +\@font@warning{Size substitutions with differences\MessageBreak + up to \font@submax\space have occurred.\@gobbletwo}% +\fi +\@defaultsubs +\@refundefined +\if@filesw +\ifx \@multiplelabels \relax +\if@tempswa +\@latex@warning@no@line{Label(s) may have changed. % + Rerun to get cross-references right}% +\fi +\else +\@multiplelabels +\fi +\fi +\endgroup +\deadcycles\z@ +\@@end +} +\expandafter\def\csname AtVeryEnd@enddocument@standard20110627\endcsname{% +\let\AtEndDocument\@firstofone +\@enddocumenthook +\@checkend{document}% +\Call@BeforeClearDocument +\clearpage +\Call@AfterLastShipout +\begingroup +\if@filesw +\immediate\closeout\@mainaux +\let\@setckpt\@gobbletwo +\let\@newl@bel\@testdef +\@tempswafalse +\makeatletter +\@@input\jobname.aux % +\fi +\Call@AtVeryEndDocument +\@dofilelist +\Call@AtEndAfterFileList +\ifdim \font@submax >\fontsubfuzz\relax +\@font@warning{Size substitutions with differences\MessageBreak + up to \font@submax\space have occurred.\@gobbletwo}% +\fi +\@defaultsubs +\@refundefined +\if@filesw +\ifx \@multiplelabels \relax +\if@tempswa +\@latex@warning@no@line{Label(s) may have changed. % + Rerun to get cross-references right}% +\fi +\else +\@multiplelabels +\fi +\fi +\endgroup +\deadcycles\z@ +\Call@AtVeryVeryEnd +\@@end +} \expandafter\def\expandafter\AtVeryEnd@test@booklet\expandafter{% \expandafter\twoupclearpage \AtVeryEnd@test@standard @@ -1142,6 +1221,7 @@ \def\AtVeryEnd@RedefEndDocument#1{% \ifx#1\@undefined \else +\AtVeryEnd@Test#1{standard20110627}% \AtVeryEnd@Test#1{standard}% \AtVeryEnd@Test#1{booklet}% \AtVeryEnd@Test#1{dinbrief}% @@ -1389,7 +1469,7 @@ \fi \expandafter\x\csname ver@atbegshi.sty\endcsname \ProvidesPackage{atbegshi}% - [2011/01/30 v1.15 At begin shipout hook (HO)]% + [2011/10/05 v1.16 At begin shipout hook (HO)]% \begingroup\catcode61\catcode48\catcode32=10\relax% \catcode13=5 % ^^M \endlinechar=13 % @@ -1523,36 +1603,32 @@ X \endgroup \else \AtBegShi@First \let\protect\AtBegShi@OrgProtect +\AtBegShi@GetBoxSize\AtBeginShipoutBox +\ltx@ifundefined{AtNextShipout}{% +}{% +\AtNextShipout{\AtBegShi@GetBoxSize\@cclv}% +}% \AtBeginShipoutOriginalShipout\box\AtBeginShipoutBox \fi \fi } +\def\AtBegShi@GetBoxSize#1{% +\xdef\AtBeginShipoutBoxWidth{\the\wd#1}% +\xdef\AtBeginShipoutBoxHeight{\the\ht#1}% +\xdef\AtBeginShipoutBoxDepth{\the\dp#1}% +} +\def\AtBeginShipoutBoxWidth{0pt} +\def\AtBeginShipoutBoxHeight{0pt} +\def\AtBeginShipoutBoxDepth{0pt} \catcode`\X=11 % \catcode`\E=11 % \def\AtBegShi@First{% -\begingroup -\def\@empty{}% -\ifx\AtBegShi@HookFirst\@empty +\ifx\AtBegShi@HookFirst\ltx@empty \else -\setbox\ltx@zero=\vbox{% -\begingroup -\AtBegShi@HookFirst -\endgroup -}% -\wd\ltx@zero=0pt % -\ht\ltx@zero=0pt % -\dp\ltx@zero=0pt % -\global\setbox\AtBeginShipoutBox=\vbox{% -\baselineskip 0pt\relax -\lineskip 0pt\relax -\lineskiplimit 0pt\relax -\copy\ltx@zero -\copy\AtBeginShipoutBox -}% +\AtBeginShipoutAddToBox{\AtBegShi@HookFirst}% \fi -\global\let\AtBegShi@First\@empty +\global\let\AtBegShi@First\ltx@empty \global\let\AtBeginShipoutFirst\AtBegShi@FirstDisabled -\endgroup } \gdef\AtBegShi@Hook{} \gdef\AtBegShi@HookNext{} @@ -1626,11 +1702,138 @@ X \endgroup \else \AtBeginDocument{\AtBeginShipoutInit}% \fi +\def\AtBeginShipoutAddToBox#1{% +\ifhbox\AtBeginShipoutBox +\edef\AtBegShi@restore{% +\hfuzz=\the\hfuzz\relax +\hbadness=\the\hbadness\relax +}% +\hfuzz=1073741823sp\relax +\hbadness=2147483647\relax +\setbox\AtBeginShipoutBox=\hbox to \wd\AtBeginShipoutBox{% +\setbox\ltx@zero=\hbox{% +\begingroup +\AtBegShi@restore +#1% +\endgroup +}% +\wd\ltx@zero=0pt\relax +\ht\ltx@zero=0pt\relax +\dp\ltx@zero=0pt\relax +\raise\ht\AtBeginShipoutBox\copy\ltx@zero +\unhcopy\AtBeginShipoutBox +}% +\AtBegShi@restore +\else +\ifvbox\AtBeginShipoutBox +\edef\AtBegShi@restore{% +\vfuzz=\the\vfuzz\relax +\vbadness=\the\vbadness\relax +\dimen\ltx@zero=\the\dimen\ltx@zero\relax +}% +\edef\AtBegShi@restorebox{% +\ht\AtBeginShipoutBox=\the\ht\AtBeginShipoutBox\relax +\dp\AtBeginShipoutBox=\the\dp\AtBeginShipoutBox\relax +}% +\vfuzz=1073741823sp\relax +\vbadness=2147483647\relax +\dimen\ltx@zero=\ht\AtBeginShipoutBox +\advance\dimen\ltx@zero by \dp\AtBeginShipoutBox +\setbox\AtBeginShipoutBox=\vbox to \dimen\ltx@zero{% +\setbox\ltx@zero=\hbox{% +\begingroup +\AtBegShi@restore +#1% +\endgroup +}% +\wd\ltx@zero=0pt\relax +\ht\ltx@zero=0pt\relax +\dp\ltx@zero=0pt\relax +\baselineskip=0pt\relax +\lineskip=0pt\relax +\lineskiplimit=0pt\relax +\copy\ltx@zero +\unvbox\AtBeginShipoutBox +\kern0pt% +}% +\AtBegShi@restore +\AtBegShi@restorebox +\fi +\fi +} +\def\AtBeginShipoutAddToBoxForeground#1{% +\ifhbox\AtBeginShipoutBox +\edef\AtBegShi@restore{% +\hfuzz=\the\hfuzz\relax +\hbadness=\the\hbadness\relax +}% +\hfuzz=1073741823sp\relax +\hbadness=2147483647\relax +\setbox\AtBeginShipoutBox=\hbox to \wd\AtBeginShipoutBox{% +\unhcopy\AtBeginShipoutBox +\kern-\wd\AtBeginShipoutBox +\setbox\ltx@zero=\hbox{% +\begingroup +\AtBegShi@restore +#1% +\endgroup +}% +\wd\ltx@zero=0pt\relax +\ht\ltx@zero=0pt\relax +\dp\ltx@zero=0pt\relax +\raise\ht\AtBeginShipoutBox\copy\ltx@zero +\kern\wd\AtBeginShipoutBox +}% +\AtBegShi@restore +\else +\ifvbox\AtBeginShipoutBox +\edef\AtBegShi@restore{% +\vfuzz=\the\vfuzz\relax +\vbadness=\the\vbadness\relax +\dimen\ltx@zero=\the\dimen\ltx@zero\relax +}% +\edef\AtBegShi@restorebox{% +\ht\AtBeginShipoutBox=\the\ht\AtBeginShipoutBox\relax +\dp\AtBeginShipoutBox=\the\dp\AtBeginShipoutBox\relax +}% +\vfuzz=1073741823sp\relax +\vbadness=2147483647\relax +\dimen\ltx@zero=\ht\AtBeginShipoutBox +\advance\dimen\ltx@zero by \dp\AtBeginShipoutBox +\setbox\AtBeginShipoutBox=\vbox to \dimen\ltx@zero{% +\setbox\ltx@zero=\hbox{% +\begingroup +\AtBegShi@restore +#1% +\endgroup +}% +\wd\ltx@zero=0pt\relax +\ht\ltx@zero=0pt\relax +\dp\ltx@zero=0pt\relax +\baselineskip=0pt\relax +\lineskip=0pt\relax +\lineskiplimit=0pt\relax +\unvbox\AtBeginShipoutBox +\kern-\dimen\ltx@zero +\copy\ltx@zero +\kern\dimen\ltx@zero +}% +\AtBegShi@restore +\AtBegShi@restorebox +\fi +\fi +} \begingroup\expandafter\expandafter\expandafter\endgroup \expandafter\ifx\csname RequirePackage\endcsname\relax -\input ifpdf.sty\relax +\def\TMP@RequirePackage#1[#2]{% +\begingroup\expandafter\expandafter\expandafter\endgroup +\expandafter\ifx\csname ver@#1.sty\endcsname\relax +\input #1.sty\relax +\fi +}% +\TMP@RequirePackage{ifpdf}[2011/01/30]% \else -\RequirePackage{ifpdf}\relax +\RequirePackage{ifpdf}[2011/01/30]% \fi \ifpdf \def\AtBegShi@horigin{\pdfhorigin}% @@ -1681,39 +1884,28 @@ X \endgroup }% \fi \def\AtBeginShipoutUpperLeft#1{% -\global\setbox\AtBeginShipoutBox=\hbox{% -\rlap{% +\AtBeginShipoutAddToBox{% \kern-\AtBegShi@horigin\relax \vbox to 0pt{% \kern-\AtBegShi@vorigin\relax -\kern-\ht\AtBeginShipoutBox \AtBegShi@BeginPicture #1% \AtBegShi@EndPicture \vss }% }% -\box\AtBeginShipoutBox -}% } \def\AtBeginShipoutUpperLeftForeground#1{% -\global\setbox\AtBeginShipoutBox=\hbox to \wd\AtBeginShipoutBox{% -\rlap{% -\copy\AtBeginShipoutBox -}% -\rlap{% +\AtBeginShipoutAddToBoxForeground{% \kern-\AtBegShi@horigin\relax \vbox to 0pt{% \kern-\AtBegShi@vorigin\relax -\kern-\ht\AtBeginShipoutBox \AtBegShi@BeginPicture #1% \AtBegShi@EndPicture \vss }% }% -\hss -}% } \def\AtBegShi@AbortIfUndefined#1{% \begingroup\expandafter\expandafter\expandafter\endgroup @@ -1794,6 +1986,7 @@ X \endgroup \setbox\AtBeginShipoutBox=\vbox{% \CROP@shiplist }% +\AtBegShi@GetBoxSize\AtBeginShipoutBox \expandafter\CROP@shipout \expandafter\box \expandafter\AtBeginShipoutBox @@ -1910,16 +2103,81 @@ X \endgroup }% \fi }% -\ifx\AtBegShi@Memoir@shipi\mem@shipi -\ifcase\ifx\AtBegShi@Memoir@shipiiA\mem@shipii -\ltx@zero +\def\AtBegShi@Memoir@PatchAB{% +\ifvoid\AtBeginShipoutBox \else -\ifx\AtBegShi@Memoir@shipiiB\mem@shipii -\ltx@zero +\setbox\AtBeginShipoutBox=\vbox{% +\trimmarks +\ifvbox\AtBeginShipoutBox +\unvbox\AtBeginShipoutBox \else -\ltx@one +\box\AtBeginShipoutBox +\fi +}% +\AtBegShi@GetBoxSize\AtBeginShipoutBox +\expandafter\mem@oldshipout +\expandafter\box +\expandafter\AtBeginShipoutBox +\fi +}% +\def\AtBegShi@Memoir@shipiiC{% 2008/08/07 v1.6180339a +\ifvoid\@cclv +\mem@oldshipout\box\@cclv +\else +\ifshowtrims +\mem@oldshipout\vbox{\trimmarks\unvbox\@cclv}% +\else +\mem@oldshipout\box\@cclv +\fi +\fi +}% +\def\AtBegShi@Memoir@shipiiD{% 2011/03/06 v3.6j +\ifvoid\@cclv +\mem@oldshipout\box\@cclv +\else +\ifshowtrims +\mem@oldshipout\vbox{% +\trimmarks +\nointerlineskip +\box\@cclv +}% +\else +\mem@oldshipout\box\@cclv \fi \fi +}% +\def\AtBegShi@Memoir@PatchCD{% +\ifvoid\AtBeginShipoutBox +\else +\ifshowtrims +\setbox\AtBeginShipoutBox=\vbox{% +\trimmarks +\nointerlineskip +\box\AtBeginShipoutBox +}% +\fi +\AtBegShi@GetBoxSize\AtBeginShipoutBox +\expandafter\mem@oldshipout +\expandafter\box +\expandafter\AtBeginShipoutBox +\fi +}% +\ifx\AtBegShi@Memoir@shipi\mem@shipi +\let\AtBegShi@found\ltx@one +\ifx\AtBegShi@Memoir@shipiiA\mem@shipii +\let\AtBegShi@found\ltx@zero +\global\let\AtBegShi@Memoir@PatchX\AtBegShi@Memoir@PatchAB +\else\ifx\AtBegShi@Memoir@shipiiB\mem@shipii +\let\AtBegShi@found\ltx@zero +\global\let\AtBegShi@Memoir@PatchX\AtBegShi@Memoir@PatchAB +\else\ifx\AtBegShi@Memoir@shipiiC\mem@shipii +\let\AtBegShi@found\ltx@zero +\global\let\AtBegShi@Memoir@PatchX\AtBegShi@Memoir@PatchCD +\else\ifx\AtBegShi@Memoir@shipiiD\mem@shipii +\let\AtBegShi@found\ltx@zero +\global\let\AtBegShi@Memoir@PatchX\AtBegShi@Memoir@PatchCD +\fi\fi\fi\fi +\ifcase\AtBegShi@found \let\AtBegShi@found\relax \ifx\shipout\AtBegShi@Memoir@shipout \def\AtBegShi@found{\shipout}% @@ -1949,22 +2207,7 @@ X \endgroup \fi \mem@shipii }% -\def\mem@shipii{% -\ifvoid\AtBeginShipoutBox -\else -\setbox\AtBeginShipoutBox=\vbox{% -\trimmarks -\ifvbox\AtBeginShipoutBox -\unvbox\AtBeginShipoutBox -\else -\box\AtBeginShipoutBox -\fi -}% -\expandafter\mem@oldshipout -\expandafter\box -\expandafter\AtBeginShipoutBox -\fi -}% +\let\mem@shipii\AtBegShi@Memoir@PatchX \@PackageInfoNoLine{atbegshi}{Class `memoir' patched}% \begingroup \fi @@ -2049,7 +2292,7 @@ X \endgroup \fi \expandafter\x\csname ver@refcount.sty\endcsname \ProvidesPackage{refcount}% - [2010/12/01 v3.2 Data extraction from references (HO)]% + [2011/10/16 v3.4 Data extraction from label references (HO)]% \begingroup\catcode61\catcode48\catcode32=10\relax% \catcode13=5 % ^^M \endlinechar=13 % @@ -2097,7 +2340,7 @@ X \endgroup \input ltxcmds.sty\relax \input infwarerr.sty\relax \else -\RequirePackage{ltxcmds}[2010/04/08]% +\RequirePackage{ltxcmds}[2011/11/09]% \RequirePackage{infwarerr}[2010/04/08]% \fi \ltx@IfUndefined{@ifdefinable}{% @@ -2126,12 +2369,22 @@ X \endgroup #1\def#3##1{#4}% }% }% +\def\rc@RobustDefZero#1#2{% +\rc@IfDefinable#1{% +\def#1{#2}% +}% +}% }{% \def\rc@RobustDefOne#1#2#3#4{% \rc@IfDefinable#3{% \DeclareRobustCommand#2#3[1]{#4}% }% }% +\def\rc@RobustDefZero#1#2{% +\rc@IfDefinable#1{% +\DeclareRobustCommand#1{#2}% +}% +}% }% }{% \def\rc@RobustDefOne#1#2#3#4{% @@ -2139,6 +2392,11 @@ X \endgroup \protected#1\def#3##1{#4}% }% }% +\def\rc@RobustDefZero#1#2{% +\rc@IfDefinable#1{% +\protected\def#1{#2}% +}% +}% } \ltx@IfUndefined{newcommand}{% \def\rc@newcommand*#1[#2]#3{% hash-ok @@ -2202,7 +2460,7 @@ X \endgroup \def\rc@set#1#2#3#4{% \begingroup \csname @safe@activestrue\endcsname -\rc@refused{#4}% +\refused{#4}% \expandafter\rc@@set\csname r@#4\endcsname{#1}{#2}{#3}% \endgroup } @@ -2215,17 +2473,17 @@ X \endgroup }% \fi } -\rc@newcommand*{\setcounterref}[0]{% +\rc@RobustDefZero\setcounterref{% \rc@set\setcounter\ltx@car } -\rc@newcommand*{\addtocounterref}[0]{% +\rc@RobustDefZero\addtocounterref{% \rc@set\addtocounter\ltx@car } -\rc@newcommand*{\setcounterpageref}[0]{% -\rc@set\setcounter\ltx@cartwo +\rc@RobustDefZero\setcounterpageref{% +\rc@set\setcounter\ltx@carsecond } -\rc@newcommand*{\addtocounterpageref}[0]{% -\rc@set\addtocounter\ltx@cartwo +\rc@RobustDefZero\addtocounterpageref{% +\rc@set\addtocounter\ltx@carsecond } \rc@newcommand*{\getrefnumber}[1]{% \romannumeral @@ -2333,7 +2591,7 @@ X \endgroup \hobsub@StartPackage{hycolor} \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{hycolor}% - [2011/01/30 v1.7 Color options of hyperref/bookmark (HO)]% + [2011/01/30 v1.7 Color options for hyperref/bookmark (HO)]% \RequirePackage{xcolor-patch}[2011/01/30] \begingroup \catcode`\!=13 % |