diff options
author | Karl Berry <karl@freefriends.org> | 2010-05-14 18:26:13 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-05-14 18:26:13 +0000 |
commit | 5ab9979378ea2f59c6a36d0bbf12e47d6300fc67 (patch) | |
tree | c3a2c20f18da5e557a7dab77bcfb6b36d7c12c18 /Master/texmf-dist/doc/latex/ocgtools | |
parent | 1d489c5acd49115955f035380e9ec36c51701827 (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')
26 files changed, 128 insertions, 33 deletions
diff --git a/Master/texmf-dist/doc/latex/ocgtools/README b/Master/texmf-dist/doc/latex/ocgtools/README index e9defe1e8f4..3165849ad39 100644 --- a/Master/texmf-dist/doc/latex/ocgtools/README +++ b/Master/texmf-dist/doc/latex/ocgtools/README @@ -1,10 +1,10 @@ -The package ocgtools is designed to insert OCG (Optional Content -Group, known as layers) into PDF presentations. From the user's point -of view, the package allows to insert in an comfortable way any TeX -material into separate layers in PDF document and also insert links -which toggle theselayers on and off. Parts of the PDF document like -formatted text, tables, math formulas or graphics can be turned to -visible or inivisible state by clicking active links or buttons. +The package ocgtools is designed to insert OGC (Optional Group +Content, known as layers) into PDF presentations. From the user's +point of view, the package allows to insert in an comfortable way any +TeX material into separate layers in PDF document and also insert +links which toggle theselayers on and off. Parts of the PDF document +like formatted text, tables, math formulas or graphics can be turned +to visible or inivisible state by clicking active links or buttons. Similar packages are cooltooltips, pdfcomment, AcroTeX and fancytooltips. See the ocgtools package documentation for differences @@ -14,6 +14,5 @@ The package is distributed with examples build from one source using several presentation packages (beamer, web, pdfscreen). All necessary files are on CATN and Texlive 2009. -Supported by grant 131/2010 of Higher Education Development Fund -(FRVS). + diff --git a/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-article.pdf b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-article.pdf Binary files differnew file mode 100644 index 00000000000..c041720a34f --- /dev/null +++ b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-article.pdf diff --git a/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-article.tex b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-article.tex new file mode 100644 index 00000000000..ad983fc0b3f --- /dev/null +++ b/Master/texmf-dist/doc/latex/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/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-beamer-Hannover.pdf b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-beamer-Hannover.pdf Binary files differindex a088d39b4a5..3e389fe2d89 100644 --- a/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-beamer-Hannover.pdf +++ b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-beamer-Hannover.pdf diff --git a/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-beamer-Marburg.pdf b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-beamer-Marburg.pdf Binary files differindex ad281b4d853..2d437bb4adb 100644 --- a/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-beamer-Marburg.pdf +++ b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-beamer-Marburg.pdf diff --git a/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-beamer.pdf b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-beamer.pdf Binary files differindex 43ced2b3ebe..ac1c8e94b6f 100644 --- a/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-beamer.pdf +++ b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-beamer.pdf diff --git a/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-fancytooltips.pdf b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-fancytooltips.pdf Binary files differnew file mode 100644 index 00000000000..e43a7529189 --- /dev/null +++ b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-fancytooltips.pdf diff --git a/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-fancytooltips.tex b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-fancytooltips.tex new file mode 100644 index 00000000000..f4607a5ab1b --- /dev/null +++ b/Master/texmf-dist/doc/latex/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]{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.jpg}\end{center} +\end{itemize} + +\end{document} diff --git a/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-minimal.pdf b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-minimal.pdf Binary files differindex 6fb8323c61c..69a75d2c0db 100644 --- a/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-minimal.pdf +++ b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-minimal.pdf diff --git a/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-minimal.tex b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-minimal.tex index 94780ac5d5e..8e90a6af516 100644 --- a/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-minimal.tex +++ b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-minimal.tex @@ -2,9 +2,6 @@ \usepackage{ocgtools} -\layerVshift=1in -\advance\layerVshift by 16pt % determined experimentally - \begin{document} \ocgtext{Test}{We test placing OCG's.} for placing OCG's: diff --git a/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-pdfscreen-nopanel.pdf b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-pdfscreen-nopanel.pdf Binary files differindex 007e8586cf3..6ec28b9c7a1 100644 --- a/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-pdfscreen-nopanel.pdf +++ b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-pdfscreen-nopanel.pdf diff --git a/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-pdfscreen-panelleft.pdf b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-pdfscreen-panelleft.pdf Binary files differindex 68f6448c045..6dfe9da4b9f 100644 --- a/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-pdfscreen-panelleft.pdf +++ b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-pdfscreen-panelleft.pdf diff --git a/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-pdfscreen.pdf b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-pdfscreen.pdf Binary files differindex 11d8e676fc3..0f891e23598 100644 --- a/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-pdfscreen.pdf +++ b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-pdfscreen.pdf diff --git a/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-web-leftpanel.pdf b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-web-leftpanel.pdf Binary files differindex 277d807bd6a..6e35b8911a5 100644 --- a/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-web-leftpanel.pdf +++ b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-web-leftpanel.pdf diff --git a/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-web-rightpanel.pdf b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-web-rightpanel.pdf Binary files differindex 313c2066def..234f6ababf6 100644 --- a/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-web-rightpanel.pdf +++ b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-web-rightpanel.pdf diff --git a/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-web.pdf b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-web.pdf Binary files differindex 7f52de69f4f..a23dad1c4ec 100644 --- a/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-web.pdf +++ b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-web.pdf diff --git a/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-preview.pdf b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-preview.pdf Binary files differindex 3edb2bf43f3..b79c120646b 100644 --- a/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-preview.pdf +++ b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-preview.pdf diff --git a/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-preview.tex b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-preview.tex index a80693b3d73..0cf2411c138 100644 --- a/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-preview.tex +++ b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-preview.tex @@ -10,6 +10,7 @@ usetemplates,pdftex]{web} \pagecolor{pozadi} %\scrollmode +\def\MyPersonalMacro{Hello world} \title{OCGtools and preview} diff --git a/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-scrartcl.pdf b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-scrartcl.pdf Binary files differnew file mode 100644 index 00000000000..07999fcd8b9 --- /dev/null +++ b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-scrartcl.pdf diff --git a/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-scrartcl.tex b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-scrartcl.tex new file mode 100644 index 00000000000..21768f99f6c --- /dev/null +++ b/Master/texmf-dist/doc/latex/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/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-test.bat b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-test.bat index 84155c14cf0..bdfeb1fe2f2 100755 --- a/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-test.bat +++ b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-test.bat @@ -39,4 +39,17 @@ 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/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-test.sh b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-test.sh index a722cf2947b..27900f84874 100644 --- a/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-test.sh +++ b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-test.sh @@ -39,4 +39,18 @@ pdflatex ocgtools-example-minimal pdflatex ocgtools-example-minimal pdflatex ocgtools-example-minimal -sh ocgtools-preview.sh ocgtools-preview
\ No newline at end of file +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/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. diff --git a/Master/texmf-dist/doc/latex/ocgtools/examples/pdfscreen.cfg b/Master/texmf-dist/doc/latex/ocgtools/examples/pdfscreen.cfg new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/Master/texmf-dist/doc/latex/ocgtools/examples/pdfscreen.cfg diff --git a/Master/texmf-dist/doc/latex/ocgtools/examples/tall.pdf b/Master/texmf-dist/doc/latex/ocgtools/examples/tall.pdf Binary files differnew file mode 100644 index 00000000000..aa27fd27f7a --- /dev/null +++ b/Master/texmf-dist/doc/latex/ocgtools/examples/tall.pdf diff --git a/Master/texmf-dist/doc/latex/ocgtools/ocgtools.pdf b/Master/texmf-dist/doc/latex/ocgtools/ocgtools.pdf Binary files differindex a374a77ef6c..57936d45508 100644 --- a/Master/texmf-dist/doc/latex/ocgtools/ocgtools.pdf +++ b/Master/texmf-dist/doc/latex/ocgtools/ocgtools.pdf |