summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/oberdiek/bookmark.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/oberdiek/bookmark.dtx')
-rw-r--r--Master/texmf-dist/source/latex/oberdiek/bookmark.dtx63
1 files changed, 36 insertions, 27 deletions
diff --git a/Master/texmf-dist/source/latex/oberdiek/bookmark.dtx b/Master/texmf-dist/source/latex/oberdiek/bookmark.dtx
index a0123f4faa4..440ab0c7a53 100644
--- a/Master/texmf-dist/source/latex/oberdiek/bookmark.dtx
+++ b/Master/texmf-dist/source/latex/oberdiek/bookmark.dtx
@@ -76,7 +76,7 @@
\input docstrip.tex
\Msg{************************************************************************}
\Msg{* Installation}
-\Msg{* Package: bookmark 2009/08/13 v1.5 PDF bookmarks (HO)}
+\Msg{* Package: bookmark 2009/12/07 v1.7 PDF bookmarks (HO)}
\Msg{************************************************************************}
\keepsilent
@@ -155,7 +155,7 @@ and the derived files
%<*driver>
\NeedsTeXFormat{LaTeX2e}
\ProvidesFile{bookmark.drv}%
- [2009/08/13 v1.5 PDF bookmarks (HO)]%
+ [2009/12/07 v1.7 PDF bookmarks (HO)]%
\documentclass{ltxdoc}
\usepackage{holtxdoc}[2008/08/11]
\begin{document}
@@ -164,7 +164,7 @@ and the derived files
%</driver>
% \fi
%
-% \CheckSum{1946}
+% \CheckSum{1945}
%
% \CharacterTable
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -185,7 +185,7 @@ and the derived files
% \GetFileInfo{bookmark.drv}
%
% \title{The \xpackage{bookmark} package}
-% \date{2009/08/13 v1.5}
+% \date{2009/12/07 v1.7}
% \author{Heiko Oberdiek\\\xemail{oberdiek@uni-freiburg.de}}
%
% \maketitle
@@ -461,12 +461,11 @@ and the derived files
%
% Some drivers
% (\xoption{pdftex}, \xoption{dvips}, \xoption{dvipsone},
-% \xoption{textures})
-% uses \LaTeX's \cs{AtEndDocument} for this purpose.
+% \xoption{textures}) use package \xpackage{atveryend}'s
+% for this purpose. \cs{AtEndDocument} is too early,
+% the last page might not been shipped out. Because the \xext{.aux}
+% file is needed, these drivers use \cs{AfterLastShipout}.
%
-% However \cs{AtEndDocument} cannot be used in general.
-% The last page can already be finished if the hook
-% of \cs{AtEndDocument} is called.
% The implementation of the other drivers
% (\xoption{dvipdfm}, \xoption{xetex}, \xoption{vtex})
% depends on
@@ -502,7 +501,7 @@ and the derived files
open,
openlevel=2,
atend
-]{bookmark}[2009/08/13]
+]{bookmark}[2009/12/07]
\bookmarksetup{color=blue}
@@ -605,7 +604,7 @@ and the derived files
%<*package>
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{bookmark}%
- [2009/08/13 v1.5 PDF bookmarks (HO)]%
+ [2009/12/07 v1.7 PDF bookmarks (HO)]%
% \end{macrocode}
%
% \subsubsection{Requirements}
@@ -1218,7 +1217,7 @@ and the derived files
%<*dvipdfm>
\NeedsTeXFormat{LaTeX2e}
\ProvidesFile{bkm-dvipdfm.def}%
- [2009/08/13 v1.5 bookmark driver for dvipdfm (HO)]%
+ [2009/12/07 v1.7 bookmark driver for dvipdfm (HO)]%
% \end{macrocode}
%
% \begin{macrocode}
@@ -1383,7 +1382,7 @@ and the derived files
%<*vtex>
\NeedsTeXFormat{LaTeX2e}
\ProvidesFile{bkm-vtex.def}%
- [2009/08/13 v1.5 bookmark driver for VTeX (HO)]%
+ [2009/12/07 v1.7 bookmark driver for VTeX (HO)]%
% \end{macrocode}
%
% \begin{macrocode}
@@ -1668,7 +1667,7 @@ and the derived files
%<*pdftex>
\NeedsTeXFormat{LaTeX2e}
\ProvidesFile{bkm-pdftex.def}%
- [2009/08/13 v1.5 bookmark driver for pdfTeX (HO)]%
+ [2009/12/07 v1.7 bookmark driver for pdfTeX (HO)]%
% \end{macrocode}
%
% \begin{macrocode}
@@ -1789,7 +1788,7 @@ and the derived files
%<*dvips>
\NeedsTeXFormat{LaTeX2e}
\ProvidesFile{bkm-dvips.def}%
- [2009/08/13 v1.5 bookmark driver for dvips (HO)]%
+ [2009/12/07 v1.7 bookmark driver for dvips (HO)]%
% \end{macrocode}
% \begin{macrocode}
\def\BKM@PSHeaderFile#1{%
@@ -1804,7 +1803,7 @@ and the derived files
%<*dvipsone>
\NeedsTeXFormat{LaTeX2e}
\ProvidesFile{bkm-dvipsone.def}%
- [2009/08/13 v1.5 bookmark driver for dvipsone (HO)]%
+ [2009/12/07 v1.7 bookmark driver for dvipsone (HO)]%
% \end{macrocode}
% \begin{macrocode}
\def\BKM@PSHeaderFile#1{%
@@ -1819,7 +1818,7 @@ and the derived files
%<*textures>
\NeedsTeXFormat{LaTeX2e}
\ProvidesFile{bkm-textures.def}%
- [2009/08/13 v1.5 bookmark driver for textures (HO)]%
+ [2009/12/07 v1.7 bookmark driver for textures (HO)]%
% \end{macrocode}
% \begin{macrocode}
\def\BKM@PSHeaderFile#1{%
@@ -1837,9 +1836,12 @@ and the derived files
% \end{macrocode}
%
% \begin{macrocode}
-\AtEndDocument{\BKM@pdfmark@out}
+\RequirePackage{atveryend}[2009/12/07]
+\AfterLastShipout{\BKM@pdfmark@out}
% \end{macrocode}
%
+% Do not use package \xpackage{rerunfilecheck} here, because
+% the file \cs{BMK@filename} is not read during the \TeX\ run.
% \begin{macrocode}
\def\BKM@pdfmark@out{%
\if@filesw
@@ -2170,10 +2172,11 @@ and the derived files
%</package>
% \end{macrocode}
%
-% \subsubsection{Drivers using \cs{AtEndDocument}}
+% \subsubsection{Drivers using hooks at end of document}
%
-% \cs{AtEndDocument} can be used, if the implementation
-% of \cs{bookmark} does not depend on \cs{special}:
+% The following drivers use package \xpackage{atveryend}'s
+% \cs{AfterLastShipout}, because they still need the
+% \xext{.aux} file.
% \begin{itemize}
% \item
% Driver \xoption{pdftex} uses \cs{pdfoutline} that can
@@ -2182,16 +2185,13 @@ and the derived files
% PostScript drivers such as
% \xoption{dvips} use an external PostScript header file
% for the bookmarks. File writing can be done after
-% the last shipout page, thus \cs{AtEndDocument} works.
+% the last shipout page, but before the \xext{.aux} file is closed.
% \end{itemize}
% \begin{macrocode}
%<*pdftex|pdfmark>
\ifBKM@atend
- \AtBeginDocument{%
- \AtEndDocument{%
- \clearpage
- \BKM@EndHook
- }%
+ \AfterLastShipout{%
+ \BKM@EndHook
}%
\fi
%</pdftex|pdfmark>
@@ -2495,6 +2495,15 @@ and the derived files
% Except for driver options the other options are now local options.
% This resolves a problem with KOMA-Script v3.00 and its option \xoption{open}.
% \end{Version}
+% \begin{Version}{2009/12/06 v1.6}
+% \item
+% Use of package \xpackage{atveryend} for drivers \xoption{pdftex}
+% and \xoption{pdfmark}.
+% \end{Version}
+% \begin{Version}{2009/12/07 v1.7}
+% \item
+% Use of package \xpackage{atveryend} fixed.
+% \end{Version}
% \end{History}
%
% \PrintIndex