| 1 |
%% |
| 2 |
%% This is file `bookmark-example.tex', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% bookmark.dtx (with options: `example') |
| 8 |
%% |
| 9 |
%% This is a generated file. |
| 10 |
%% |
| 11 |
%% Project: bookmark |
| 12 |
%% Version: 2026-05-21 v1.32 |
| 13 |
%% |
| 14 |
%% Copyright (C) |
| 15 |
%% 2007-2011 Heiko Oberdiek |
| 16 |
%% 2016-2026 Oberdiek Package Support Group |
| 17 |
%% |
| 18 |
%% This work may be distributed and/or modified under the |
| 19 |
%% conditions of the LaTeX Project Public License, either |
| 20 |
%% version 1.3c of this license or (at your option) any later |
| 21 |
%% version. This version of this license is in |
| 22 |
%% https://www.latex-project.org/lppl/lppl-1-3c.txt |
| 23 |
%% and the latest version of this license is in |
| 24 |
%% https://www.latex-project.org/lppl.txt |
| 25 |
%% and version 1.3 or later is part of all distributions of |
| 26 |
%% LaTeX version 2005/12/01 or later. |
| 27 |
%% |
| 28 |
%% This work has the LPPL maintenance status "maintained". |
| 29 |
%% |
| 30 |
%% The Current Maintainers of this work are |
| 31 |
%% Heiko Oberdiek and the Oberdiek Package Support Group |
| 32 |
%% https://github.com/ho-tex/bookmark/issues |
| 33 |
%% |
| 34 |
%% This file is part of the "bookmark bundle" (The Work in LPPL) |
| 35 |
%% and all files in that bundle must be distributed together. |
| 36 |
%% |
| 37 |
%% The released version of this bundle is available from CTAN. |
| 38 |
%% |
| 39 |
%% This work consists of the main source files bookmark.dtx |
| 40 |
%% and bookmark.ins and the derived files |
| 41 |
%% bookmark.sty, bookmark.pdf, |
| 42 |
%% bkm-dvipdfmx.def, bkm-dvips.def, bkm-pdftex.def, bkm-luatex.def, |
| 43 |
%% bkm-xetex.def, bkm-vtex.def, |
| 44 |
%% bookmark-example.tex. |
| 45 |
%% |
| 46 |
\documentclass{article} |
| 47 |
\usepackage{xcolor}[2007/01/21] |
| 48 |
\usepackage{hyperref} |
| 49 |
\usepackage[ |
| 50 |
open, |
| 51 |
openlevel=2, |
| 52 |
atend |
| 53 |
]{bookmark}[2019/12/03] |
| 54 |
|
| 55 |
\bookmarksetup{color=blue} |
| 56 |
|
| 57 |
\BookmarkAtEnd{% |
| 58 |
\bookmarksetup{startatroot}% |
| 59 |
\bookmark[named=LastPage, level=0]{End/Last page}% |
| 60 |
\bookmark[named=FirstPage, level=1]{First page}% |
| 61 |
} |
| 62 |
|
| 63 |
\begin{document} |
| 64 |
\section{First section} |
| 65 |
\subsection{Subsection A} |
| 66 |
\begin{figure} |
| 67 |
\hypertarget{fig}{}% |
| 68 |
A figure. |
| 69 |
\end{figure} |
| 70 |
\bookmark[ |
| 71 |
rellevel=1, |
| 72 |
keeplevel, |
| 73 |
dest=fig |
| 74 |
]{A figure} |
| 75 |
\subsection{Subsection B} |
| 76 |
\subsubsection{Subsubsection C} |
| 77 |
\subsection{Umlauts: \"A\"O\"U\"a\"o\"u\ss} |
| 78 |
\newpage |
| 79 |
\bookmarksetup{ |
| 80 |
bold, |
| 81 |
color=[rgb]{1,0,0} |
| 82 |
} |
| 83 |
\section{Very important section} |
| 84 |
\bookmarksetup{ |
| 85 |
italic, |
| 86 |
bold=false, |
| 87 |
color=blue |
| 88 |
} |
| 89 |
\subsection{Italic section} |
| 90 |
\bookmarksetup{ |
| 91 |
italic=false |
| 92 |
} |
| 93 |
\part{Misc} |
| 94 |
\section{Diverse} |
| 95 |
\subsubsection{Subsubsection, omitting subsection} |
| 96 |
\bookmarksetup{ |
| 97 |
startatroot |
| 98 |
} |
| 99 |
\section{Last section outside part} |
| 100 |
\subsection{Subsection} |
| 101 |
\bookmarksetup{ |
| 102 |
color={} |
| 103 |
} |
| 104 |
\begingroup |
| 105 |
\bookmarksetup{level=0, color=green!80!black} |
| 106 |
\bookmark[named=FirstPage]{First page} |
| 107 |
\bookmark[named=LastPage]{Last page} |
| 108 |
\bookmark[named=PrevPage]{Previous page} |
| 109 |
\bookmark[named=NextPage]{Next page} |
| 110 |
\endgroup |
| 111 |
\bookmark[ |
| 112 |
page=2, |
| 113 |
view=FitH 800 |
| 114 |
]{Page 2, FitH 800} |
| 115 |
\bookmark[ |
| 116 |
page=2, |
| 117 |
view=FitBH \calc{\paperheight-\topmargin-1in-\headheight-\headsep} |
| 118 |
]{Page 2, FitBH top of text body} |
| 119 |
\bookmark[ |
| 120 |
uri={http://www.dante.de/}, |
| 121 |
color=magenta |
| 122 |
]{Dante homepage} |
| 123 |
\bookmark[ |
| 124 |
gotor={t.pdf}, |
| 125 |
page=1, |
| 126 |
view={XYZ 0 1000 null}, |
| 127 |
color=cyan!75!black |
| 128 |
]{File t.pdf} |
| 129 |
\bookmark[named=FirstPage]{First page} |
| 130 |
\bookmark[rellevel=1, named=LastPage]{Last page (rellevel=1)} |
| 131 |
\bookmark[named=PrevPage]{Previous page} |
| 132 |
\bookmark[level=0, named=FirstPage]{First page (level=0)} |
| 133 |
\bookmark[ |
| 134 |
rellevel=1, |
| 135 |
keeplevel, |
| 136 |
named=LastPage |
| 137 |
]{Last page (rellevel=1, keeplevel)} |
| 138 |
\bookmark[named=PrevPage]{Previous page} |
| 139 |
\end{document} |
| 140 |
|
| 141 |
\endinput |
| 142 |
%% |
| 143 |
%% End of file `bookmark-example.tex'. |