summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/hyperref/hvtex.def
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/hyperref/hvtex.def')
-rw-r--r--Master/texmf-dist/tex/latex/hyperref/hvtex.def79
1 files changed, 64 insertions, 15 deletions
diff --git a/Master/texmf-dist/tex/latex/hyperref/hvtex.def b/Master/texmf-dist/tex/latex/hyperref/hvtex.def
index 071adb323ea..f32c33fe57c 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/03/19 v6.80r
+ [2010/03/30 v6.80u
Hyperref driver for VTeX in PDF/PS mode]
\providecommand*{\XR@ext}{pdf}
\edef\Hy@VTeXversion{%
@@ -155,7 +155,7 @@
\fi
}%
}%
- \AtBeginDocument{\VTeXInitMediaSize}%
+ \Hy@AtBeginDocument{\VTeXInitMediaSize}%
\fi
\Hy@DisableOption{setpagesize}%
\fi
@@ -657,6 +657,7 @@
\fi
\HyPsd@XeTeXBigCharstrue
\pdfstringdef\Hy@tempa{#2}%
+ \HyPsd@SanitizeForOutFile\Hy@tempa
\if@filesw
\stepcounter{bookmark@seq@number}%
\@ifundefined{@outlinefile}{%
@@ -673,6 +674,55 @@
\endgroup
}
\newcounter{bookmark@seq@number}
+\begingroup
+ \lccode`(=`{%
+ \lccode`)=`}%
+ \lccode`1=\z@
+ \lccode`2=\z@
+ \lccode`3=\z@
+ \lccode`5=\z@
+ \lccode`7=\z@
+ \lccode`\#=\z@
+ \lccode`\`=\z@
+ \lccode`\{=\z@
+ \lccode`\}=\z@
+\lowercase{%
+ \endgroup
+ \def\HyPsd@SanitizeForOutFile#1{%
+ \@onelevel@sanitize\Hy@tempa
+ \escapechar`\\%
+ \edef\Hy@tempa{%
+ \expandafter\HyPsd@SanitizeOut@BraceLeft\Hy@tempa(\@nil
+ }%
+ \edef\Hy@tempa{%
+ \expandafter\HyPsd@SanitizeOut@BraceRight\Hy@tempa)\@nil
+ }%
+ }%
+ \def\HyPsd@SanitizeOut@BraceLeft#1(#2\@nil{%
+ #1%
+ \ifx\\#2\\%
+ \expandafter\ltx@gobble
+ \else
+ \expandafter\ltx@firstofone
+ \fi
+ {%
+ \string\173%
+ \HyPsd@SanitizeOut@BraceLeft#2\@nil
+ }%
+ }%
+ \def\HyPsd@SanitizeOut@BraceRight#1)#2\@nil{%
+ #1%
+ \ifx\\#2\\%
+ \expandafter\ltx@gobble
+ \else
+ \expandafter\ltx@firstofone
+ \fi
+ {%
+ \string\175%
+ \HyPsd@SanitizeOut@BraceRight#2\@nil
+ }%
+ }%
+}
\newcommand{\currentpdfbookmark}{%
\pdfbookmark[\Hy@currentbookmarklevel]%
}
@@ -780,11 +830,16 @@
\def\({(}%
\def\){)}%
\def\do##1{%
- \ifnum\the\catcode`##1=\active
+ \ifnum\catcode`##1=\active
\@makeother##1%
+ \else
+ \ifnum\catcode`##1=6 %
+ \@makeother##1%
+ \fi
\fi
}%
\dospecials
+ \Hy@safe@activestrue
\InputIfFileExists{\jobname.out}{}{}%
\endgroup
\ifx\WriteBookmarks\relax
@@ -821,8 +876,7 @@
}
\let\H@old@ssect\@ssect
\def\@ssect#1#2#3#4#5{%
- \Hy@GlobalStepCount\Hy@linkcounter
- \xdef\@currentHref{section*.\the\Hy@linkcounter}%
+ \Hy@MakeCurrentHrefAuto{section*}%
\setlength{\Hy@SectionHShift}{#1}%
\begingroup
\toks@{\H@old@ssect{#1}{#2}{#3}{#4}}%
@@ -838,8 +892,7 @@
\def\@schapter#1{%
\begingroup
\let\@mkboth\@gobbletwo
- \Hy@GlobalStepCount\Hy@linkcounter
- \xdef\@currentHref{\Hy@chapapp*.\the\Hy@linkcounter}%
+ \Hy@MakeCurrentHrefAuto{\Hy@chapapp*}%
\Hy@raisedlink{%
\hyper@anchorstart{\@currentHref}\hyper@anchorend
}%
@@ -850,8 +903,7 @@
\let\Hy@org@chapter\@chapter
\def\@chapter{%
\def\Hy@next{%
- \Hy@GlobalStepCount\Hy@linkcounter
- \xdef\@currentHref{\Hy@chapapp*.\the\Hy@linkcounter}%
+ \Hy@MakeCurrentHrefAuto{\Hy@chapapp*}%
\Hy@raisedlink{%
\hyper@anchorstart{\@currentHref}\hyper@anchorend
}%
@@ -881,8 +933,7 @@
}
\let\H@old@spart\@spart
\def\@spart#1{%
- \Hy@GlobalStepCount\Hy@linkcounter
- \xdef\@currentHref{part*.\the\Hy@linkcounter}%
+ \Hy@MakeCurrentHrefAuto{part*}%
\Hy@raisedlink{%
\hyper@anchorstart{\@currentHref}\hyper@anchorend
}%
@@ -896,8 +947,7 @@
\expandafter\@secondoftwo
\fi
{%
- \Hy@GlobalStepCount\Hy@linkcounter
- \xdef\@currentHref{section*.\the\Hy@linkcounter}%
+ \Hy@MakeCurrentHrefAuto{section*}%
\setlength{\Hy@SectionHShift}{#3}%
\begingroup
\toks@{\H@old@sect{#1}{#2}{#3}{#4}{#5}{#6}[{#7}]}%
@@ -931,8 +981,7 @@
\fi
\addtocontents{lof}{\protect\addvspace{10\p@}}%
\addtocontents{lot}{\protect\addvspace{10\p@}}%
- \Hy@GlobalStepCount\Hy@linkcounter
- \xdef\@currentHref{\Hy@chapapp*.\the\Hy@linkcounter}%
+ \Hy@MakeCurrentHrefAuto{\Hy@chapapp*}%
\Hy@raisedlink{%
\hyper@anchorstart{\@currentHref}\hyper@anchorend
}%