diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/oberdiek/bookmark.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/oberdiek/bookmark.dtx | 113 |
1 files changed, 53 insertions, 60 deletions
diff --git a/Master/texmf-dist/source/latex/oberdiek/bookmark.dtx b/Master/texmf-dist/source/latex/oberdiek/bookmark.dtx index 9ebf6ad6198..bf11db3fb59 100644 --- a/Master/texmf-dist/source/latex/oberdiek/bookmark.dtx +++ b/Master/texmf-dist/source/latex/oberdiek/bookmark.dtx @@ -1,6 +1,6 @@ % \iffalse meta-comment % -% Copyright (C) 2007 by Heiko Oberdiek <oberdiek@uni-freiburg.de> +% Copyright (C) 2007, 2008 by Heiko Oberdiek <oberdiek@uni-freiburg.de> % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either @@ -76,7 +76,7 @@ \input docstrip.tex \Msg{************************************************************************} \Msg{* Installation} -\Msg{* Package: bookmark 2007/09/25 v1.2 PDF bookmarks (HO)} +\Msg{* Package: bookmark 2008/08/08 v1.3 PDF bookmarks (HO)} \Msg{************************************************************************} \keepsilent @@ -87,7 +87,7 @@ This is a generated file. -Copyright (C) 2007 by Heiko Oberdiek <oberdiek@uni-freiburg.de> +Copyright (C) 2007, 2008 by Heiko Oberdiek <oberdiek@uni-freiburg.de> This work may be distributed and/or modified under the conditions of the LaTeX Project Public License, either @@ -155,16 +155,16 @@ and the derived files %<*driver> \NeedsTeXFormat{LaTeX2e} \ProvidesFile{bookmark.drv}% - [2007/09/25 v1.2 PDF bookmarks (HO)]% + [2008/08/08 v1.3 PDF bookmarks (HO)]% \documentclass{ltxdoc} -\usepackage{holtxdoc}[2007/11/11] +\usepackage{holtxdoc}[2008/08/11] \begin{document} \DocInput{bookmark.dtx}% \end{document} %</driver> % \fi % -% \CheckSum{1962} +% \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{2007/09/25 v1.2} +% \date{2008/08/08 v1.3} % \author{Heiko Oberdiek\\\xemail{oberdiek@uni-freiburg.de}} % % \maketitle @@ -502,7 +502,7 @@ and the derived files open, openlevel=2, atend -]{bookmark}[2007/09/25] +]{bookmark}[2008/08/08] \bookmarksetup{color=blue} @@ -605,7 +605,7 @@ and the derived files %<*package> \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{bookmark}% - [2007/09/25 v1.2 PDF bookmarks (HO)]% + [2008/08/08 v1.3 PDF bookmarks (HO)]% % \end{macrocode} % % \subsubsection{Requirements} @@ -613,7 +613,6 @@ and the derived files % \paragraph{\eTeX.} % % \begin{macrocode} -\newif\ifBKM@WithFlags \begingroup\expandafter\expandafter\expandafter\endgroup \expandafter\ifx\csname numexpr\endcsname\relax \def\BKM@CalcExpr#1#2#3#4{% @@ -625,14 +624,12 @@ and the derived files }% \x }% - \BKM@WithFlagsfalse \else \def\BKM@CalcExpr#1#2#3#4{% \edef#1{% \the\numexpr#2#3#4\relax }% }% - \BKM@WithFlagstrue \fi % \end{macrocode} % @@ -673,9 +670,7 @@ and the derived files \RequirePackage{auxhook} \RequirePackage{kvoptions} \RequirePackage{hycolor} -\ifBKM@WithFlags - \RequirePackage{flags}% -\fi +\RequirePackage{bitset} % \end{macrocode} % % \subsubsection{Package options} @@ -779,43 +774,24 @@ and the derived files % \paragraph{Style options.} % % \begin{macrocode} -\ifBKM@WithFlags - \expandafter\@firstoftwo -\else - \expandafter\@secondoftwo -\fi -{% - \resetflags{BKM@style}% - \define@key{BKM}{italic}[true]{% - \expandafter\ifx\csname if#1\endcsname\iftrue - \setflag{BKM@style}{1}% - \else - \clearflag{BKM@style}{1}% - \fi - }% - \define@key{BKM}{bold}[true]{% - \expandafter\ifx\csname if#1\endcsname\iftrue - \setflag{BKM@style}{2}% - \else - \clearflag{BKM@style}{2}% - \fi - }% - \def\BKM@PrintStyle{% - \printflags{BKM@style}% - }% -}{% - \def\BKM@temp#1{% - \define@key{BKM}{#1}[true]{% - \PackageWarning{bookmark}{% - Option `#1' is not available\MessageBreak - because of missing e-TeX% - }% - }% - }% - \BKM@temp{italic}% - \BKM@temp{bold}% - \def\BKM@PrintStyle{0}% -} +\bitsetReset{BKM@style}% +\define@key{BKM}{italic}[true]{% + \expandafter\ifx\csname if#1\endcsname\iftrue + \bitsetSet{BKM@style}{1}% + \else + \bitsetClear{BKM@style}{1}% + \fi +}% +\define@key{BKM}{bold}[true]{% + \expandafter\ifx\csname if#1\endcsname\iftrue + \bitsetSet{BKM@style}{2}% + \else + \bitsetClear{BKM@style}{2}% + \fi +}% +\def\BKM@PrintStyle{% + \bitsetGetDec{BKM@style}% +}% % \end{macrocode} % % \paragraph{Options for color.} @@ -1219,7 +1195,7 @@ and the derived files %<*dvipdfm> \NeedsTeXFormat{LaTeX2e} \ProvidesFile{bkm-dvipdfm.def}% - [2007/09/25 v1.2 bookmark driver for dvipdfm (HO)]% + [2008/08/08 v1.3 bookmark driver for dvipdfm (HO)]% % \end{macrocode} % % \begin{macrocode} @@ -1384,7 +1360,7 @@ and the derived files %<*vtex> \NeedsTeXFormat{LaTeX2e} \ProvidesFile{bkm-vtex.def}% - [2007/09/25 v1.2 bookmark driver for VTeX (HO)]% + [2008/08/08 v1.3 bookmark driver for VTeX (HO)]% % \end{macrocode} % % \begin{macrocode} @@ -1669,7 +1645,7 @@ and the derived files %<*pdftex> \NeedsTeXFormat{LaTeX2e} \ProvidesFile{bkm-pdftex.def}% - [2007/09/25 v1.2 bookmark driver for pdfTeX (HO)]% + [2008/08/08 v1.3 bookmark driver for pdfTeX (HO)]% % \end{macrocode} % % \begin{macrocode} @@ -1731,8 +1707,7 @@ and the derived files \fi \else \BKM@UnescapeHex\BKM@DO@dest - \BKM@EscapeString\BKM@DO@dest - \edef\BKM@action{goto name{\BKM@DO@dest}}% + \BKM@DefGotoNameAction\BKM@action\BKM@DO@dest \fi \else \ifx\BKM@DO@dest\@empty @@ -1768,6 +1743,16 @@ and the derived files \endgroup } % \end{macrocode} +% \begin{macro}{\BKM@DefGotoNameAction} +% Macro \cs{BKM@DefGotoNameAction} is a hook for +% package \xpackage{hypdestopt}. +% \begin{macrocode} +\def\BKM@DefGotoNameAction#1#2{% + \BKM@EscapeString\BKM@DO@dest + \edef#1{goto name{#2}}% +} +% \end{macrocode} +% \end{macro} % % \begin{macrocode} %</pdftex> @@ -1781,7 +1766,7 @@ and the derived files %<*dvips> \NeedsTeXFormat{LaTeX2e} \ProvidesFile{bkm-dvips.def}% - [2007/09/25 v1.2 bookmark driver for dvips (HO)]% + [2008/08/08 v1.3 bookmark driver for dvips (HO)]% % \end{macrocode} % \begin{macrocode} \def\BKM@PSHeaderFile#1{% @@ -1796,7 +1781,7 @@ and the derived files %<*dvipsone> \NeedsTeXFormat{LaTeX2e} \ProvidesFile{bkm-dvipsone.def}% - [2007/09/25 v1.2 bookmark driver for dvipsone (HO)]% + [2008/08/08 v1.3 bookmark driver for dvipsone (HO)]% % \end{macrocode} % \begin{macrocode} \def\BKM@PSHeaderFile#1{% @@ -1811,7 +1796,7 @@ and the derived files %<*textures> \NeedsTeXFormat{LaTeX2e} \ProvidesFile{bkm-textures.def}% - [2007/09/25 v1.2 bookmark driver for textures (HO)]% + [2008/08/08 v1.3 bookmark driver for textures (HO)]% % \end{macrocode} % \begin{macrocode} \def\BKM@PSHeaderFile#1{% @@ -2048,6 +2033,7 @@ and the derived files }% \pdfstringdef\BKM@title{#2}% \edef\BKM@FLAGS{\BKM@PrintStyle}% + \csname BKM@HypDestOptHook\endcsname \BKM@EscapeHex\BKM@dest \BKM@EscapeHex\BKM@uri \BKM@EscapeHex\BKM@gotor @@ -2468,6 +2454,13 @@ and the derived files % \item % pdfmark driver respects \cs{nofiles}. % \end{Version} +% \begin{Version}{2008/08/08 v1.3} +% \item +% Package \xpackage{flags} replaced by package \xpackage{bitset}. +% Now flags are also supported without \eTeX. +% \item +% Hook for package \xpackage{hypdestopt} added. +% \end{Version} % \end{History} % % \PrintIndex |