summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/oberdiek/bkm-dvips.def
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/oberdiek/bkm-dvips.def')
-rw-r--r--Master/texmf-dist/tex/latex/oberdiek/bkm-dvips.def19
1 files changed, 13 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/oberdiek/bkm-dvips.def b/Master/texmf-dist/tex/latex/oberdiek/bkm-dvips.def
index 6a5780fb7b2..28ec17e007f 100644
--- a/Master/texmf-dist/tex/latex/oberdiek/bkm-dvips.def
+++ b/Master/texmf-dist/tex/latex/oberdiek/bkm-dvips.def
@@ -31,7 +31,7 @@
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesFile{bkm-dvips.def}%
- [2007/03/03 v0.6 bookmark driver for dvips (HO)]
+ [2007/04/09 v0.8 bookmark driver for dvips (HO)]%
\def\BKM@PSHeaderFile#1{%
\special{header=#1}%
}
@@ -49,7 +49,7 @@
/pdfmark/cleartomark load put%
}%
}%
- \BKM@write{ifelse}
+ \BKM@write{ifelse}%
}
\def\BKM@write#{%
\immediate\write\BKM@file
@@ -202,10 +202,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
@@ -215,7 +214,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
@@ -271,6 +270,14 @@
\AtBeginDocument{%
\let\BKM@entry\BKM@DO@entry
}
+\ifBKM@atend
+ \AtBeginDocument{%
+ \AtEndDocument{%
+ \clearpage
+ \BKM@EndHook
+ }%
+ }%
+\fi
\endinput
%%
%% End of file `bkm-dvips.def'.