summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/ocg-p/examples/ocg-p_example_1.tex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/ocg-p/examples/ocg-p_example_1.tex')
-rw-r--r--macros/latex/contrib/ocg-p/examples/ocg-p_example_1.tex27
1 files changed, 27 insertions, 0 deletions
diff --git a/macros/latex/contrib/ocg-p/examples/ocg-p_example_1.tex b/macros/latex/contrib/ocg-p/examples/ocg-p_example_1.tex
new file mode 100644
index 0000000000..ce361e0180
--- /dev/null
+++ b/macros/latex/contrib/ocg-p/examples/ocg-p_example_1.tex
@@ -0,0 +1,27 @@
+\documentclass[a4paper]{ltxdoc}
+
+\usepackage{ocg-p}
+
+\newcommand*{\pkg}[1]{\textsf{#1}}
+
+\title{\pkg{OCG-P} package, example 1}
+
+\begin{document}
+
+\maketitle
+
+\begin{ocg}{First layer}{oc1}{1}
+ The first Layer is visible at start.
+\end{ocg}
+
+\begin{ocg}{Second layer}{oc2}{0}
+ The second layer is not visible at start.
+\end{ocg}
+
+\begin{ocg}{Third layer}{oc3}{1}
+ The third layer is visible at start.
+\end{ocg}
+
+This text is not inside of a layer and always visible.
+
+\end{document} \ No newline at end of file