| 1 |
%% Copyright |
| 2 |
%% 1995-2015 Heiko Oberdiek |
| 3 |
%% 2016-2019 Oberdiek Package Support Group |
| 4 |
%% 2019-2026 LaTeX Project |
| 5 |
%% https://github.com/latex3/hyperref/issues |
| 6 |
%% |
| 7 |
%% This file is part of the `Hyperref Bundle'. |
| 8 |
\NeedsTeXFormat{LaTeX2e} |
| 9 |
\ProvidesPackage{bmhydoc} |
| 10 |
[2020/01/14 Bookmark section with hyperref documentation (HO)] |
| 11 |
|
| 12 |
% This package adds bookmark entries that are added at the end |
| 13 |
% and lists and links the PDF files of the hyperref documentation. |
| 14 |
% Only pdfTeX in PDF mode is supported by this package. |
| 15 |
% |
| 16 |
% History |
| 17 |
% |
| 18 |
% 2005/08/27 |
| 19 |
% * First version |
| 20 |
% 2006/02/08 |
| 21 |
% * Comments added |
| 22 |
% * \HyperrefOverview |
| 23 |
% 2007/03/19 |
| 24 |
% * Use package bookmark that also support other drivers |
| 25 |
% than pdfTeX. |
| 26 |
% 2009/11/22 |
| 27 |
% * Bug fix: correction of "this file". |
| 28 |
|
| 29 |
\RequirePackage{pifont} |
| 30 |
\RequirePackage[atend]{bookmark}[2007/04/04] |
| 31 |
|
| 32 |
\BookmarkAtEnd{% |
| 33 |
\bookmarksetup{% |
| 34 |
startatroot,% |
| 35 |
open,% |
| 36 |
openlevel=2% |
| 37 |
}% |
| 38 |
} |
| 39 |
|
| 40 |
\newcommand*{\@bmhydoc}[4][]{% |
| 41 |
\BookmarkAtEnd{% |
| 42 |
\bookmark[% |
| 43 |
gotor={#3},% |
| 44 |
color={[rgb]{0,0,1}},% |
| 45 |
level={#2},% |
| 46 |
view={XYZ null null null},% |
| 47 |
#1,% |
| 48 |
]{#4}% |
| 49 |
}% |
| 50 |
} |
| 51 |
\AtEndDocument{% |
| 52 |
\@bmhydoc[open=false]{0}{hyperref-doc.pdf}{Hyperref manual} |
| 53 |
\@bmhydoc{1}{slides.pdf}{Bookmark talk, slides} |
| 54 |
\@bmhydoc{2}{paper.pdf}{Bookmark talk, paper} |
| 55 |
\@bmhydoc{1}{hyperref.pdf}{Sources: hyperref.dtx} |
| 56 |
\@bmhydoc{2}{backref.pdf}{backref.dtx} |
| 57 |
\@bmhydoc{2}{nameref.pdf}{nameref.dtx} |
| 58 |
} |
| 59 |
|
| 60 |
\newcommand*{\HyperrefOverview}{% |
| 61 |
\def\bmhydoc@title{Documentation overview for \texttt{hyperref}}% |
| 62 |
\@ifstar{% |
| 63 |
% \phantomsection |
| 64 |
% \addcontentsline{toc}{section}{\bmhydoc@title}% |
| 65 |
\section*{\bmhydoc@title}% |
| 66 |
\@HyperrefOverview |
| 67 |
}{% |
| 68 |
\section{\bmhydoc@title}% |
| 69 |
\@HyperrefOverview |
| 70 |
}% |
| 71 |
} |
| 72 |
\def\@HyperrefOverview{% |
| 73 |
The documentation for package \texttt{hyperref} consists |
| 74 |
of several files: |
| 75 |
\begingroup |
| 76 |
\newcommand*{\entry}[2]{% |
| 77 |
\item[\href{file:##1}{##2}]% |
| 78 |
\ignorespaces |
| 79 |
}% |
| 80 |
\begin{description} |
| 81 |
\entry{hyperref-doc.pdf}{\textbf{Manual}} |
| 82 |
The \textbf{USER MANUAL} (also available as HTML). |
| 83 |
\entry{ChangeLog.txt}{ChangeLog} |
| 84 |
This file records the version history. |
| 85 |
\entry{slides.pdf}{Bookmark talk, slides} |
| 86 |
Slides for the talk ``PDF information and navigation elements with |
| 87 |
hyperref, pdfTeX and thumbpdf'' at Euro\TeX~1999. |
| 88 |
\entry{paper.pdf}{Bookmark talk, paper} |
| 89 |
The paper version of the talk. |
| 90 |
\end{description} |
| 91 |
Source code documentation: |
| 92 |
\begin{description} |
| 93 |
\entry{hyperref.pdf}{hyperref.dtx} |
| 94 |
This is the source code documentation for hyperref% |
| 95 |
\@thisfile{hyperref}. |
| 96 |
\entry{backref.pdf}{backref.dtx} |
| 97 |
``Back referencing from bibliographical citations''% |
| 98 |
\@thisfile{backref} |
| 99 |
\entry{nameref.pdf}{nameref.dtx} |
| 100 |
``Section name references in \LaTeX''% |
| 101 |
\@thisfile{nameref}% |
| 102 |
\end{description} |
| 103 |
\endgroup |
| 104 |
} |
| 105 |
\edef\@jobname{\jobname} |
| 106 |
\def\@thisfile#1{% |
| 107 |
\begingroup |
| 108 |
\edef\x{#1}% |
| 109 |
\@onelevel@sanitize\x |
| 110 |
\ifx\x\@jobname |
| 111 |
\marginpar{\hfill\ding{43}}% |
| 112 |
\space(this file)% |
| 113 |
\fi |
| 114 |
\endgroup |
| 115 |
} |
| 116 |
\endinput |