diff options
author | Karl Berry <karl@freefriends.org> | 2008-08-12 16:59:55 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2008-08-12 16:59:55 +0000 |
commit | 348079a31598380a51e21040f0dada4dc6e93aca (patch) | |
tree | e66f283e09cb09c5b37495797484ca3be525b224 /Master/texmf-dist/tex/latex/oberdiek/bookmark.sty | |
parent | 62f803de0aae0063638a5647459d9ce23ae6ec66 (diff) |
oberdiek update (11aug08)
git-svn-id: svn://tug.org/texlive/trunk@10278 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/oberdiek/bookmark.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/oberdiek/bookmark.sty | 66 |
1 files changed, 21 insertions, 45 deletions
diff --git a/Master/texmf-dist/tex/latex/oberdiek/bookmark.sty b/Master/texmf-dist/tex/latex/oberdiek/bookmark.sty index 64417add9b8..024e9a583b2 100644 --- a/Master/texmf-dist/tex/latex/oberdiek/bookmark.sty +++ b/Master/texmf-dist/tex/latex/oberdiek/bookmark.sty @@ -8,7 +8,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 @@ -31,8 +31,7 @@ %% \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{bookmark}% - [2007/09/25 v1.2 PDF bookmarks (HO)]% -\newif\ifBKM@WithFlags + [2008/08/08 v1.3 PDF bookmarks (HO)]% \begingroup\expandafter\expandafter\expandafter\endgroup \expandafter\ifx\csname numexpr\endcsname\relax \def\BKM@CalcExpr#1#2#3#4{% @@ -44,14 +43,12 @@ }% \x }% - \BKM@WithFlagsfalse \else \def\BKM@CalcExpr#1#2#3#4{% \edef#1{% \the\numexpr#2#3#4\relax }% }% - \BKM@WithFlagstrue \fi \RequirePackage{pdfescape}[2007/03/20] \def\BKM@EscapeName#1{% @@ -82,9 +79,7 @@ \RequirePackage{auxhook} \RequirePackage{kvoptions} \RequirePackage{hycolor} -\ifBKM@WithFlags - \RequirePackage{flags}% -\fi +\RequirePackage{bitset} \SetupKeyvalOptions{family=BKM,prefix=BKM@} \newcommand*{\bookmarksetup}{\setkeys{BKM}} \DeclareBoolOption[\ifHy@bookmarksopen true\else false\fi]{open} @@ -168,43 +163,24 @@ \BKM@PatchHyperrefOption{bookmarksopen}{open} \BKM@PatchHyperrefOption{bookmarksopenlevel}{openlevel} \BKM@PatchHyperrefOption{bookmarksdepth}{depth} -\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}% +}% \define@key{BKM}{color}{% \HyColor@BookmarkColor{#1}\BKM@color{bookmark}{color}% } |