blob: ef0b8d7536e925f37de84dcb24d8bb1217902c33 (
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
|
% compile with the following command to get html:
% htlatex tooltips2html.tex "xhtml,mouseover"
%
% compile with the following command to get pdf:
% pdflatex tooltips2html.tex && pdflatex tooltips2html.tex
%
\documentclass{article}
\usepackage{color}
\ifx\ifHtml\undefined
\usepackage[mouseover,movetips,filename=logo]{fancytooltips}
\hypersetup{pdfborder=0 0 0}
\else
%%%%% here we define necessary macros for translatio into html
\makeatletter
\def\tooltipname#1#2{\expandafter\xdef\csname FancyToolTip@#1\endcsname{#2}}
\def\FindTipNumber#1{\expandafter\ifx \csname FancyToolTip@#1\endcsname\relax
#1\else\csname FancyToolTip@#1\endcsname\fi}
\def\checkTipNumber#1{\expandafter\ifx
\csname FancyToolTip@#1\endcsname\relax \PackageWarning{fancytooltips}{No
framenumber is assigned to keyword #1. I assume that #1 is the
number of the frame.}%
\fi}
\makeatother
\IfFileExists{fancytips.tex}{\input{fancytips.tex}}%
{\PackageWarning{fancytooltips}{No file fancytips.tex!
Your keywords for tooltips will not work!}}
\newcount\tipnumbercount
\def\tooltip#1#2{\edef\TipNumber{\FindTipNumber{#2}}
\expandafter\tipnumbercount\TipNumber
\edef\temp{images/ttp-\the\tipnumbercount.jpg}
\HCode{
<a href="javascript:void(0);" onmouseover="picturettp='<img src=\temp>'; return overlib(picturettp, RELX,10, RELY, 10, FULLHTML, STICKY, MOUSEOFF);" onmouseout="nd();">#1</a>
}
}
%%%%%%
\fi
\begin{document}
\title{Sample for conversion into html}
\author{Robert Ma\v r\'\i k}
\date{\today}
\maketitle
This is the sample document\footnote{just to show conversion into html}.
Here we use small \tooltip{tooltip}{logo}.
\end{document}
|