diff options
author | Karl Berry <karl@freefriends.org> | 2007-02-22 19:55:16 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2007-02-22 19:55:16 +0000 |
commit | 2f5894cda3e5c9c65f3a7c15097ccab670381247 (patch) | |
tree | 53c749decfdbb74760a33b4861a93d3cc0562458 /Master/texmf-dist/doc/latex/fancytooltips/examples | |
parent | 7144b710518294eb640d7f28ff4ff08b656fd35d (diff) |
new latex package fancytooltips, 19feb07
git-svn-id: svn://tug.org/texlive/trunk@3982 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/blackpanel.tex | 26 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/fancytooltips/examples/example-min.pdf | bin | 0 -> 340347 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/fancytooltips/examples/example-min.tex | 36 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/fancytooltips/examples/example.pdf | bin | 0 -> 376873 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/fancytooltips/examples/example.tex | 138 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/fancytooltips/examples/fancytips.tex | 2 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/fancytooltips/examples/logomu.pdf | bin | 0 -> 12287 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/fancytooltips/examples/pdfscreen.cfg | 42 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/fancytooltips/examples/tecna2.pdf | bin | 0 -> 86631 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/fancytooltips/examples/tooltipy.pdf | bin | 0 -> 308947 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/fancytooltips/examples/tooltipy.tex | 75 |
11 files changed, 319 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/fancytooltips/examples/blackpanel.tex b/Master/texmf-dist/doc/latex/fancytooltips/examples/blackpanel.tex new file mode 100644 index 00000000000..e29da914575 --- /dev/null +++ b/Master/texmf-dist/doc/latex/fancytooltips/examples/blackpanel.tex @@ -0,0 +1,26 @@ +\definecolor{panelbackground}{rgb}{0,0,0} +\definecolor{stara}{rgb}{.992, .96187, .902} +\definecolor{svetlehneda}{rgb}{0.93, 0.73, 0.49} +\definecolor{svetlehnedaB}{rgb}{0.92, 0.87, 0.79} +\definecolor{vybledlazluta}{rgb}{0.97,0.87,0.52} +\backgroundcolor{vybledlazluta} +\backgroundcolor{svetlehnedaB} +\edef\restoreAtCatcode{\noexpand\catcode64 =\the\catcode64 }% + + +\makeatletter +\long\def\contentsline#1#2#3#4{\def\@@cHead{#1}% + \ifx\@@cHead\@@secHead\stepcounter{NUM}% + \ifnum\thepanel@section=\theNUM% + {\definecolor{panelbackground}{gray}{0}% + \definecolor{fgcolor}{rgb}{1,0,0}% + \hyperlink{#4}{\,\scrNormalButton{.965\panelwidth}{\truncate{.9\panelwidth}{#2}}}% + }\par\vskip1truept% + \else + {\definecolor{panelbackground}{gray}{0}%% + \definecolor{fgcolor}{gray}{0.5}% + \hyperlink{#4}{\,\scrNormalButton{.965\panelwidth}{\truncate{.9\panelwidth}{#2}}}% + }\par\vskip1truept% + \fi\fi} + +\restoreAtCatcode diff --git a/Master/texmf-dist/doc/latex/fancytooltips/examples/example-min.pdf b/Master/texmf-dist/doc/latex/fancytooltips/examples/example-min.pdf Binary files differnew file mode 100644 index 00000000000..aa676e6bb0a --- /dev/null +++ b/Master/texmf-dist/doc/latex/fancytooltips/examples/example-min.pdf diff --git a/Master/texmf-dist/doc/latex/fancytooltips/examples/example-min.tex b/Master/texmf-dist/doc/latex/fancytooltips/examples/example-min.tex new file mode 100644 index 00000000000..e25741d0ce1 --- /dev/null +++ b/Master/texmf-dist/doc/latex/fancytooltips/examples/example-min.tex @@ -0,0 +1,36 @@ +\documentclass{article} + +\usepackage[a5paper,landscape]{geometry} + +\usepackage{color} +\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 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{derivative}{derivace}. + +This is a geometric \tooltipanim{idea}{3}{27} which is behind the +definition of derivative. + + +\newpage +page 2 \TooltipHidden + +\end{document} diff --git a/Master/texmf-dist/doc/latex/fancytooltips/examples/example.pdf b/Master/texmf-dist/doc/latex/fancytooltips/examples/example.pdf Binary files differnew file mode 100644 index 00000000000..e9fafae7606 --- /dev/null +++ b/Master/texmf-dist/doc/latex/fancytooltips/examples/example.pdf diff --git a/Master/texmf-dist/doc/latex/fancytooltips/examples/example.tex b/Master/texmf-dist/doc/latex/fancytooltips/examples/example.tex new file mode 100644 index 00000000000..098c0e77770 --- /dev/null +++ b/Master/texmf-dist/doc/latex/fancytooltips/examples/example.tex @@ -0,0 +1,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} diff --git a/Master/texmf-dist/doc/latex/fancytooltips/examples/fancytips.tex b/Master/texmf-dist/doc/latex/fancytooltips/examples/fancytips.tex new file mode 100644 index 00000000000..ba438bfb5b7 --- /dev/null +++ b/Master/texmf-dist/doc/latex/fancytooltips/examples/fancytips.tex @@ -0,0 +1,2 @@ +\tooltipname{derivace}{1} +\tooltipname{hodnost}{2} diff --git a/Master/texmf-dist/doc/latex/fancytooltips/examples/logomu.pdf b/Master/texmf-dist/doc/latex/fancytooltips/examples/logomu.pdf Binary files differnew file mode 100644 index 00000000000..1f67464d89e --- /dev/null +++ b/Master/texmf-dist/doc/latex/fancytooltips/examples/logomu.pdf diff --git a/Master/texmf-dist/doc/latex/fancytooltips/examples/pdfscreen.cfg b/Master/texmf-dist/doc/latex/fancytooltips/examples/pdfscreen.cfg new file mode 100644 index 00000000000..c2f6e86497d --- /dev/null +++ b/Master/texmf-dist/doc/latex/fancytooltips/examples/pdfscreen.cfg @@ -0,0 +1,42 @@ +\def\@@logo#1{% + \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}% +} + +\def\pfill{\vskip 0.5pt} +\emblema{logo-bc.jpg} +\urlid{www.mendelu.cz/user/marik} + +\hypersetup{pdfpagemode=Window, pdfnewwindow=true, pdfmenubar=true,% + pdftoolbar=true,colorlinks, pdfwindowui=true, + pdfpagemode=UseOutlines} + +\input blackpanel +\endinput diff --git a/Master/texmf-dist/doc/latex/fancytooltips/examples/tecna2.pdf b/Master/texmf-dist/doc/latex/fancytooltips/examples/tecna2.pdf Binary files differnew file mode 100644 index 00000000000..b4f69baa0f8 --- /dev/null +++ b/Master/texmf-dist/doc/latex/fancytooltips/examples/tecna2.pdf diff --git a/Master/texmf-dist/doc/latex/fancytooltips/examples/tooltipy.pdf b/Master/texmf-dist/doc/latex/fancytooltips/examples/tooltipy.pdf Binary files differnew file mode 100644 index 00000000000..0b1009d2759 --- /dev/null +++ b/Master/texmf-dist/doc/latex/fancytooltips/examples/tooltipy.pdf diff --git a/Master/texmf-dist/doc/latex/fancytooltips/examples/tooltipy.tex b/Master/texmf-dist/doc/latex/fancytooltips/examples/tooltipy.tex new file mode 100644 index 00000000000..3fff46ebb60 --- /dev/null +++ b/Master/texmf-dist/doc/latex/fancytooltips/examples/tooltipy.tex @@ -0,0 +1,75 @@ +\documentclass{article} +% \usepackage[czech]{babel} +% \usepackage[IL2]{fontenc} + +\usepackage[createtips]{fancytooltips} + +\usepackage{fancybox} +\parindent 0 pt + +\usepackage{color} +\definecolor{gray}{rgb}{0.8, 0.8, 0.8} +\definecolor{lightblue}{rgb}{0.7, 0.7, 1} +\definecolor{lightgreen}{rgb}{0.7, 1, 0.7} + +\usepackage{multido,graphicx} +\usepackage[papersize={5in,5in},margin=1pt]{geometry} +\long\def\stranka#1#2{ + \begin{flushright} +\fboxsep 0 pt +\color{red} +\shadowbox{{\fboxsep 4pt\colorbox{yellow} + {\begin{minipage}{0.5\linewidth} + \color{black}#2 + \end{minipage}}}} + \end{flushright} +\keytip{#1} + \newpage +} + +\def\definice#1{ + \begin{center} + \colorbox{gray}{\begin{minipage}{0.9\linewidth} #1 + \end{minipage}} + \end{center} +} +\def\vyuziti#1{ + \begin{center} + \colorbox{lightblue}{\begin{minipage}{0.9\linewidth} #1 + \end{minipage}} + \end{center} +} +\def\vypocet#1{ + \begin{center} + \colorbox{lightgreen}{\begin{minipage}{0.9\linewidth} #1 + \end{minipage}} + \end{center} +} + + +\begin{document} + +\stranka{derivace}{ \definice{The \textbf{derivative} is the limit + $$\lim_{h\to0}\frac{f(x+h)-f(x)}h,$$ if this limit exists as a finite number.} \vyuziti{ The derivative + has important applications in physics as a rate of change and as a + 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.}} + + + +\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} +\newpage} + + +\multido{\i=1+1}{25}{\obrazek{\i}} + +\end{document} |