summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/fancytooltips/examples/example.tex
blob: 098c0e777703a10c47b765cfd8e499c9b16968d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
\documentclass{article}

\usepackage[screen,panelright]{pdfscreen}

\usepackage[pdftex]{eforms}

\usepackage[filename=tooltipy]{fancytooltips}

% \buttontipwidth=3in
% \buttontipheight=3in
% \def\delayinterval{50}
% \def\TooltipExtratext{}
% \definecolor{tooltipcolor}{rgb}{1,0,0}

\panelwidth=0.73in
\setlength\buttonwidth{.9\panelwidth}
\setlength\smallbuttonwidth{.45\panelwidth}
\addtolength{\smallbuttonwidth}{-1.2pt}

\margins{0.1in}{0.1in}{0.1in}{0.1in}
\urlid{www.mendelu.cz/user/marik}
\screensize{4in}{5.2in}
\definecolor{buttonbackground}{gray}{.6}
\definecolor{buttonshadow}{gray}{.2}
\emblema{logomu.pdf}

% \definecolor{panelbackground}{rgb}{1,1,0.9}
\definecolor{lightyellow}{rgb}{1,1,0.9}
\backgroundcolor{lightyellow}
\makeatletter

%%% uprava panelu tak abych do praveho horniho rohu kazde stranky
%%% vpasoval tlacitko s animacemi. Bude se jmenovat porad stejne, ale
%%% zda se ze to nevadi.
%%%
%%% This is a trick which puts \frametip on every page
 
\def\@@logo#1{%
  \hfill\frametip  \\%%%%% tady je to tlacitko
  \global\setbox0=\hbox{
    \includegraphics{#1}}%
  \ifdim\ht0>\wd0%
  \includegraphics[height=0.9\hsize]{#1}%
  \else%
  \ifdim\wd0>\ht0%
  \includegraphics[width=0.9\hsize]{#1}%
  \else%
  \ifdim\wd0=\ht0%%
  \includegraphics[width=0.9\hsize]{#1}%
  \fi\fi\fi
}


\def\panel{%
       \begin{minipage}[t][\paperheight][c]{\panelwidth}%
       \normalsfcodes%
       \centering%
        %\null
	\vspace*{3pt}%\vfill%
        \ifx\@emblema\@empty\relax\else%
        \@@logo{\@emblema}\par\vfill\fi%
	\ifx\logoB\undefined\else\logoB\fi
     \if@paneltoc%
      \@panel@toc\par\vfill\else\relax\fi%
       \color{blue}%
   \NavigationPanel%
   \par%\vfill
   %\null
   \vspace*{1pt}%
   \end{minipage}%
}


%%% odstaranim polozku Contents z panelu
%%% we remove the contents from panel

\def\NavigationPanel{\normalsfcodes%
     \href{\@urlid}{\addButton{\buttonwidth}{\@Panelhomepagename}}\\ \pfill
     \Acrobatmenu{Print}{\addButton{\buttonwidth}{Print}}\\\pfill
     \Acrobatmenu{FirstPage}{\addButton{\buttonwidth}{\FBlack\@Paneltitlepagename}}\\\pfill
     \Acrobatmenu{FirstPage}{\addButton{\smallbuttonwidth}{\FBlack\scalebox{.8}[1.4]{\btl\btl}}}\hspace*{-2pt}
     \Acrobatmenu{LastPage}{\addButton{\smallbuttonwidth}{\LBlack\scalebox{.8}[1.4]{\rtl\rtl}}}\\\pfill
     \Acrobatmenu{PrevPage}{\addButton{\smallbuttonwidth}{\FBlack\scalebox{.8}[1.4]{\btl}}}\hspace*{-2pt}
     \Acrobatmenu{NextPage}{\addButton{\smallbuttonwidth}{\LBlack\scalebox{.8}[1.4]{\rtl}}}\\\pfill
     \Acrobatmenu{GoToPage}{\addButton{\buttonwidth}{\@Panelpagename\space
       \textcolor{red}{\thepage}\space\@Panelofname\space
       \textcolor{red}{\ScreenLastPage}}}\\\pfill
     \Acrobatmenu{GoBack}{\addButton{\buttonwidth}{\@Panelgobackname}}\\\pfill
     \Acrobatmenu{FullScreen}{\addButton{\buttonwidth}{\@Panelfullscreenname}}\\\pfill
     \Acrobatmenu{Close}{\addButton{\buttonwidth}{\@Panelclosename}}\\\pfill
     \Acrobatmenu{Quit}{\addButton{\buttonwidth}{\@Panelquitname}}\\
}

\makeatother


\let\rmdefault\sfdefault


\usepackage{amsmath}
\usepackage[shadein]{shadethm}

\newshadetheorem{definice}{Definice}

\usepackage{graphicx}

\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 first links are tooltips, the third one is animated tooltip.
  have a fun
\end{itemize}
\begin{definice}
  This is definition of  \tooltip{rank}{hodnost}. bla bla bla.
\end{definice}


\begin{definice}
  This is definition of \tooltip{derivative}{derivace}. 
\end{definice}

This is a geometric  \tooltipanim{idea}{3}{27} which is behind the definition of derivative.

\newpage
Page 2

Here we speak more about \tooltip{rank}{hodnost}
\newpage
Page 3 
\TooltipHidden
\end{document}