diff options
Diffstat (limited to 'Master/texmf-dist/doc')
33 files changed, 655 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/ocgtools/README b/Master/texmf-dist/doc/latex/ocgtools/README new file mode 100644 index 00000000000..5e52a5cd8aa --- /dev/null +++ b/Master/texmf-dist/doc/latex/ocgtools/README @@ -0,0 +1,20 @@ +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 invisible state by clicking active links or buttons. + +Similar packages are cooltooltips, pdfcomment, AcroTeX and +fancytooltips. See the ocgtools package documentation for differences +between ocgtools and the other packages. + +The package is distributed with examples build from one source using +several presentation packages (beamer, web, pdfscreen). All necessary +files are on Texlive 2009. Allmost all necessary files are on CTAN, +the file ocg.sty is at +http://www.tug.org/svn/texlive/trunk/Master/texmf/tex/latex/asymptote/ocg.sty + + + diff --git a/Master/texmf-dist/doc/latex/ocgtools/examples/book.jpg b/Master/texmf-dist/doc/latex/ocgtools/examples/book.jpg Binary files differnew file mode 100644 index 00000000000..dfa9376e31e --- /dev/null +++ b/Master/texmf-dist/doc/latex/ocgtools/examples/book.jpg 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 differnew file mode 100644 index 00000000000..16b10a6b527 --- /dev/null +++ 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-Hannover.tex b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-beamer-Hannover.tex new file mode 100644 index 00000000000..28993cf7350 --- /dev/null +++ b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-beamer-Hannover.tex @@ -0,0 +1,11 @@ +\documentclass{beamer} +\usetheme{Hannover} + +\usepackage[transparent,minimouseover +]{ocgtools} + +%\usepackage{helvet} + +\input ocgtools-test.tex + +\end{document} 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 differnew file mode 100644 index 00000000000..0a9b46a8b49 --- /dev/null +++ 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-Marburg.tex b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-beamer-Marburg.tex new file mode 100644 index 00000000000..ea461b69bcb --- /dev/null +++ b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-beamer-Marburg.tex @@ -0,0 +1,13 @@ +\let\oldlabel\label +\documentclass{beamer} + +\usetheme{Marburg} +\usepackage[transparent,minimouseover +]{ocgtools} + +\AtBeginDocument{\let\label\oldlabel} +%\usepackage{helvet} + +\input ocgtools-test.tex + +\end{document} 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 differnew file mode 100644 index 00000000000..91d9b782375 --- /dev/null +++ b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-beamer.pdf diff --git a/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-beamer.tex b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-beamer.tex new file mode 100644 index 00000000000..331c0a37438 --- /dev/null +++ b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-beamer.tex @@ -0,0 +1,8 @@ +\documentclass{beamer} +\usepackage[transparent, +minimouseover +]{ocgtools} +%\usepackage{helvet} + +\input ocgtools-test.tex +\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 differnew file mode 100644 index 00000000000..b1c7890948d --- /dev/null +++ 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 new file mode 100644 index 00000000000..94780ac5d5e --- /dev/null +++ b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-minimal.tex @@ -0,0 +1,52 @@ +\documentclass{article} + +\usepackage{ocgtools} + +\layerVshift=1in +\advance\layerVshift by 16pt % determined experimentally + +\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/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 differnew file mode 100644 index 00000000000..078e3b4aff9 --- /dev/null +++ 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-nopanel.tex b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-pdfscreen-nopanel.tex new file mode 100644 index 00000000000..48c859b1b77 --- /dev/null +++ b/Master/texmf-dist/doc/latex/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 +]{ocgtools} + +\input ocgtools-test.tex +\end{document} 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 differnew file mode 100644 index 00000000000..a2b56e139b8 --- /dev/null +++ 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-panelleft.tex b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-pdfscreen-panelleft.tex new file mode 100644 index 00000000000..89af37a8681 --- /dev/null +++ b/Master/texmf-dist/doc/latex/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, +nobutton, nopageclose +]{ocgtools} + +\input ocgtools-test.tex +\end{document} 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 differnew file mode 100644 index 00000000000..528c9a8b0ea --- /dev/null +++ b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-pdfscreen.pdf diff --git a/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-pdfscreen.tex b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-pdfscreen.tex new file mode 100644 index 00000000000..48921a775a9 --- /dev/null +++ b/Master/texmf-dist/doc/latex/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 +]{ocgtools} + +\input ocgtools-test.tex +\end{document} 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 differnew file mode 100644 index 00000000000..aee41b3da7c --- /dev/null +++ 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-leftpanel.tex b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-web-leftpanel.tex new file mode 100644 index 00000000000..12e80f8e2a6 --- /dev/null +++ b/Master/texmf-dist/doc/latex/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/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 differnew file mode 100644 index 00000000000..a8f992ed667 --- /dev/null +++ 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-rightpanel.tex b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-web-rightpanel.tex new file mode 100644 index 00000000000..6ede932b445 --- /dev/null +++ b/Master/texmf-dist/doc/latex/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/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 differnew file mode 100644 index 00000000000..3e18973fa50 --- /dev/null +++ b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-web.pdf diff --git a/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-web.tex b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-web.tex new file mode 100644 index 00000000000..ffdd2212447 --- /dev/null +++ b/Master/texmf-dist/doc/latex/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/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-preview.bat b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-preview.bat new file mode 100755 index 00000000000..7f0a9ab7a29 --- /dev/null +++ b/Master/texmf-dist/doc/latex/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/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-preview.pdf b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-preview.pdf Binary files differnew file mode 100644 index 00000000000..cb4a7094f1f --- /dev/null +++ b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-preview.pdf diff --git a/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-preview.sh b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-preview.sh new file mode 100644 index 00000000000..344d55fef7b --- /dev/null +++ b/Master/texmf-dist/doc/latex/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/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-preview.tex b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-preview.tex new file mode 100644 index 00000000000..a80693b3d73 --- /dev/null +++ b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-preview.tex @@ -0,0 +1,65 @@ +\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 + +\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/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-test.bat b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-test.bat new file mode 100755 index 00000000000..84155c14cf0 --- /dev/null +++ b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-test.bat @@ -0,0 +1,42 @@ +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 + +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 new file mode 100644 index 00000000000..a722cf2947b --- /dev/null +++ b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-test.sh @@ -0,0 +1,42 @@ +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 + +sh ocgtools-preview.sh ocgtools-preview
\ 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 new file mode 100644 index 00000000000..6089b771aca --- /dev/null +++ b/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-test.tex @@ -0,0 +1,254 @@ +\usepackage[metapost]{mfpic} +\opengraphsfile{mfpic-picture} +\usepackage{amsmath} +\usepackage{helvet} +\let\rmdefault\sfdefault + +\usepackage{wrapfig} + +% 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} + +\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} + +\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{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 + 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]{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. + +\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{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} +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{*-web-nopanel.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[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 + \ifocgtools@noocg noocg, \fi \ifx \ocgtools@progressmsg\relax + noprogressmsg, \fi \if@ocgtools@mouseover mouseover,\fi + \if@ocgtools@minimouseover minimouseover,\fi \if@ocgtools@pageclose\else nopageclose,\fi \makeatother } + + +\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 \usetheme \undefined +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/Master/texmf-dist/doc/latex/ocgtools/examples/preview-temp.pdf b/Master/texmf-dist/doc/latex/ocgtools/examples/preview-temp.pdf Binary files differnew file mode 100644 index 00000000000..2ad3cf76360 --- /dev/null +++ b/Master/texmf-dist/doc/latex/ocgtools/examples/preview-temp.pdf diff --git a/Master/texmf-dist/doc/latex/ocgtools/examples/tall.jpg b/Master/texmf-dist/doc/latex/ocgtools/examples/tall.jpg Binary files differnew file mode 100644 index 00000000000..7df7b6ef2fc --- /dev/null +++ b/Master/texmf-dist/doc/latex/ocgtools/examples/tall.jpg diff --git a/Master/texmf-dist/doc/latex/ocgtools/examples/wide.jpg b/Master/texmf-dist/doc/latex/ocgtools/examples/wide.jpg Binary files differnew file mode 100644 index 00000000000..130885e5dd7 --- /dev/null +++ b/Master/texmf-dist/doc/latex/ocgtools/examples/wide.jpg diff --git a/Master/texmf-dist/doc/latex/ocgtools/ocgtools.pdf b/Master/texmf-dist/doc/latex/ocgtools/ocgtools.pdf Binary files differnew file mode 100644 index 00000000000..7f007807a04 --- /dev/null +++ b/Master/texmf-dist/doc/latex/ocgtools/ocgtools.pdf |