diff options
author | Karl Berry <karl@freefriends.org> | 2009-11-16 01:43:15 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2009-11-16 01:43:15 +0000 |
commit | faaa36262649a67fb85d27b3e605d94da0b75fa4 (patch) | |
tree | f12854652616632c4733ad854294bb580f8f2365 /Master/texmf-dist/tex/latex/hyperref/hvtex.def | |
parent | 860f96fed59d8da7fe4422b5a8c0c1dcea518d90 (diff) |
hyperref update (15nov09)
git-svn-id: svn://tug.org/texlive/trunk@16022 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/hyperref/hvtex.def')
-rw-r--r-- | Master/texmf-dist/tex/latex/hyperref/hvtex.def | 52 |
1 files changed, 50 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/hyperref/hvtex.def b/Master/texmf-dist/tex/latex/hyperref/hvtex.def index a8d0d6ad4cf..c6ce7b73400 100644 --- a/Master/texmf-dist/tex/latex/hyperref/hvtex.def +++ b/Master/texmf-dist/tex/latex/hyperref/hvtex.def @@ -24,7 +24,7 @@ %% given in the file `manifest.txt'. %% \ProvidesFile{hvtex.def} - [2009/10/09 v6.79a + [2009/11/14 v6.79e Hyperref driver for VTeX in PDF/PS mode] \providecommand*{\XR@ext}{pdf} \edef\Hy@VTeXversion{% @@ -71,7 +71,7 @@ \AtEndDocument{\clearpage\HyPL@SetPageLabels}% }% \fi -\RequirePackage{pdftexcmds}[2007/11/11] +\RequirePackage{pdftexcmds}[2009/04/10] \begingroup\expandafter\expandafter\expandafter\endgroup \expandafter\ifx\csname pdf@escapestring\endcsname\relax \begingroup @@ -637,15 +637,18 @@ \fi \pdfstringdef\Hy@tempa{#2}% \if@filesw + \stepcounter{bookmark@seq@number}% \protected@write\@outlinefile{}{% \protect\BOOKMARK [\Hy@level][\@bookmarkopenstatus{\Hy@level}]{#3}% {\Hy@tempa}{\Hy@tempb}% + \@percentchar\space\thebookmark@seq@number }% \fi \fi \endgroup } +\newcounter{bookmark@seq@number} \newcommand{\currentpdfbookmark}{% \pdfbookmark[\Hy@currentbookmarklevel]% } @@ -667,6 +670,50 @@ } \def\BOOKMARK{\@ifnextchar[{\@BOOKMARK}{\@@BOOKMARK[1][-]}} \def\@BOOKMARK[#1]{\@ifnextchar[{\@@BOOKMARK[#1]}{\@@BOOKMARK[#1][-]}} +\def\Hy@OutlineRerunCheck{% + \begingroup + \xdef\Hy@OutlineCheckSumBefore{% + \@ifundefined{pdf@filemdfivesum}{}{% + \pdf@filemdfivesum{\jobname.out}% + }% + :% + \@ifundefined{pdf@filesize}{}{% + \pdf@filesize{\jobname.out}% + }% + }% + \endgroup + \AtEndDocument{% + \clearpage + \if@filesw + \immediate\write\@mainaux{% + \string\csname\space Hy@OutlineCheckEnd\string\endcsname + }% + \fi + }% +} +\AtBeginDocument{% + \def\Hy@OutlineCheckEnd{% + \begingroup + \immediate\closeout\@outlinefile + \edef\Hy@OutlineCheckSumAfter{% + \@ifundefined{pdf@filemdfivesum}{}{% + \pdf@filemdfivesum{\jobname.out}% + }% + :% + \@ifundefined{pdf@filesize}{}{% + \pdf@filesize{\jobname.out}% + }% + }% + \ifx\Hy@OutlineCheckSumBefore\Hy@OutlineCheckSumAfter + \else + \Hy@WarningNoLine{% + Rerun to get outlines right\MessageBreak + or use package `bookmark'% + }% + \fi + \endgroup + }% +} \newcount\@serial@counter\@serial@counter=1\relax \begingroup \catcode`\'=12 % @@ -749,6 +796,7 @@ \else \if@filesw \newwrite\@outlinefile + \Hy@OutlineRerunCheck \immediate\openout\@outlinefile=\jobname.out\relax \ifHy@typexml \immediate\write\@outlinefile{<relaxxml>\relax}% |