summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/ocg-p/examples/ocg-p_example_3.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/ocg-p/examples/ocg-p_example_3.tex')
-rw-r--r--Master/texmf-dist/doc/latex/ocg-p/examples/ocg-p_example_3.tex32
1 files changed, 31 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/latex/ocg-p/examples/ocg-p_example_3.tex b/Master/texmf-dist/doc/latex/ocg-p/examples/ocg-p_example_3.tex
index cab102fce2f..fdc8c8c7e21 100644
--- a/Master/texmf-dist/doc/latex/ocg-p/examples/ocg-p_example_3.tex
+++ b/Master/texmf-dist/doc/latex/ocg-p/examples/ocg-p_example_3.tex
@@ -3,6 +3,7 @@
\usepackage{ocg-p}
\usepackage{tikz}
\usetikzlibrary{arrows,automata}
+\usepackage{color}
\newcommand*{\pkg}[1]{\textsf{#1}}
@@ -12,6 +13,7 @@
\maketitle
+\section{Text layers changed by clicking on a link element}
The following text can be toggled:
\begin{tikzpicture}[baseline=0]
\tikzstyle{nome}=[anchor=base,outer sep=0,inner sep=0,minimum height=.45cm,minimum width=4.4cm]
@@ -22,6 +24,34 @@ The following text can be toggled:
\node[overlay,nome,red] (p2) {\parbox[b][][t]{4.4cm}{This text is written in red.}};
\end{ocg}
\end{tikzpicture}
-And now the text is black again.
+And now the text is black again.\\
+
+\toggleocgs{ocblueid ocredid}{Click here to toggle the text!}
+
+
+
+\section{Mouseover example}
+
+Make the text visible by moving the mouse in the box around.
+
+\fbox{
+\begin{ocg}{This}{octhis}{0}
+ \toggleocgs[triggerocg=allactions]{octhis, octhis}{This}
+\end{ocg}
+\begin{ocg}{text}{octext}{0}
+ \toggleocgs[triggerocg=allactions]{octext, octext}{text}
+\end{ocg}
+\begin{ocg}{is}{ocis}{0}
+ \toggleocgs[triggerocg=allactions]{ocis,ocis}{is}
+\end{ocg}
+\begin{ocg}{not}{ocnot}{0}
+ \toggleocgs[triggerocg=allactions]{ocnot, ocnot}{not}
+\end{ocg}
+\begin{ocg}{visible}{ocvisible}{0}
+ \toggleocgs[triggerocg=allactions]{ocvisible, ocvisible}{visible.}
+\end{ocg}
+}
+
+
\end{document} \ No newline at end of file