summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/fancytooltips/examples
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2007-03-18 23:44:11 +0000
committerKarl Berry <karl@freefriends.org>2007-03-18 23:44:11 +0000
commitb258a3e8678fb74008868627b815aa566c87f561 (patch)
treeea47ad5210d16019f1f47e353e905c4e9d13f85e /Master/texmf-dist/doc/latex/fancytooltips/examples
parent60b16cc4ebfd06c89381dd6927e20246d3c08bff (diff)
fancytooltips update (12mar07)
git-svn-id: svn://tug.org/texlive/trunk@4053 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/fancytooltips/examples')
-rw-r--r--Master/texmf-dist/doc/latex/fancytooltips/examples/example-min.pdfbin340347 -> 326231 bytes
-rw-r--r--Master/texmf-dist/doc/latex/fancytooltips/examples/example-min.tex17
-rw-r--r--Master/texmf-dist/doc/latex/fancytooltips/examples/example.pdfbin376873 -> 397418 bytes
-rw-r--r--Master/texmf-dist/doc/latex/fancytooltips/examples/example.tex251
-rw-r--r--Master/texmf-dist/doc/latex/fancytooltips/examples/fancytips.tex1
-rw-r--r--Master/texmf-dist/doc/latex/fancytooltips/examples/tooltipy.pdfbin308947 -> 305779 bytes
-rw-r--r--Master/texmf-dist/doc/latex/fancytooltips/examples/tooltipy.tex52
7 files changed, 276 insertions, 45 deletions
diff --git a/Master/texmf-dist/doc/latex/fancytooltips/examples/example-min.pdf b/Master/texmf-dist/doc/latex/fancytooltips/examples/example-min.pdf
index aa676e6bb0a..f4700ce6db5 100644
--- a/Master/texmf-dist/doc/latex/fancytooltips/examples/example-min.pdf
+++ b/Master/texmf-dist/doc/latex/fancytooltips/examples/example-min.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/fancytooltips/examples/example-min.tex b/Master/texmf-dist/doc/latex/fancytooltips/examples/example-min.tex
index e25741d0ce1..945f058eaf9 100644
--- a/Master/texmf-dist/doc/latex/fancytooltips/examples/example-min.tex
+++ b/Master/texmf-dist/doc/latex/fancytooltips/examples/example-min.tex
@@ -6,31 +6,28 @@
\usepackage[pdftex]{eforms}
\usepackage[filename=tooltipy]{fancytooltips}
-\pagestyle{headings}\markright{Heading\hfill \frametip}
-
\begin{document}
\parindent 0 pt
\begin{itemize}
-\item The blue text is active button. If you move mouse to this button
- with Shift key down or if you press this button, tooltip appears. Is
- you move your mouse out or if you close the page, the tooltip
- disappears.
+\item The blue text is active button. If you press this button,
+ tooltip appears. Is you move your mouse out or if you close the
+ page, the tooltip disappears.
\item The first links are tooltips, the third one is animated tooltip.
have a fun
\end{itemize}
- This is definition of \tooltip{rank}{hodnost}. bla bla bla.
+ This is definition of \tooltip{rank}{1}. bla bla bla.
- This is definition of \tooltip{derivative}{derivace}.
+ This is definition of \tooltip{derivative}{2}.
-This is a geometric \tooltipanim{idea}{3}{27} which is behind the
+This is a geometric \tooltipanim{idea}{4}{28} which is behind the
definition of derivative.
\newpage
-page 2 \TooltipHidden
+page 2
\end{document}
diff --git a/Master/texmf-dist/doc/latex/fancytooltips/examples/example.pdf b/Master/texmf-dist/doc/latex/fancytooltips/examples/example.pdf
index e9fafae7606..6dce0bfb5e7 100644
--- a/Master/texmf-dist/doc/latex/fancytooltips/examples/example.pdf
+++ b/Master/texmf-dist/doc/latex/fancytooltips/examples/example.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/fancytooltips/examples/example.tex b/Master/texmf-dist/doc/latex/fancytooltips/examples/example.tex
index 098c0e77770..1ec2ded7d5f 100644
--- a/Master/texmf-dist/doc/latex/fancytooltips/examples/example.tex
+++ b/Master/texmf-dist/doc/latex/fancytooltips/examples/example.tex
@@ -1,16 +1,11 @@
\documentclass{article}
\usepackage[screen,panelright]{pdfscreen}
-
\usepackage[pdftex]{eforms}
-\usepackage[filename=tooltipy]{fancytooltips}
+\usepackage[filename=tooltipy,movetips]{fancytooltips}
+
-% \buttontipwidth=3in
-% \buttontipheight=3in
-% \def\delayinterval{50}
-% \def\TooltipExtratext{}
-% \definecolor{tooltipcolor}{rgb}{1,0,0}
\panelwidth=0.73in
\setlength\buttonwidth{.9\panelwidth}
@@ -36,7 +31,7 @@
%%% This is a trick which puts \frametip on every page
\def\@@logo#1{%
- \hfill\frametip \\%%%%% tady je to tlacitko
+% \hfill\frametip \\%%%%% tady je to tlacitko
\global\setbox0=\hbox{
\includegraphics{#1}}%
\ifdim\ht0>\wd0%
@@ -91,48 +86,258 @@
\Acrobatmenu{Quit}{\addButton{\buttonwidth}{\@Panelquitname}}\\
}
-\makeatother
+
+
+\makeatother
+
\let\rmdefault\sfdefault
+\usepackage[czech]{babel}
+\usepackage[IL2]{fontenc}
\usepackage{amsmath}
\usepackage[shadein]{shadethm}
-\newshadetheorem{definice}{Definice}
+\newshadetheorem{definice}{Definition}
\usepackage{graphicx}
+\definecolor{bkg}{rgb}{1,0.9,0.9}
+\def\Message#1{\colorbox{bkg}{
+ \begin{minipage}{1\linewidth}
+ \smallskip
+ #1
+ \smallskip
+ \end{minipage}
+ }}
\begin{document}
\parindent 0 pt
+\Message{
\begin{itemize}
-\item The blue text is active button. If you move mouse to this button
- with Shift key down or if you press this button, tooltip appears. Is
- you move your mouse out or if you close the page, the tooltip
- disappears.
-\item The first links are tooltips, the third one is animated tooltip.
- have a fun
+\item Use Acrobat Reader or Adobe Acrobat and View--Page
+ Layout--Single page to view this file, please.
+\item The blue text is active button. If you \textbf{click} one of
+ these buttons, tooltip appears. If you move your mouse out or if you
+ close the page, the tooltip disappears.
+\item The first links are tooltips, the fifth one is animated tooltip.
+\item The tooltips appears with the left down corner at the mouse
+ cursor, or at least as close as possible. Click on different
+ positions of the same button and have a fun.
\end{itemize}
+}
+
\begin{definice}
- This is definition of \tooltip{rank}{hodnost}. bla bla bla.
+ This is definition of \tooltip{rank}{2}. bla bla bla.
\end{definice}
\begin{definice}
- This is definition of \tooltip{derivative}{derivace}.
+ This is \tooltip{definition}3 of \tooltip{derivative}{1}\hfill
+ \tooltip{derivative}{1}.
\end{definice}
-This is a geometric \tooltipanim{idea}{3}{27} which is behind the definition of derivative.
+This is a geometric \tooltipanim{idea}{4}{28} which is behind the
+definition of derivative.
+
+
+\vfill
+\begin{definice}
+ This is \tooltip{definition}3 of \tooltip{derivative}{1}\hfill
+ \tooltip{derivative}{1}.
+\end{definice}
\newpage
-Page 2
+\makeatletter
+\def\tooltip#1#2{%
+ \write\@auxout{\noexpand\TooltipPage{\thepage}}%
+ \checkTipNumber{#2}\edef\TipNumber{\FindTipNumber{#2}}%
+ \leavevmode
+ \setbox0=\hbox{{\color{tooltipcolor}{#1}}}\hbox to 0 pt{{\copy0\TooltipExtratext\hss}}%
+ \pushButton[\BC{}\BG{}\S{}\AA{\AAMouseExit{\JS{CloseTooltips();}}
+ \AAMouseEnter{\JS{this.getField("ikona."+(this.pageNum+1)).hidden=false;
+ try {app.clearInterval(animace);}catch (e) {}
+ \ifmovetips nastav(\TipNumber);\fi
+ zobraz(\TipNumber);
+ }}}]
+ {TooltipField}{\wd0}{\ht0}}
+\def\delayinterval{200}
+\def\tooltipanim#1#2#3{%
+ \write\@auxout{\noexpand\TooltipPage{\thepage}}%
+ \checkTipNumber{#2}\edef\TipNumberA{\FindTipNumber{#2}}%
+ \checkTipNumber{#3}\edef\TipNumberB{\FindTipNumber{#3}}%
+ \leavevmode
+ \setbox0=\hbox{{\color{tooltipcolor}{#1}}}\hbox to 0 pt{{\copy0\TooltipExtratext\hss}}%
+ \pushButton[\BC{}\BG{}\S{}\AA{\AAMouseExit{\JS{CloseTooltips();}}
+ \AAMouseEnter{\JS{
+ try {app.clearInterval(animace);}catch (e) {}
+ var cislo=\TipNumberA;
+ \ifmovetips nastav(\TipNumberA);\fi
+ function animuj()
+ {
+ if (cislo<\TipNumberB) cislo=cislo+1;
+ this.getField('ikona.'+(this.pageNum+1)).buttonSetIcon(this.getField("animtiph."+cislo).buttonGetIcon());
+ };
+ this.getField('ikona.'+(this.pageNum+1)).buttonSetIcon(this.getField("animtiph."+\TipNumberA).buttonGetIcon());
+ this.getField("ikona."+(this.pageNum+1)).hidden=false;
+ animace=app.setInterval('animuj();', \delayinterval);
+ }}}
+ ]{TooltipField}{\wd0}{\ht0}}
+
+\makeatother
+
+\Message{
+\begin{itemize}
+\item The macros for tooltips are redefined on this page (see the
+ source tex file).
+\item The blue text is active button again, but the tooltip is
+ activated by \textbf{MouseOver} action.
+\item The advantage is that the reader can use Page Up and Down keys,
+ which do not work if th button is clicked.
+\end{itemize}}
+\begin{definice}
+ This is definition of \tooltip{rank}{2}. bla bla bla.
+\end{definice}
+
+
+\begin{definice}
+ This is \tooltip{definition}3 of \tooltip{derivative}{1}\hfill
+ \tooltip{derivative}{1}.
+\end{definice}
+
+This is a geometric \tooltipanim{idea}{4}{28} which is behind the
+definition of derivative.
+
+
+\vfill
+\begin{definice}
+ This is \tooltip{definition}3 of \tooltip{derivative}{1}\hfill
+ \tooltip{derivative}{1}.
+\end{definice}
-Here we speak more about \tooltip{rank}{hodnost}
\newpage
-Page 3
-\TooltipHidden
+
+\makeatletter
+\def\tooltip#1#2{%
+ #1%
+ \write\@auxout{\noexpand\TooltipPage{\thepage}}%
+ \checkTipNumber{#2}\edef\TipNumber{\FindTipNumber{#2}}%
+ \leavevmode
+ \setbox0=\hbox{{\raisebox{0.3em}{\includegraphics[width=0.7em]%
+ {fancytipmark.pdf}}}}\hbox to 0 pt{\hskip -0.0em\copy0\hss}%
+ \hbox to 0 pt{\pushButton[\BC{}\BG{}\S{}\AA{\AAMouseExit{\JS{CloseTooltips();}}
+ \AAMouseEnter{\JS{this.getField("ikona."+(this.pageNum+1)).hidden=false;
+ try {app.clearInterval(animace);}catch (e) {}
+ \ifmovetips nastav(\TipNumber);\fi
+ zobraz(\TipNumber);
+ }}}]
+ {TooltipField}{\wd0}{\ht0}\hss}}
+\def\delayinterval{200}
+\def\tooltipanim#1#2#3{%
+ #1%
+ \write\@auxout{\noexpand\TooltipPage{\thepage}}%
+ \checkTipNumber{#2}\edef\TipNumberA{\FindTipNumber{#2}}%
+ \checkTipNumber{#3}\edef\TipNumberB{\FindTipNumber{#3}}%
+ \leavevmode
+ \setbox0=\hbox{{\raisebox{0.3em}{\includegraphics[width=0.7em]%
+ {fancytipmark.pdf}}}}\hbox to 0 pt{\hskip -0.0em\copy0\hss}%
+ \hbox to 0 pt{%
+ \pushButton[\BC{}\BG{}\S{}\AA{\AAMouseExit{\JS{CloseTooltips();}}
+ \AAMouseEnter{\JS{
+ try {app.clearInterval(animace);}catch (e) {}
+ var cislo=\TipNumberA;
+ \ifmovetips nastav(\TipNumberA);\fi
+ function animuj()
+ {
+ if (cislo<\TipNumberB) cislo=cislo+1;
+ this.getField('ikona.'+(this.pageNum+1)).buttonSetIcon(this.getField("animtiph."+cislo).buttonGetIcon());
+ };
+ this.getField('ikona.'+(this.pageNum+1)).buttonSetIcon(this.getField("animtiph."+\TipNumberA).buttonGetIcon());
+ this.getField("ikona."+(this.pageNum+1)).hidden=false;
+ animace=app.setInterval('animuj();', \delayinterval);
+ }}}
+ ]{TooltipField}{\wd0}{\ht0}\hss}}
+
+\makeatother
+
+\Message{\begin{itemize}
+\item The macros for tooltips are redefined on this page (see the
+ source tex file).
+\item The blue \textbf{soap} is active button and the tooltip is
+ activated by \textbf{MouseOver} action.
+\item The advantage is that the reader can use Page Up and Down keys,
+ which do not work if the button is clicked and the soap is smaller
+ than the text.
+\end{itemize}
+}
+
+\begin{definice}
+ This is definition of \tooltip{rank}{2}. bla bla bla.
+\end{definice}
+
+
+\begin{definice}
+ This is \tooltip{definition}3 of \tooltip{derivative}{1}\hfill
+ \tooltip{derivative}{1}.
+\end{definice}
+
+\begin{definice}
+ This is {definition} of {derivative}\hfill
+ {derivative}.
+\end{definice}
+
+This is a geometric \tooltipanim{idea}{4}{28} which is behind the
+definition of derivative.
+
+This is a geometric idea which is behind the definition of derivative.
+
+
+\vfill
+\begin{definice}
+ This is \tooltip{definition}3 of \tooltip{derivative}{1}\hfill
+ \tooltip{derivative}{1}.
+\end{definice}
+
+\newpage
+
+\movetipsfalse
+
+\Message{This page shows that the tooltip appers in the top right corner if the
+package option \texttt{movetips} is not used.}
+
+\begin{definice}
+ This is definition of \tooltip{rank}{2}. bla bla bla.
+\end{definice}
+
+
+\vfill
+
+\begin{definice}
+ This is \tooltip{definition}3 of \tooltip{derivative}{1}\hfill
+ \tooltip{derivative}{1}.
+\end{definice}
+
+
+\begin{definice}
+ This is {definition} of {derivative}\hfill
+ {derivative}.
+\end{definice}
+
+This is a geometric \tooltipanim{idea}{4}{28} which is behind the
+definition of derivative.
+
+This is a geometric idea which is behind the definition of derivative.
+
+
+\begin{definice}
+ This is \tooltip{definition}3 of \tooltip{derivative}{1}\hfill
+ \tooltip{derivative}{1}.
+\end{definice}
+
+
+
\end{document}
diff --git a/Master/texmf-dist/doc/latex/fancytooltips/examples/fancytips.tex b/Master/texmf-dist/doc/latex/fancytooltips/examples/fancytips.tex
index ba438bfb5b7..d0f37ddb0e7 100644
--- a/Master/texmf-dist/doc/latex/fancytooltips/examples/fancytips.tex
+++ b/Master/texmf-dist/doc/latex/fancytooltips/examples/fancytips.tex
@@ -1,2 +1,3 @@
\tooltipname{derivace}{1}
\tooltipname{hodnost}{2}
+\tooltipname{definition}{3}
diff --git a/Master/texmf-dist/doc/latex/fancytooltips/examples/tooltipy.pdf b/Master/texmf-dist/doc/latex/fancytooltips/examples/tooltipy.pdf
index 0b1009d2759..3dbafbc7290 100644
--- a/Master/texmf-dist/doc/latex/fancytooltips/examples/tooltipy.pdf
+++ b/Master/texmf-dist/doc/latex/fancytooltips/examples/tooltipy.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/fancytooltips/examples/tooltipy.tex b/Master/texmf-dist/doc/latex/fancytooltips/examples/tooltipy.tex
index 3fff46ebb60..3900839282e 100644
--- a/Master/texmf-dist/doc/latex/fancytooltips/examples/tooltipy.tex
+++ b/Master/texmf-dist/doc/latex/fancytooltips/examples/tooltipy.tex
@@ -2,6 +2,7 @@
% \usepackage[czech]{babel}
% \usepackage[IL2]{fontenc}
+\pagestyle{empty}
\usepackage[createtips]{fancytooltips}
\usepackage{fancybox}
@@ -15,18 +16,37 @@
\usepackage{multido,graphicx}
\usepackage[papersize={5in,5in},margin=1pt]{geometry}
\long\def\stranka#1#2{
- \begin{flushright}
+\setbox0=\hbox{\begin{minipage}{2in}
\fboxsep 0 pt
\color{red}
\shadowbox{{\fboxsep 4pt\colorbox{yellow}
- {\begin{minipage}{0.5\linewidth}
+ {\begin{minipage}{\linewidth}
\color{black}#2
\end{minipage}}}}
- \end{flushright}
+\end{minipage}\ \ \ \ }
+\pdfpagewidth=\wd0
+\pdfpageheight=\ht0
+\advance \pdfpageheight by \dp0
+\copy0
\keytip{#1}
\newpage
}
+\long\def\strankaB#1#2{
+\setbox0=\hbox{\fboxsep 0 pt
+\color{red}
+\shadowbox{{\fboxsep 4pt\colorbox{yellow}
+ {\color{black}#2
+ }}}}
+\pdfpagewidth=\wd0
+\pdfpageheight=\ht0
+\advance \pdfpageheight by \dp0
+\copy0
+\keytip{#1}
+ \newpage
+}
+
+
\def\definice#1{
\begin{center}
\colorbox{gray}{\begin{minipage}{0.9\linewidth} #1
@@ -55,18 +75,26 @@
linear approximation.} \vypocet{The derivative can be evaluated
using appropriate formulas}}
-\stranka{hodnost}{ \definice{\textbf{Rank} is a maximal number of linearly independent rows in a matrix.}
-\vyuziti{Rank can be used to prove or disprove linear independence of vectors and it also appears in the Frobenius Theorem.}
-\vypocet{To find the rank of a matrix, you have to convert this matrix into row echelon form.}}
+\stranka{hodnost}{ \definice{\textbf{Rank} is a maximal number of
+ linearly independent rows in a matrix.} \vyuziti{Rank can be used
+ to prove or disprove linear independence of vectors and it also
+ appears in the Frobenius Theorem.} \vypocet{To find the rank of a
+ matrix, you have to convert this matrix into row echelon form.}}
+
+\strankaB{definition}{???}
+\pdfpageheight=0pt
+\pdfpagewidth=0pt
-\def\obrazek#1{
- \begin{flushright}
- \color{red}
- \fboxsep 0 pt{\shadowbox{{\color{black}\includegraphics[width=0.8\hsize,
- page=#1,viewport= 0 57 350 230,clip]{tecna2.pdf}}}}
- \end{flushright}
+\def\obrazek#1{%
+\setbox0=\hbox{\color{red}%
+ \fboxsep 0 pt{\shadowbox{{\color{black}\includegraphics[width=3.5in,
+ page=#1,viewport= 0 57 350 230,clip]{tecna2.pdf}}}}}
+\pdfpagewidth=\wd0
+\pdfpageheight=\ht0
+\advance \pdfpageheight by \dp0
+\copy0
\newpage}