summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-test.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-05-14 18:26:13 +0000
committerKarl Berry <karl@freefriends.org>2010-05-14 18:26:13 +0000
commit5ab9979378ea2f59c6a36d0bbf12e47d6300fc67 (patch)
treec3a2c20f18da5e557a7dab77bcfb6b36d7c12c18 /Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-test.tex
parent1d489c5acd49115955f035380e9ec36c51701827 (diff)
ocgtools 0.8 (11may10)
git-svn-id: svn://tug.org/texlive/trunk@18248 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-test.tex')
-rw-r--r--Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-test.tex55
1 files changed, 35 insertions, 20 deletions
diff --git a/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-test.tex b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-test.tex
index 6089b771aca..b750e5ca25f 100644
--- a/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-test.tex
+++ b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-test.tex
@@ -5,7 +5,7 @@
\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}
@@ -28,6 +28,7 @@
\begin{document}
+\sloppy
\fboxsep=4pt
\title{Ocgtools demo}
@@ -49,6 +50,7 @@
\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
@@ -59,11 +61,12 @@ behavior
\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{Try it here!}{Click \ifocg@hide@button anywhere \else red cross \fi to close.} \makeatother
+ \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]{Try it here!}{Click the same link or the red mark
+ \ocgminitext[4cm, bg=red]{Try it here!}{Click the same link or the red mark
to close.}
\end{itemize}
@@ -71,18 +74,19 @@ behavior
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]{PDF viewer}{More
+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]{\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.
+\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.
@@ -100,16 +104,21 @@ bitmap pictures.
\ocgpicture[width=\linewidth]{tall.jpg}
\end{minipage}\hskip 0 pt plus 1 filll
\begin{minipage}{0.3\linewidth}
- Here we test \ocgminitextlt{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).
+ 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
@@ -117,7 +126,7 @@ 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{*-web-nopanel.tex}
+\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.},
@@ -129,10 +138,13 @@ options are available for the package \verb|ocgtools|:
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[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
+ \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
@@ -152,11 +164,14 @@ 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
- \ifocgtools@noocg noocg, \fi \ifx \ocgtools@progressmsg\relax
+ \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}
@@ -224,7 +239,7 @@ Test for placing OCG's:
\hss
}
-\ifx \usetheme \undefined
+\ifx \MyPersonalMacro \undefined \else
We inserted equation \eqref{eq:label} and Figure \ref{fig:figure} in
this document.