diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/oberdiek/hypdestopt.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/oberdiek/hypdestopt.sty | 42 |
1 files changed, 27 insertions, 15 deletions
diff --git a/Master/texmf-dist/tex/latex/oberdiek/hypdestopt.sty b/Master/texmf-dist/tex/latex/oberdiek/hypdestopt.sty index eb3583c207f..c08f1a47822 100644 --- a/Master/texmf-dist/tex/latex/oberdiek/hypdestopt.sty +++ b/Master/texmf-dist/tex/latex/oberdiek/hypdestopt.sty @@ -9,9 +9,9 @@ %% This is a generated file. %% %% Project: hypdestopt -%% Version: 2008/08/08 v2.2 +%% Version: 2011/05/13 v2.3 %% -%% Copyright (C) 2006, 2007, 2008 by +%% Copyright (C) 2006-2008, 2011 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -34,7 +34,7 @@ %% \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{hypdestopt}% - [2008/08/08 v2.2 Hyperref destination optimizer (HO)]% + [2011/05/13 v2.3 Hyperref destination optimizer (HO)]% \newif\ifHypDest@Verbose \DeclareOption{verbose}{\HypDest@Verbosetrue} \def\HypDest@VerboseInfo#1{% @@ -72,7 +72,8 @@ \ifHypDest@name \RequirePackage{alphalph}[2006/05/30]% \fi -\RequirePackage{auxhook} +\RequirePackage{auxhook}[2009/12/14] +\RequirePackage{pdfescape}[2007/04/21] \long\def\HypDest@PrependDocument#1{% \begingroup \toks\z@{#1}% @@ -176,29 +177,36 @@ \ifHypDest@name \let\HypDest@Org@DestName\Hy@DestName \renewcommand*{\Hy@DestName}[2]{% - \@ifundefined{\HypDest@Prefix#1}{% + \EdefUnescapeString\HypDest@temp{#1}% + \@ifundefined{\HypDest@Prefix\HypDest@temp}{% \HypDest@VerboseInfo{% - DestName: (#1) unused% + DestName: (\HypDest@temp) unused% }% }{% - \HypDest@Org@DestName{\csname\HypDest@Prefix#1\endcsname}{#2}% + \HypDest@Org@DestName{% + \csname\HypDest@Prefix\HypDest@temp\endcsname + }{#2}% \HypDest@VerboseInfo{% - DestName: (#1) % - 0x\pdf@escapehex{\csname\HypDest@Prefix#1\endcsname}% + DestName: (\HypDest@temp) % + 0x\pdf@escapehex{% + \csname\HypDest@Prefix\HypDest@temp\endcsname + }% }% }% }% \else \renewcommand*{\Hy@DestName}[2]{% - \@ifundefined{\HypDest@Prefix#1}{% + \EdefUnescapeString\HypDest@temp{#1}% + \@ifundefined{\HypDest@Prefix\HypDest@temp}{% \HypDest@VerboseInfo{% - DestName: (#1) unused% + DestName: (\HypDest@temp) unused% }% }{% - \pdfdest num\csname\HypDest@Prefix#1\endcsname#2\relax + \pdfdest num% + \csname\HypDest@Prefix\HypDest@temp\endcsname#2\relax \HypDest@VerboseInfo{% - DestName: (#1) % - num \csname\HypDest@Prefix#1\endcsname + DestName: (\HypDest@temp) % + num \csname\HypDest@Prefix\HypDest@temp\endcsname }% }% }% @@ -264,7 +272,11 @@ \@ifundefined{\HypDest@Prefix#2}{% \edef#1{goto name{hypdestopt\string :unknown}}% }{% - \edef#1{goto num\csname\HypDest@Prefix#2\endcsname}% + \ifHypDest@name + \edef#1{goto name{\csname\HypDest@Prefix#2\endcsname}}% + \else + \edef#1{goto num\csname\HypDest@Prefix#2\endcsname}% + \fi }% }% \def\BKM@HypDestOptHook{% |