summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/oberdiek/bkm-pdftex.def
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/oberdiek/bkm-pdftex.def')
-rw-r--r--Master/texmf-dist/tex/latex/oberdiek/bkm-pdftex.def19
1 files changed, 13 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/oberdiek/bkm-pdftex.def b/Master/texmf-dist/tex/latex/oberdiek/bkm-pdftex.def
index fc1c27095a3..de2df5044b5 100644
--- a/Master/texmf-dist/tex/latex/oberdiek/bkm-pdftex.def
+++ b/Master/texmf-dist/tex/latex/oberdiek/bkm-pdftex.def
@@ -31,7 +31,7 @@
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesFile{bkm-pdftex.def}%
- [2007/03/03 v0.6 bookmark driver for pdftex (HO)]
+ [2007/04/09 v0.8 bookmark driver for pdfTeX (HO)]%
\def\BKM@DO@entry#1#2{%
\begingroup
\setkeys{BKM@DO}{#1}%
@@ -98,7 +98,7 @@
\ifx\BKM@DO@page\@empty
\def\BKM@DO@page{0}%
\else
- \edef\BKM@DO@page{\the\numexpr\BKM@DO@page-1\relax}%
+ \BKM@CalcExpr\BKM@DO@page\BKM@DO@page-1%
\fi
\ifx\BKM@DO@view\@empty
\def\BKM@DO@view{Fit}%
@@ -160,10 +160,9 @@
{\BKM@prev}{\BKM@level}0%
}%
\ifnum\BKM@prev>\z@
+ \BKM@CalcExpr\BKM@CalcResult\BKM@x@childs+1%
\expandafter\xdef\csname BKM@\BKM@prev\endcsname{%
- {\BKM@x@parent}{\BKM@x@level}{%
- \the\numexpr\BKM@x@childs+1\relax
- }%
+ {\BKM@x@parent}{\BKM@x@level}{\BKM@CalcResult}%
}%
\fi
\BKM@swfalse
@@ -173,7 +172,7 @@
\fi
}%
\pdfstringdef\BKM@title{#2}%
- \edef\BKM@FLAGS{\printflags{BKM@style}}%
+ \edef\BKM@FLAGS{\BKM@PrintStyle}%
\BKM@EscapeHex\BKM@dest
\BKM@EscapeHex\BKM@uri
\BKM@EscapeHex\BKM@gotor
@@ -229,6 +228,14 @@
\AtBeginDocument{%
\let\BKM@entry\BKM@DO@entry
}
+\ifBKM@atend
+ \AtBeginDocument{%
+ \AtEndDocument{%
+ \clearpage
+ \BKM@EndHook
+ }%
+ }%
+\fi
\endinput
%%
%% End of file `bkm-pdftex.def'.