File: test8.tex

package info (click to toggle)
texlive-base 2005.dfsg.3-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 144,400 kB
  • ctags: 4,485
  • sloc: xml: 71,511; perl: 25,620; ruby: 9,938; sh: 5,306; makefile: 1,947; ansic: 1,731; lisp: 371; python: 84; yacc: 52; cpp: 38
file content (41 lines) | stat: -rw-r--r-- 698 bytes parent folder | download | duplicates (10)
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
% Test file from Stephan Haller <stk@snafu.de> that shows how
% bookmark open levels can vary during the document.

\documentclass{article}

\usepackage{times}

\def\OpMode{1}  % fake vtex

\usepackage{hyperref}

\begin{document}

\section{I'm closed (default)}
\subsection{x}

\hypersetup{bookmarksopen=true}

\section{I'm open,}
\subsection{and so}
\subsection{are my}
\subsubsection{children}

\hypersetup{bookmarksopen=false}

\section{I'm closed,}

\hypersetup{bookmarksopen=true}

\subsection{but my}
\subsubsection{children}
\subsection{are}
\subsubsection{open}

\hypersetup{bookmarksopenlevel=2}

\section{level is two now}
\subsection{so this is closed}
\subsubsection{y}

\end{document}