Debian Codegraph @

texmf-dist/doc/latex/ocg-p/examples/ocg-p_example_1.tex

raw
1 \documentclass[a4paper]{ltxdoc}
2
3 \usepackage{ocg-p}
4
5 \newcommand*{\pkg}[1]{\textsf{#1}}
6
7 \title{\pkg{OCG-P} package, example 1}
8
9 \begin{document}
10
11 \maketitle
12
13 \begin{ocg}{First layer}{oc1}{1}
14 The first Layer is visible at start.
15 \end{ocg}
16
17 \begin{ocg}{Second layer}{oc2}{0}
18 The second layer is not visible at start.
19 \end{ocg}
20
21 \begin{ocg}{Third layer}{oc3}{1}
22 The third layer is visible at start.
23 \end{ocg}
24
25 This text is not inside of a layer and always visible.
26
27 \end{document}