summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/xbmks/examples/stand-alone.tex
blob: 9751e99c225f2d434d18c30890ba657b282ca97f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
\documentclass[12pt]{article}
\usepackage{xcolor}
\usepackage[bookmarksopen]{hyperref}
\usepackage{xbmks}

\title{Stand alone document}
\author{D. P. Story}

\xbmksetup{%
%  docbundle={\jobname},
  colors={int=red,ext},
  styles={intbf}
}

\begin{document}

\maketitle

\pdfbookmarkx[1]{http://blog.acrotex.net}[action={/S/URI/URI(http://blog.acrotex.net)},%
  color=magenta,style={bf}]{blog}


\section{Section One}

When the \texttt{docbundle} key is either empty or is not present, \textsf{xbmks} sets its value
to \verb~\jobname~. No cross-document bookmarks are generated because there is no ``bundle'' specified
(multiple values for \texttt{docbundle} are needed); instead, we obtain a standard document
with bookmarks, but the color and style of of the bookmarks are controlled by the \texttt{colors}
and \texttt{styles} keys, as seen in the preamble.

\subsection{Section One: subSec 1}

Some content goes here.

\newpage


\section{Section Two}

Some content goes here.


\subsection{Section Two: subSec 1}

Some content goes here.

\newpage

\subsection{Section Two: subSec 2}

Some content goes here.


\end{document}