summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/ocgtools/examples
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/ocgtools/examples
Initial commit
Diffstat (limited to 'macros/latex/contrib/ocgtools/examples')
-rw-r--r--macros/latex/contrib/ocgtools/examples/book.jpgbin0 -> 53523 bytes
-rw-r--r--macros/latex/contrib/ocgtools/examples/ocgtools-article.pdfbin0 -> 64314 bytes
-rw-r--r--macros/latex/contrib/ocgtools/examples/ocgtools-article.tex11
-rw-r--r--macros/latex/contrib/ocgtools/examples/ocgtools-example-beamer-Hannover.pdfbin0 -> 354663 bytes
-rw-r--r--macros/latex/contrib/ocgtools/examples/ocgtools-example-beamer-Hannover.tex13
-rw-r--r--macros/latex/contrib/ocgtools/examples/ocgtools-example-beamer-Marburg.pdfbin0 -> 362389 bytes
-rw-r--r--macros/latex/contrib/ocgtools/examples/ocgtools-example-beamer-Marburg.tex14
-rw-r--r--macros/latex/contrib/ocgtools/examples/ocgtools-example-beamer.pdfbin0 -> 356574 bytes
-rw-r--r--macros/latex/contrib/ocgtools/examples/ocgtools-example-beamer.tex9
-rw-r--r--macros/latex/contrib/ocgtools/examples/ocgtools-example-fancytooltips.pdfbin0 -> 520324 bytes
-rw-r--r--macros/latex/contrib/ocgtools/examples/ocgtools-example-fancytooltips.tex34
-rw-r--r--macros/latex/contrib/ocgtools/examples/ocgtools-example-minimal.pdfbin0 -> 57248 bytes
-rw-r--r--macros/latex/contrib/ocgtools/examples/ocgtools-example-minimal.tex49
-rw-r--r--macros/latex/contrib/ocgtools/examples/ocgtools-example-pdfscreen-nopanel.pdfbin0 -> 340673 bytes
-rw-r--r--macros/latex/contrib/ocgtools/examples/ocgtools-example-pdfscreen-nopanel.tex17
-rw-r--r--macros/latex/contrib/ocgtools/examples/ocgtools-example-pdfscreen-panelleft.pdfbin0 -> 366528 bytes
-rw-r--r--macros/latex/contrib/ocgtools/examples/ocgtools-example-pdfscreen-panelleft.tex17
-rw-r--r--macros/latex/contrib/ocgtools/examples/ocgtools-example-pdfscreen.pdfbin0 -> 366449 bytes
-rw-r--r--macros/latex/contrib/ocgtools/examples/ocgtools-example-pdfscreen.tex17
-rw-r--r--macros/latex/contrib/ocgtools/examples/ocgtools-example-web-leftpanel.pdfbin0 -> 365866 bytes
-rw-r--r--macros/latex/contrib/ocgtools/examples/ocgtools-example-web-leftpanel.tex34
-rw-r--r--macros/latex/contrib/ocgtools/examples/ocgtools-example-web-rightpanel.pdfbin0 -> 365983 bytes
-rw-r--r--macros/latex/contrib/ocgtools/examples/ocgtools-example-web-rightpanel.tex33
-rw-r--r--macros/latex/contrib/ocgtools/examples/ocgtools-example-web.pdfbin0 -> 352356 bytes
-rw-r--r--macros/latex/contrib/ocgtools/examples/ocgtools-example-web.tex19
-rw-r--r--macros/latex/contrib/ocgtools/examples/ocgtools-preview.bat5
-rw-r--r--macros/latex/contrib/ocgtools/examples/ocgtools-preview.pdfbin0 -> 359157 bytes
-rw-r--r--macros/latex/contrib/ocgtools/examples/ocgtools-preview.sh6
-rw-r--r--macros/latex/contrib/ocgtools/examples/ocgtools-preview.tex66
-rw-r--r--macros/latex/contrib/ocgtools/examples/ocgtools-scrartcl.pdfbin0 -> 64149 bytes
-rw-r--r--macros/latex/contrib/ocgtools/examples/ocgtools-scrartcl.tex11
-rw-r--r--macros/latex/contrib/ocgtools/examples/ocgtools-test.bat55
-rw-r--r--macros/latex/contrib/ocgtools/examples/ocgtools-test.sh56
-rw-r--r--macros/latex/contrib/ocgtools/examples/ocgtools-test.tex269
-rw-r--r--macros/latex/contrib/ocgtools/examples/tall.pdfbin0 -> 416169 bytes
-rw-r--r--macros/latex/contrib/ocgtools/examples/wide.jpgbin0 -> 85584 bytes
36 files changed, 735 insertions, 0 deletions
diff --git a/macros/latex/contrib/ocgtools/examples/book.jpg b/macros/latex/contrib/ocgtools/examples/book.jpg
new file mode 100644
index 0000000000..dfa9376e31
--- /dev/null
+++ b/macros/latex/contrib/ocgtools/examples/book.jpg
Binary files differ
diff --git a/macros/latex/contrib/ocgtools/examples/ocgtools-article.pdf b/macros/latex/contrib/ocgtools/examples/ocgtools-article.pdf
new file mode 100644
index 0000000000..93437bb880
--- /dev/null
+++ b/macros/latex/contrib/ocgtools/examples/ocgtools-article.pdf
Binary files differ
diff --git a/macros/latex/contrib/ocgtools/examples/ocgtools-article.tex b/macros/latex/contrib/ocgtools/examples/ocgtools-article.tex
new file mode 100644
index 0000000000..ad983fc0b3
--- /dev/null
+++ b/macros/latex/contrib/ocgtools/examples/ocgtools-article.tex
@@ -0,0 +1,11 @@
+\documentclass{article}
+\usepackage[mouseover]{ocgtools}
+\begin{document}
+\section{Test}
+This is a \ocgminitextrt{OCG layer test}{Test Test
+Test}
+
+\newpage
+\section{Second page}
+The OCGtools does not (yet) work well on PDF files consistion from one page.
+\end{document} \ No newline at end of file
diff --git a/macros/latex/contrib/ocgtools/examples/ocgtools-example-beamer-Hannover.pdf b/macros/latex/contrib/ocgtools/examples/ocgtools-example-beamer-Hannover.pdf
new file mode 100644
index 0000000000..71c76fcbfc
--- /dev/null
+++ b/macros/latex/contrib/ocgtools/examples/ocgtools-example-beamer-Hannover.pdf
Binary files differ
diff --git a/macros/latex/contrib/ocgtools/examples/ocgtools-example-beamer-Hannover.tex b/macros/latex/contrib/ocgtools/examples/ocgtools-example-beamer-Hannover.tex
new file mode 100644
index 0000000000..fd4a8babff
--- /dev/null
+++ b/macros/latex/contrib/ocgtools/examples/ocgtools-example-beamer-Hannover.tex
@@ -0,0 +1,13 @@
+\RequirePackage{atbegshi}
+\documentclass{beamer}
+\usetheme{Hannover}
+
+\usepackage{ocg-p}
+\usepackage[transparent,minimouseover,fixcolor
+]{ocgtools}
+
+%\usepackage{helvet}
+
+\input ocgtools-test.tex
+
+\end{document}
diff --git a/macros/latex/contrib/ocgtools/examples/ocgtools-example-beamer-Marburg.pdf b/macros/latex/contrib/ocgtools/examples/ocgtools-example-beamer-Marburg.pdf
new file mode 100644
index 0000000000..03f9cc9e70
--- /dev/null
+++ b/macros/latex/contrib/ocgtools/examples/ocgtools-example-beamer-Marburg.pdf
Binary files differ
diff --git a/macros/latex/contrib/ocgtools/examples/ocgtools-example-beamer-Marburg.tex b/macros/latex/contrib/ocgtools/examples/ocgtools-example-beamer-Marburg.tex
new file mode 100644
index 0000000000..a6d94a9538
--- /dev/null
+++ b/macros/latex/contrib/ocgtools/examples/ocgtools-example-beamer-Marburg.tex
@@ -0,0 +1,14 @@
+\RequirePackage{atbegshi}
+\let\oldlabel\label
+\documentclass{beamer}
+
+\usetheme{Marburg}
+\usepackage[transparent,minimouseover,fixcolor
+]{ocgtools}
+
+\AtBeginDocument{\let\label\oldlabel}
+%\usepackage{helvet}
+
+\input ocgtools-test.tex
+
+\end{document}
diff --git a/macros/latex/contrib/ocgtools/examples/ocgtools-example-beamer.pdf b/macros/latex/contrib/ocgtools/examples/ocgtools-example-beamer.pdf
new file mode 100644
index 0000000000..7bb7e7b2ce
--- /dev/null
+++ b/macros/latex/contrib/ocgtools/examples/ocgtools-example-beamer.pdf
Binary files differ
diff --git a/macros/latex/contrib/ocgtools/examples/ocgtools-example-beamer.tex b/macros/latex/contrib/ocgtools/examples/ocgtools-example-beamer.tex
new file mode 100644
index 0000000000..328bd924fb
--- /dev/null
+++ b/macros/latex/contrib/ocgtools/examples/ocgtools-example-beamer.tex
@@ -0,0 +1,9 @@
+\RequirePackage{atbegshi}
+\documentclass{beamer}
+\usepackage[transparent,
+minimouseover,fixcolor
+]{ocgtools}
+%\usepackage{helvet}
+
+\input ocgtools-test.tex
+\end{document}
diff --git a/macros/latex/contrib/ocgtools/examples/ocgtools-example-fancytooltips.pdf b/macros/latex/contrib/ocgtools/examples/ocgtools-example-fancytooltips.pdf
new file mode 100644
index 0000000000..c0b6ec4f92
--- /dev/null
+++ b/macros/latex/contrib/ocgtools/examples/ocgtools-example-fancytooltips.pdf
Binary files differ
diff --git a/macros/latex/contrib/ocgtools/examples/ocgtools-example-fancytooltips.tex b/macros/latex/contrib/ocgtools/examples/ocgtools-example-fancytooltips.tex
new file mode 100644
index 0000000000..ad70c2862c
--- /dev/null
+++ b/macros/latex/contrib/ocgtools/examples/ocgtools-example-fancytooltips.tex
@@ -0,0 +1,34 @@
+\documentclass{article}
+\usepackage[noxcolor,usetemplates,pdftex]{web}
+\screensize{4.875in}{6.5in}
+\margins{12pt}{24pt}{24pt}{24pt}
+
+\definecolor{pozadi}{rgb}{1,1,0.9}
+\pagecolor{pozadi}
+
+\usepackage[filename=tall,mouseover, movetips,blur, fixcolor]{fancytooltips}
+
+\usepackage[transparent,
+mouseover
+]{ocgtools}
+\begin{document}
+
+\title{Testing OCGtools and fancytooltips}
+\maketitle
+\parindent 0 pt
+\begin{itemize}
+\item
+Testing \tooltip{fancytooltips}{1}. (Does the bigger picture of little golf
+player appear when moving mouse to the blue text?)
+
+\item
+Testing \ocgminitext{ocgtools}{Wow, seems to work. Great!}. Does it work?
+(Click the blue text or move mouse to the last letter)
+
+\item
+Testing \verb|\ocgpicture| -- does the bigger image appear when clicking the
+smaller one?
+\begin{center}\ocgpicture[width=1cm]{tall.pdf}\end{center}
+\end{itemize}
+
+\end{document}
diff --git a/macros/latex/contrib/ocgtools/examples/ocgtools-example-minimal.pdf b/macros/latex/contrib/ocgtools/examples/ocgtools-example-minimal.pdf
new file mode 100644
index 0000000000..8fe12bb9cb
--- /dev/null
+++ b/macros/latex/contrib/ocgtools/examples/ocgtools-example-minimal.pdf
Binary files differ
diff --git a/macros/latex/contrib/ocgtools/examples/ocgtools-example-minimal.tex b/macros/latex/contrib/ocgtools/examples/ocgtools-example-minimal.tex
new file mode 100644
index 0000000000..8e90a6af51
--- /dev/null
+++ b/macros/latex/contrib/ocgtools/examples/ocgtools-example-minimal.tex
@@ -0,0 +1,49 @@
+\documentclass{article}
+
+\usepackage{ocgtools}
+
+\begin{document}
+
+\ocgtext{Test}{We test placing OCG's.} for placing OCG's:
+
+\hbox to \hsize{\hss\begin{minipage}{0.2\linewidth}
+ \ocgminitextlb{lb}{This is optional OCG.}
+
+ \ocgminitextrb{rb}{This is optional OCG.}
+
+ \ocgminitextlt{lt}{This is optional OCG.}
+
+ \ocgminitextrt{rt}{This is optional OCG.}
+\end{minipage}
+\hss\hss\hss
+\begin{minipage}{0.2\linewidth}
+ \ocgminitextlb{lb}{This is optional OCG.}
+
+ \ocgminitextrb{rb}{This is optional OCG.}
+
+ \ocgminitextlt{lt}{This is optional OCG.}
+
+ \ocgminitextrt{rt}{This is optional OCG.}
+\end{minipage}
+\hss
+}
+\newpage
+
+\ocgminitextlb{New}{New} \ocgminitextrb{page}{page}.
+
+Second line
+
+\bigskip
+
+\ocgminitext{New}{New} \ocgminitext{page}{page}.
+
+Second line
+\newpage
+
+Plain page.
+\newpage
+
+\ocgminitextlb{Last}{Last} \ocgminitextrb{page}{page}.
+
+Second line on last page.
+\end{document}
diff --git a/macros/latex/contrib/ocgtools/examples/ocgtools-example-pdfscreen-nopanel.pdf b/macros/latex/contrib/ocgtools/examples/ocgtools-example-pdfscreen-nopanel.pdf
new file mode 100644
index 0000000000..0466123aea
--- /dev/null
+++ b/macros/latex/contrib/ocgtools/examples/ocgtools-example-pdfscreen-nopanel.pdf
Binary files differ
diff --git a/macros/latex/contrib/ocgtools/examples/ocgtools-example-pdfscreen-nopanel.tex b/macros/latex/contrib/ocgtools/examples/ocgtools-example-pdfscreen-nopanel.tex
new file mode 100644
index 0000000000..fa0d1bc81d
--- /dev/null
+++ b/macros/latex/contrib/ocgtools/examples/ocgtools-example-pdfscreen-nopanel.tex
@@ -0,0 +1,17 @@
+\documentclass{article}
+\usepackage[pdftex,
+nopanel,
+screen]{pdfscreen}
+
+\margins{0.25in}{0.25in}{0.25in}{0.25in} %left,right,top,bot
+%\screensize{6in}{8in}
+\screensize{4.875in}{6.5in}
+
+%\usepackage{times}
+
+\usepackage[transparent,
+nobutton, nopageclose, fixcolor
+]{ocgtools}
+
+\input ocgtools-test.tex
+\end{document}
diff --git a/macros/latex/contrib/ocgtools/examples/ocgtools-example-pdfscreen-panelleft.pdf b/macros/latex/contrib/ocgtools/examples/ocgtools-example-pdfscreen-panelleft.pdf
new file mode 100644
index 0000000000..bb21ab60bd
--- /dev/null
+++ b/macros/latex/contrib/ocgtools/examples/ocgtools-example-pdfscreen-panelleft.pdf
Binary files differ
diff --git a/macros/latex/contrib/ocgtools/examples/ocgtools-example-pdfscreen-panelleft.tex b/macros/latex/contrib/ocgtools/examples/ocgtools-example-pdfscreen-panelleft.tex
new file mode 100644
index 0000000000..a4d05cec7a
--- /dev/null
+++ b/macros/latex/contrib/ocgtools/examples/ocgtools-example-pdfscreen-panelleft.tex
@@ -0,0 +1,17 @@
+\documentclass{article}
+\usepackage[pdftex,
+panelleft,
+screen]{pdfscreen}
+
+\margins{0.25in}{0.25in}{0.25in}{0.25in} %left,right,top,bot
+%\screensize{6in}{8in}
+\screensize{4.875in}{6.5in}
+
+%\usepackage{times}
+
+\usepackage[transparent=0.9,
+nobutton, nopageclose, fixcolor
+]{ocgtools}
+
+\input ocgtools-test.tex
+\end{document}
diff --git a/macros/latex/contrib/ocgtools/examples/ocgtools-example-pdfscreen.pdf b/macros/latex/contrib/ocgtools/examples/ocgtools-example-pdfscreen.pdf
new file mode 100644
index 0000000000..5f5ba4b54e
--- /dev/null
+++ b/macros/latex/contrib/ocgtools/examples/ocgtools-example-pdfscreen.pdf
Binary files differ
diff --git a/macros/latex/contrib/ocgtools/examples/ocgtools-example-pdfscreen.tex b/macros/latex/contrib/ocgtools/examples/ocgtools-example-pdfscreen.tex
new file mode 100644
index 0000000000..e6cbfc582d
--- /dev/null
+++ b/macros/latex/contrib/ocgtools/examples/ocgtools-example-pdfscreen.tex
@@ -0,0 +1,17 @@
+\documentclass{article}
+\usepackage[pdftex,
+panelright,
+screen]{pdfscreen}
+
+\margins{0.25in}{0.25in}{0.25in}{0.25in} %left,right,top,bot
+%\screensize{6in}{8in}
+\screensize{4.875in}{6.5in}
+
+%\usepackage{times}
+
+\usepackage[transparent,
+nobutton, nopageclose, fixcolor
+]{ocgtools}
+
+\input ocgtools-test.tex
+\end{document}
diff --git a/macros/latex/contrib/ocgtools/examples/ocgtools-example-web-leftpanel.pdf b/macros/latex/contrib/ocgtools/examples/ocgtools-example-web-leftpanel.pdf
new file mode 100644
index 0000000000..e5efe748ae
--- /dev/null
+++ b/macros/latex/contrib/ocgtools/examples/ocgtools-example-web-leftpanel.pdf
Binary files differ
diff --git a/macros/latex/contrib/ocgtools/examples/ocgtools-example-web-leftpanel.tex b/macros/latex/contrib/ocgtools/examples/ocgtools-example-web-leftpanel.tex
new file mode 100644
index 0000000000..12e80f8e2a
--- /dev/null
+++ b/macros/latex/contrib/ocgtools/examples/ocgtools-example-web-leftpanel.tex
@@ -0,0 +1,34 @@
+\documentclass{article}
+\usepackage[%latextoc,
+noxcolor,leftpanel,
+usetemplates,pdftex]{web}
+%\usepackage{times}
+\screensize{4.875in}{6.5in}
+\margins{12pt}{24pt}{24pt}{24pt}
+
+\definecolor{pozadi}{rgb}{1,1,0.9}
+\pagecolor{pozadi}
+
+\usepackage[%transparent,
+%nobutton
+minimouseover
+]{ocgtools}
+
+\buildpanel
+{%
+\null
+\vfill
+\textbf{Ocgtools demo}
+
+\bigskip
+by
+
+\bigskip
+Robert Ma\v{r}\'{i}k
+\vfill
+\panelNaviGroup % defined in web
+}
+
+
+\input ocgtools-test.tex
+\end{document}
diff --git a/macros/latex/contrib/ocgtools/examples/ocgtools-example-web-rightpanel.pdf b/macros/latex/contrib/ocgtools/examples/ocgtools-example-web-rightpanel.pdf
new file mode 100644
index 0000000000..77cdcf4120
--- /dev/null
+++ b/macros/latex/contrib/ocgtools/examples/ocgtools-example-web-rightpanel.pdf
Binary files differ
diff --git a/macros/latex/contrib/ocgtools/examples/ocgtools-example-web-rightpanel.tex b/macros/latex/contrib/ocgtools/examples/ocgtools-example-web-rightpanel.tex
new file mode 100644
index 0000000000..6ede932b44
--- /dev/null
+++ b/macros/latex/contrib/ocgtools/examples/ocgtools-example-web-rightpanel.tex
@@ -0,0 +1,33 @@
+\documentclass{article}
+\usepackage[%latextoc,
+noxcolor,rightpanel,
+usetemplates,pdftex]{web}
+%\usepackage{times}
+\screensize{4.875in}{6.5in}
+\margins{12pt}{24pt}{24pt}{24pt}
+
+\definecolor{pozadi}{rgb}{1,1,0.9}
+\pagecolor{pozadi}
+
+\usepackage[%transparent,
+%nobutton
+minimouseover
+]{ocgtools}
+
+\buildpanel
+{%
+\null
+\vfill
+\textbf{Ocgtools demo}
+
+\bigskip
+by
+
+\bigskip
+Robert Ma\v{r}\'{i}k
+\vfill
+\panelNaviGroup % defined in web
+}
+
+\input ocgtools-test.tex
+\end{document}
diff --git a/macros/latex/contrib/ocgtools/examples/ocgtools-example-web.pdf b/macros/latex/contrib/ocgtools/examples/ocgtools-example-web.pdf
new file mode 100644
index 0000000000..873504549d
--- /dev/null
+++ b/macros/latex/contrib/ocgtools/examples/ocgtools-example-web.pdf
Binary files differ
diff --git a/macros/latex/contrib/ocgtools/examples/ocgtools-example-web.tex b/macros/latex/contrib/ocgtools/examples/ocgtools-example-web.tex
new file mode 100644
index 0000000000..ffdd221244
--- /dev/null
+++ b/macros/latex/contrib/ocgtools/examples/ocgtools-example-web.tex
@@ -0,0 +1,19 @@
+\documentclass{article}
+\usepackage[%latextoc,
+noxcolor,
+usetemplates,pdftex]{web}
+%\usepackage{times}
+\screensize{4.875in}{6.5in}
+\margins{12pt}{24pt}{24pt}{24pt}
+
+\definecolor{pozadi}{rgb}{1,1,0.9}
+\pagecolor{pozadi}
+
+\usepackage[%transparent,
+%nobutton,
+insertvisible,
+minimouseover
+]{ocgtools}
+
+\input ocgtools-test.tex
+\end{document}
diff --git a/macros/latex/contrib/ocgtools/examples/ocgtools-preview.bat b/macros/latex/contrib/ocgtools/examples/ocgtools-preview.bat
new file mode 100644
index 0000000000..7f0a9ab7a2
--- /dev/null
+++ b/macros/latex/contrib/ocgtools/examples/ocgtools-preview.bat
@@ -0,0 +1,5 @@
+pdflatex "\AtBeginDocument{\usepackage[pdftex,displaymath,floats,active,tightpage]{preview}}\PassOptionsToPackage{noocg}{ocgtools} \def\ocgpreview#1#2{#2}\input ocgtools-preview "
+copy ocgtools-preview.pdf preview-temp.pdf
+pdflatex ocgtools-preview
+pdflatex ocgtools-preview
+pdflatex ocgtools-preview
diff --git a/macros/latex/contrib/ocgtools/examples/ocgtools-preview.pdf b/macros/latex/contrib/ocgtools/examples/ocgtools-preview.pdf
new file mode 100644
index 0000000000..ee3ff0b75b
--- /dev/null
+++ b/macros/latex/contrib/ocgtools/examples/ocgtools-preview.pdf
Binary files differ
diff --git a/macros/latex/contrib/ocgtools/examples/ocgtools-preview.sh b/macros/latex/contrib/ocgtools/examples/ocgtools-preview.sh
new file mode 100644
index 0000000000..344d55fef7
--- /dev/null
+++ b/macros/latex/contrib/ocgtools/examples/ocgtools-preview.sh
@@ -0,0 +1,6 @@
+pdflatex "\AtBeginDocument{\usepackage[pdftex,displaymath,floats,active,tightpage]{preview}}\PassOptionsToPackage{noocg}{ocgtools} \def\ocgpreview#1#2{#2}\input $1 "
+cp $1.pdf preview-temp.pdf
+grep '\\newlabel{' ocgtools-preview.aux | sed 's/newlabel/maplabelstoall/g' > preview.labels
+pdflatex $1
+pdflatex $1
+pdflatex $1
diff --git a/macros/latex/contrib/ocgtools/examples/ocgtools-preview.tex b/macros/latex/contrib/ocgtools/examples/ocgtools-preview.tex
new file mode 100644
index 0000000000..0cf2411c13
--- /dev/null
+++ b/macros/latex/contrib/ocgtools/examples/ocgtools-preview.tex
@@ -0,0 +1,66 @@
+\documentclass{article}
+\usepackage[%latextoc,
+noxcolor,
+usetemplates,pdftex]{web}
+%\usepackage{times}
+\screensize{4.875in}{6.5in}
+\margins{12pt}{24pt}{24pt}{24pt}
+
+\definecolor{pozadi}{rgb}{1,1,0.9}
+\pagecolor{pozadi}
+
+%\scrollmode
+\def\MyPersonalMacro{Hello world}
+
+\title{OCGtools and preview}
+
+\optionalPageMatter{
+ \begin{center}
+ \colorbox{yellow}{\begin{minipage}{0.5\linewidth} This is a demo
+ file to test cooperation between ocgtools and preview
+ packages. Go to the Section \ref{page} on page \pageref{page}
+ and put you mouse to the question marks following referrences
+ to figure and equation. The figure and equation should appear
+ in minilayer at the same page.
+
+ The concept is DoItYourself, see the source
+ \texttt{.tex} file and script \texttt{ocgtools-preview.sh}.
+ \end{minipage}}
+ \end{center}
+}
+
+\def\title#1{}
+\usepackage[minimouseover]{ocgtools}
+
+
+\ifx\ocgpreview\undefined\def\ocgpreview#1#2{#1}\fi
+
+ \ocgpreview{\AtBeginDocument{
+ \gdef\maplabeltopage#1#2{\expandafter\xdef\csname ocgtools@page@#1\endcsname{#2}
+\message{^^J OCG: page #2}}
+ \gdef\savemaplabels#1#2#3#4{\xdef\ocgtoolstemp{#2}}
+ \gdef\maplabelstoall#1#2{\savemaplabels#2 \maplabeltopage{#1}{\ocgtoolstemp}}
+ \input preview.labels
+ \let\orieqref\eqref
+ \let\oriref\ref
+ \def\eqref#1{(\oriref{#1})%
+ \expandafter\ifx\csname ocgtools@page@#1\endcsname\relax\else
+ \,{\ocgminitext{$^{\text{?}}$}%
+ {\includegraphics[page=\csname ocgtools@page@#1\endcsname]{preview-temp}}}%
+ \fi}%
+ \def\ref#1{\oriref{#1}%
+ \expandafter\ifx\csname ocgtools@page@#1\endcsname\relax\else
+ \,{\ocgminitext{$^{\text{?}}$}%
+ {\includegraphics[page=\csname ocgtools@page@#1\endcsname]{preview-temp}}}%
+ \fi}%
+ }}{\AtBeginDocument{
+ \newwrite\refsfile
+ \pagecolor{lightblue}
+ \immediate\openout\refsfile=preview.labels
+ \let\orilabel\label
+ \def\label#1{\orilabel{#1}\write\refsfile{\string\maplabeltopage{#1}{\thepage}}}
+ }}
+
+\input ocgtools-test.tex
+
+\end{document}
diff --git a/macros/latex/contrib/ocgtools/examples/ocgtools-scrartcl.pdf b/macros/latex/contrib/ocgtools/examples/ocgtools-scrartcl.pdf
new file mode 100644
index 0000000000..4344ae41f8
--- /dev/null
+++ b/macros/latex/contrib/ocgtools/examples/ocgtools-scrartcl.pdf
Binary files differ
diff --git a/macros/latex/contrib/ocgtools/examples/ocgtools-scrartcl.tex b/macros/latex/contrib/ocgtools/examples/ocgtools-scrartcl.tex
new file mode 100644
index 0000000000..21768f99f6
--- /dev/null
+++ b/macros/latex/contrib/ocgtools/examples/ocgtools-scrartcl.tex
@@ -0,0 +1,11 @@
+\documentclass{scrartcl}
+\usepackage[mouseover]{ocgtools}
+\begin{document}
+\section{Test}
+This is a \ocgminitextrt{OCG layer test}{Test Test
+Test}
+
+\newpage
+\section{Second page}
+The OCGtools does not (yet) work well on PDF files consistion from one page.
+\end{document} \ No newline at end of file
diff --git a/macros/latex/contrib/ocgtools/examples/ocgtools-test.bat b/macros/latex/contrib/ocgtools/examples/ocgtools-test.bat
new file mode 100644
index 0000000000..bdfeb1fe2f
--- /dev/null
+++ b/macros/latex/contrib/ocgtools/examples/ocgtools-test.bat
@@ -0,0 +1,55 @@
+pdflatex ocgtools-example-web
+pdflatex ocgtools-example-web
+mpost mfpic-picture.mp
+pdflatex ocgtools-example-web
+
+pdflatex ocgtools-example-web-leftpanel
+pdflatex ocgtools-example-web-leftpanel
+pdflatex ocgtools-example-web-leftpanel
+
+pdflatex ocgtools-example-web-rightpanel
+pdflatex ocgtools-example-web-rightpanel
+pdflatex ocgtools-example-web-rightpanel
+
+pdflatex ocgtools-example-pdfscreen-panelleft
+pdflatex ocgtools-example-pdfscreen-panelleft
+pdflatex ocgtools-example-pdfscreen-panelleft
+
+pdflatex ocgtools-example-pdfscreen-nopanel
+pdflatex ocgtools-example-pdfscreen-nopanel
+pdflatex ocgtools-example-pdfscreen-nopanel
+
+pdflatex ocgtools-example-pdfscreen
+pdflatex ocgtools-example-pdfscreen
+pdflatex ocgtools-example-pdfscreen
+
+pdflatex ocgtools-example-beamer
+pdflatex ocgtools-example-beamer
+pdflatex ocgtools-example-beamer
+
+pdflatex ocgtools-example-beamer-Hannover
+pdflatex ocgtools-example-beamer-Hannover
+pdflatex ocgtools-example-beamer-Hannover
+
+pdflatex ocgtools-example-beamer-Marburg
+pdflatex ocgtools-example-beamer-Marburg
+pdflatex ocgtools-example-beamer-Marburg
+
+pdflatex ocgtools-example-minimal
+pdflatex ocgtools-example-minimal
+pdflatex ocgtools-example-minimal
+
+pdflatex ocgtools-example-fancytooltips
+pdflatex ocgtools-example-fancytooltips
+pdflatex ocgtools-example-fancytooltips
+pdflatex ocgtools-example-fancytooltips
+
+pdflatex ocgtools-article
+pdflatex ocgtools-article
+pdflatex ocgtools-article
+
+pdflatex ocgtools-scrartcl
+pdflatex ocgtools-scrartcl
+pdflatex ocgtools-scrartcl
+
+ocgtools-preview.bat \ No newline at end of file
diff --git a/macros/latex/contrib/ocgtools/examples/ocgtools-test.sh b/macros/latex/contrib/ocgtools/examples/ocgtools-test.sh
new file mode 100644
index 0000000000..27900f8487
--- /dev/null
+++ b/macros/latex/contrib/ocgtools/examples/ocgtools-test.sh
@@ -0,0 +1,56 @@
+pdflatex ocgtools-example-web
+pdflatex ocgtools-example-web
+mpost mfpic-picture.mp
+pdflatex ocgtools-example-web
+
+pdflatex ocgtools-example-web-leftpanel
+pdflatex ocgtools-example-web-leftpanel
+pdflatex ocgtools-example-web-leftpanel
+
+pdflatex ocgtools-example-web-rightpanel
+pdflatex ocgtools-example-web-rightpanel
+pdflatex ocgtools-example-web-rightpanel
+
+pdflatex ocgtools-example-pdfscreen-panelleft
+pdflatex ocgtools-example-pdfscreen-panelleft
+pdflatex ocgtools-example-pdfscreen-panelleft
+
+pdflatex ocgtools-example-pdfscreen-nopanel
+pdflatex ocgtools-example-pdfscreen-nopanel
+pdflatex ocgtools-example-pdfscreen-nopanel
+
+pdflatex ocgtools-example-pdfscreen
+pdflatex ocgtools-example-pdfscreen
+pdflatex ocgtools-example-pdfscreen
+
+pdflatex ocgtools-example-beamer
+pdflatex ocgtools-example-beamer
+pdflatex ocgtools-example-beamer
+
+pdflatex ocgtools-example-beamer-Hannover
+pdflatex ocgtools-example-beamer-Hannover
+pdflatex ocgtools-example-beamer-Hannover
+
+pdflatex ocgtools-example-beamer-Marburg
+pdflatex ocgtools-example-beamer-Marburg
+pdflatex ocgtools-example-beamer-Marburg
+
+pdflatex ocgtools-example-minimal
+pdflatex ocgtools-example-minimal
+pdflatex ocgtools-example-minimal
+
+pdflatex ocgtools-example-fancytooltips
+pdflatex ocgtools-example-fancytooltips
+pdflatex ocgtools-example-fancytooltips
+pdflatex ocgtools-example-fancytooltips
+
+pdflatex ocgtools-article
+pdflatex ocgtools-article
+pdflatex ocgtools-article
+
+pdflatex ocgtools-scrartcl
+pdflatex ocgtools-scrartcl
+pdflatex ocgtools-scrartcl
+
+sh ocgtools-preview.sh ocgtools-preview
+rm *.log *.aux *.toc *.snm *.nav *.out *.pos mfpic-picture.* Tooltipsdljs.djs \ No newline at end of file
diff --git a/macros/latex/contrib/ocgtools/examples/ocgtools-test.tex b/macros/latex/contrib/ocgtools/examples/ocgtools-test.tex
new file mode 100644
index 0000000000..b750e5ca25
--- /dev/null
+++ b/macros/latex/contrib/ocgtools/examples/ocgtools-test.tex
@@ -0,0 +1,269 @@
+\usepackage[metapost]{mfpic}
+\opengraphsfile{mfpic-picture}
+\usepackage{amsmath}
+\usepackage{helvet}
+\let\rmdefault\sfdefault
+
+\usepackage{wrapfig}
+\definecolor{darkgreen}{rgb}{0,0.5,0}
+% new page which works in beamer class only
+\def\beamernewpage{\ifx \usetheme \undefined \relax \else \newpage\fi}
+
+% background for web.sty package
+\ifx \ifweb@navibar \undefined \relax \else
+\definecolor{lightgray}{rgb}{0.9,0.9,0.9}
+\newbox\backgroundbox
+\newbox\backgroundboxa
+\setbox\backgroundboxa=\hbox{\rotatebox{20}{{\color{lightgray}\Large ocgtools\color{black}}}}
+\newbox\backgroundboxb
+\setbox\backgroundboxb=\hbox to \paperwidth{\xleaders\copy\backgroundboxa\hfill}
+\newbox\backgroundboxc
+\setbox\backgroundboxc=\vbox to \paperheight{\xleaders\copy\backgroundboxb\vfill}
+\makeatletter
+ \def\ocgtools@shipoutstart@hook{\hbox to 0 pt{%
+ \kern -1in \vbox to 0 pt{\vss\copy\backgroundboxc}
+ \hss}}
+\makeatother
+\fi
+
+\begin{document}
+
+\sloppy
+\fboxsep=4pt
+
+\title{Ocgtools demo}
+\author{Robert Ma\v{r}\'{i}k}
+
+\maketitle
+\def\maxwell{
+\nabla \cdot D&= \rho \\
+\nabla \cdot B&=0 \\
+\nabla \times E&=- \frac{\partial B}{\partial t}\\
+\nabla \times H&=J+ \frac{\partial D}{\partial t}}
+
+\tableofcontents
+\beamernewpage
+\makeatletter\ifx\PDFSCR@Info\undefined\relax\else\newpage\fi\makeatother
+
+\section{Introduction}
+
+\vbox to 0 pt{\noindent\hbox{\ocgpicture[width=3cm]{book.jpg}}
+ \vss}
+
+\definecolor{mywhite}{rgb}{0.3,0.3,0.6}
+\hangindent=3.5cm \hangafter -5 \noindent This is test file for
+\texttt{ocgtools} package. You can (using \texttt{pdflatex}) insert
+hidden \TeX{} material into PDF files and open/close by clicking
+active links. The active links in this document are pictures (like the
+picture in this paragraph) or blue text. There are two kinds of
+behavior
+\begin{itemize}
+\item OCG spans over allmost whole PDF pages (with black or
+ transparent boundary) and can be hidden by clicikng anywhere in the
+ page -- \makeatletter
+ \ocgtext[0pt,bg=red,fg=yellow]{Try it here!}{Click
+ \ifocg@hide@button anywhere \else red cross \fi to close.} \makeatother
+
+\item OCG is small and can be hidden either with the same link which
+ opens this text or with red mark on the right top corner --
+ \ocgminitext[4cm, bg=red]{Try it here!}{Click the same link or the red mark
+ to close.}
+\end{itemize}
+
+\beamernewpage Note that the pictures may look darker in Adobe Reader
+on Linux if you use package option \texttt{transparent} (means
+transparent boundary of the OCG's, used for example in demos for
+Beamer class and \verb|pdfscreen.sty| package). For comparison you can
+look at the original picture
+\href{http://math.mendelu.cz/en/analyza?lang=en}{here}) or at the
+demos which use \verb|web.sty| package. \ocgtext[5cm,fg=red]{PDF viewer}{More
+ preciselly, Adobe Reader. \par \bigskip It is well known program.
+ You can install it on both Linux and Windows.} uses another
+rendering when trasparency is called and this seems to be system
+dependent. So be carefull when combining
+\ocgminitext[3cm,bg=lightgray,fg=darkgreen]{\texttt{transparent}}{\rightskip 0 pt
+ plus 1 fill This comment is in \texttt{vbox} with specified width
+ and may contain new paragraphs. It is rather long and placed on the
+ top of the page. Hence \textit{it is shifted a bit to fit the area
+ on the screen}. However, if the papersize is small (like for
+ Beamer test files), the bottom part remains invisible for reader.
+
+\smallskip 2-nd paragraph.
+
+\smallskip 3-rd paragraph. This is the last paragraph.} option and
+bitmap pictures.
+
+\definecolor{green}{rgb}{0.5,1,0.5}
+\begin{minipage}[c]{0.4\linewidth}
+ \ocgtext[4cm]{\begin{align}\label{eq:maxwell}\maxwell
+ \end{align}
+ }{\colorbox{green}{\kern-2\fboxsep\hbox to \hsize{\hss Maxwell equations\hss}}$$\begin{aligned} \maxwell
+ \end{aligned}$$}
+\end{minipage}\hskip 0 pt plus 1 filll
+\begin{minipage}[c]{0.2\linewidth}
+\ocgpicture[width=\linewidth]{tall.jpg}
+\end{minipage}\hskip 0 pt plus 1 filll
+\begin{minipage}{0.3\linewidth}
+ Here we test
+ \ocgminitextlt[bg=black,fg=yellow]{ocg's}{{\color{red}O}ptional
+ {\color{red}C}ontents {\color{red}G}roup} which are inside group
+ (Maxwell's equation in minipage) and which are taller than wide
+ (little golf player).
+\end{minipage}
+
+\newpage
+\section{Options of the package}
+
+{
+\begin{wrapfigure}[5]{r}{4cm}
+ \ocgpicture[width=4cm]{wide.jpg}
+\end{wrapfigure}
+\def\defaultocgpapercolor{black}\def\defaultocgfontcolor{green}
+This is some \ocgtext{random text}{anmf asdfh akdfjha adfjh akjdfh }
+to see that \ocgminitextlb{\texttt{wrapfig}}{Wrapfig is a package for
+ \LaTeX.} works and wide pictures are scaled properly. Several
+options are available for the package \verb|ocgtools|:
+\ocgminitext[6cm]{transparent}{\texttt{beamer} and \texttt{pdfscreen}
+ demo files are compiled with \texttt{transparent} option -- the
+ black boundary of big layers is opaque.},
+\ocgminitext[6cm]{insertvisible}{The file \texttt{ocgtools-example-web.tex}
+ is compiled with \texttt{insertvisible} option. The layers are
+ inserted as visible layers and are turned to invisible when the PDF
+ file is opened.},
+ \ocgminitext[8cm]{nobutton}{Normally the pages
+ with active layers have a transparent button which can be used to
+ hide this layer. The user simply clicks anywhere and the layers
+ become hidden. In some viewers (like Foxit Reader) the button is not
+ 100\% transparent. This option allows not to include the big button
+ to hide layers. The layers can be closed by clicking the red cross
+ below. Demo files based on \texttt{pdfscreen} are compiled with this option.
+ Use this option to make the document accessible to Foxit Reader users.},
+ \ocgminitext{noocg}{All OCG's are ignored},
+ \ocgminitext{inactive}{The same as
+ \texttt{noocg}}, \ocgminitext{active}{OCG's are inserted, overrides
+ \texttt{inactive} and \texttt{noocg}},
+ \ocgminitext[6cm]{noprogressmsg}{No messagae about processing OCG's at
+ the first page when document is opened.},
+ \ocgminitext[8cm]{minimouseover}{\texttt{web} and \texttt{beamer} demo
+ files are compiled with \texttt{minimouseover} option. You can open
+ the minilayer by mouseover action in the area which is in the form
+ of invisible square 8pt$\times$8pt placed at the bottom right corner
+ of the referrence text.},
+\ocgminitext[8cm]{mouseover}{The same as
+ \texttt{minimouseover}, but works also for big layers. No demo file is
+ compiled with this option.},
+\ocgminitext[8cm]{nopageclose}{By default, layers and buttons for hiding them are
+ turned into hidden when entering a page. This option turns this behavior off.
+ Demo files based on \texttt{pdfscreen} are compiled with this option.}
+(each option has an associated
+minilayer with an explanation). Examples distributed with the package
+are in the form of demo files based on three packages (\verb|beamer|,
+\verb|web|, \verb|pdfscreen|). Each example has three variants with no
+panel, with panel on the right and on the left and each example is
+compiled with different options. The current document is compiled with
+the following options: {\bfseries \makeatletter
+ \if@ocgtools@transparent transparent, \fi \if@ocgtools@insertvisible
+ insertvisible, \fi \ifocg@hide@button \relax \else nobutton, \fi
+ \ifx \ocgtools@progressmsg\relax
+ noprogressmsg, \fi \if@ocgtools@mouseover mouseover,\fi
+ \if@ocgtools@minimouseover minimouseover,\fi \if@ocgtools@pageclose\else nopageclose,\fi \makeatother }
+
+Note that we used \verb|\def\defaultocgpapercolor{black}| and
+\verb|\def\defaultocgfontcolor{green}| on this page.
+
+}
+\newpage
+\section{A taste of mathematics}
+
+\def\a{\begin{mfpic}[80][40]{-0.1}{2}{-0.1}{2.8}
+ \gfill[green]\btwnfcn{0,1.5,0.1}{1+(x-1.2)**2}{0}
+ \axes
+ \xmarks{1.5}
+ \tlabelsep{4pt}
+ \tlabel[tc](0,0){$a$}
+ \tlabel[tc](1.5,0){$b$}
+ \pen{1pt}
+ \function{0,1.5,0.1}{1+(x-1.2)**2}
+ \end{mfpic}}
+
+ \begin{figure}
+ \centering
+ \ocgtext{\a}{\a}
+ \caption{Floating figure}
+ \label{fig:figure}
+ \end{figure}
+
+ Mfpic pictures can be scaled easily (see the floating figure).
+
+ \beamernewpage We can add explanation to some computations easily
+ (Note the text \verb|Why?| inserted automatically by redefining
+ macro \verb|\ocgtextend|).
+
+{\def\ocgtextend{\raise0.75\baselineskip\hbox to 0 pt{\hss\tiny\color{red}Why?}\hss}
+ \global\def\dx{\,\mathrm{d}x}
+\begin{eqnarray}\label{eq:label}
+\int\ln x\dx&\ocgminitext[4cm]={Integration by parts $$\int\ln x\dx=\int1\cdot\ln x \dx$$}&x\ln x-\int x\frac 1x\dx\\
+&\ocgminitext={Formula $\int 1\dx=x$}&x\ln x - x +C
+\end{eqnarray}
+
+}
+
+\newpage
+\section{Few more tests}
+Package \verb|ocgtools.sty| redefines output routine via
+\verb|atbegshi.sty| package. From this reason it may be incompatible
+with some other packages dealing with output routine. However, the
+package \verb|eso-pic.sty| works fine.
+
+Test for placing OCG's:
+
+\hbox to \hsize{\hss\begin{minipage}{0.2\linewidth}
+ \ocgminitextlb{lb}{This is optional OCG.}
+
+ \ocgminitextrb{rb}{This is optional OCG.}
+
+ \ocgminitextlt{lt}{This is optional OCG.}
+
+ \ocgminitextrt{rt}{This is optional OCG.}
+\end{minipage}
+\hss\hss\hss
+\begin{minipage}{0.2\linewidth}
+ \ocgminitextlb{lb}{This is optional OCG.}
+
+ \ocgminitextrb{rb}{This is optional OCG.}
+
+ \ocgminitextlt{lt}{This is optional OCG.}
+
+ \ocgminitextrt{rt}{This is optional OCG.}
+\end{minipage}
+\hss
+}
+
+\ifx \MyPersonalMacro \undefined \else
+We inserted equation \eqref{eq:label} and Figure \ref{fig:figure} in
+this document.
+
+The reference to Maxwell equations \eqref{eq:maxwell} works only if
+compiled on Linux via \texttt{ocgtools-preview.sh} (called from
+\texttt{ocgtools-test.sh} automatically with correct parameter). \fi
+
+\label{page}
+\newpage
+
+\ocgminitextlb{New}{New} \ocgminitextrb{page}{page}.
+
+Second line
+
+\bigskip
+
+\ocgminitext{New}{New} \ocgminitext{page}{page}.
+
+Second line
+\newpage
+
+Plain page.
+\newpage
+
+\ocgminitextlb{Last}{Last} \ocgminitextrb{page}{page}.
+
+Second line on last page.
diff --git a/macros/latex/contrib/ocgtools/examples/tall.pdf b/macros/latex/contrib/ocgtools/examples/tall.pdf
new file mode 100644
index 0000000000..0a9f910bb2
--- /dev/null
+++ b/macros/latex/contrib/ocgtools/examples/tall.pdf
Binary files differ
diff --git a/macros/latex/contrib/ocgtools/examples/wide.jpg b/macros/latex/contrib/ocgtools/examples/wide.jpg
new file mode 100644
index 0000000000..130885e5dd
--- /dev/null
+++ b/macros/latex/contrib/ocgtools/examples/wide.jpg
Binary files differ