diff options
author | Karl Berry <karl@freefriends.org> | 2007-06-01 16:58:52 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2007-06-01 16:58:52 +0000 |
commit | 4d027ddb699c57025992eccbdd3cef0ec2836ee1 (patch) | |
tree | 7c9a8e252aa5133aa4c986aa37af12b8484ec44b /Master/texmf-dist/source/latex/hyperref/bmhydoc.sty | |
parent | ab8a652a0280de02179bbbdd79296f2bbd4073f7 (diff) |
hyperref update (30may07)
git-svn-id: svn://tug.org/texlive/trunk@4399 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/hyperref/bmhydoc.sty')
-rw-r--r-- | Master/texmf-dist/source/latex/hyperref/bmhydoc.sty | 59 |
1 files changed, 32 insertions, 27 deletions
diff --git a/Master/texmf-dist/source/latex/hyperref/bmhydoc.sty b/Master/texmf-dist/source/latex/hyperref/bmhydoc.sty index 15f183128b0..dc9d5d847fa 100644 --- a/Master/texmf-dist/source/latex/hyperref/bmhydoc.sty +++ b/Master/texmf-dist/source/latex/hyperref/bmhydoc.sty @@ -1,6 +1,6 @@ \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{bmhydoc} - [2006/02/08 Bookmark section with hyperref documentation (HO)] + [2007/03/19 Bookmark section with hyperref documentation (HO)] % This package adds bookmark entries that are added at the end % and lists and links the PDF files of the hyperref documentation. @@ -13,36 +13,41 @@ % 2006/02/08 % * Comments added % * \HyperrefOverview +% 2007/03/19 +% * Use package bookmark that also support other drivers +% than pdfTeX. -\RequirePackage{ifpdf} -\ifpdf -\else - \expandafter\endinput -\fi +\RequirePackage[atend]{bookmark}[2007/04/04] -\newcommand*{\@bmhydoc}[3][0]{% - \pdfoutline - attr {/C[0 0 1]} - user {% - <<% - /S/GoToR% - /F(#2)% - /D[0/XYZ null null null]% - >>% - } - count #1 - {#3}\relax +\BookmarkAtEnd{% + \bookmarksetup{% + startatroot,% + open,% + openlevel=2% + }% +} + +\newcommand*{\@bmhydoc}[4][]{% + \BookmarkAtEnd{% + \bookmark[% + gotor={#3},% + color={[rgb]{0,0,1}},% + level={#2},% + view={XYZ null null null},% + #1,% + ]{#4}% + }% } \AtEndDocument{% - \@bmhydoc[-8]{manual.pdf}{Hyperref manual} - \@bmhydoc{README.pdf}{README} - \@bmhydoc{ChangeLog.pdf}{ChangeLog} - \@bmhydoc{options.pdf}{Options} - \@bmhydoc[1]{slides.pdf}{Bookmark talk, slides} - \@bmhydoc{paper.pdf}{Bookmark talk, paper} - \@bmhydoc[2]{hyperref.pdf}{Sources: hyperref.dtx} - \@bmhydoc{backref.pdf}{backref.dtx} - \@bmhydoc{nameref.pdf}{nameref.dtx} + \@bmhydoc[open=false]{0}{manual.pdf}{Hyperref manual} + \@bmhydoc{1}{README.pdf}{README} + \@bmhydoc{1}{ChangeLog.pdf}{ChangeLog} + \@bmhydoc{1}{options.pdf}{Options} + \@bmhydoc{1}{slides.pdf}{Bookmark talk, slides} + \@bmhydoc{2}{paper.pdf}{Bookmark talk, paper} + \@bmhydoc{1}{hyperref.pdf}{Sources: hyperref.dtx} + \@bmhydoc{2}{backref.pdf}{backref.dtx} + \@bmhydoc{2}{nameref.pdf}{nameref.dtx} } \newcommand*{\HyperrefOverview}{% |