Tag Info

42

Finally I came up with a \tooltip command that works across a small number of PDF viewers, among which is an Open-Source one. The tooltip command allows for TeX-formatted tip texts. \tooltip[*[*[*[*]]]] [<link colour>]{<link text>} [<tip box colour>]{<tip text>} [<x-offset>,<y-offset>] It ...

27

The following is for people who have the stable version of TeXLive which ships out with version 1.8 of fancytooltips. (For newer versions and other TeX distributions see below.) Here is a possibility using fancytooltips package by robert.marik.cz, who is also a regular in this site. See also related topic: Showing the bibliographic entry in a popup when ...

27

Here is a non-fancytooltips solution that supports any driver, including xelatex, allowing you to use OpenType and TrueType fonts. It makes use of the macro \tooltip[<link text colour>]{<link text>}[<tip box colour>]{<tip text>} for generating draggable boxes in the PDF display of AdobeReader. The macro for creating an inline ...

26

This would require hacking the fancytooltips package. Since fancytooltips depends on packages which are not in TeXLive, I tried something on my own. The tool-tip command defined below supports all common output drivers (LaTeX workflows): latex->dvips->ps2pdf (dvips must not be called with option -Ppdf!) latex->dvipdfmx xelatex, lualatex, pdflatex The ...

20

\tooltip[black]{foo}[blue!50]{Hint: What is the definition of foo?} If the mouse is moved over 'foo' the tip is shown and it disappears immediately when the mouse is moved out. In order to drag the tip around, 'foo' must be clicked. The tip remains visible. Move the mouse over the tip, click it and move it around. Click the tip once more to pin it down at ...

11

This is thought as addition to hpesoj626’s answer for MiKTeX users: As already mentioned you need an installation of a Perl distribution, see in my answer to MiKTeX and Perl scripts (and one Python script). Unfortunately you must additonally install the module Config::IniFiles by hand: In Strawberry Perl you go into the command line tool “CPAN Client” (can ...

10

Use BRISS: It's light and free. And it's portable (you don't need to install anything). I tried it on Windows 8.1. You can download it from here and run it: 1- "l": load 2- "cancel" (or enter page numbers to be excluded). 3- Adjust the top-left and bottom-right corners of the desired rectangle with mouse. 4- "c": crop and save the ...

10

You can use the \tooltip macro defined in https://tex.stackexchange.com/a/120005. \tooltip{\includegraphics{example}}[green!20]{this is the description} It works with all common drivers (pdflatex, latex->dvips->ps2pdf, xelatex, ...). Moreover, the pop-up is draggable. The box background colour of the pop-up box as well as the text colour of the link ...

9

A simple way to do this would be to just fade out the text that want to be underneath. By using the array package package I have defined two new column types, L and C for left and centered columns which have the text displayed with color gray!25. For the entries that you want on top, I used \multicolumn so that the color would not be applied. Further ...

8

While not as fancy as the tooltip in the answer from @AlexG, you can have contents appear on mouse over/click events using ocg-p: \documentclass{article} \usepackage[demo]{graphicx} \usepackage{ocg-p} \begin{document} \toggleocgs[triggerocg=allactions]{1}{% \includegraphics[width=3cm,height=5cm]{example}% }% \begin{ocg}[listintoolbar=never,printocg=...

6

Tooltips in PDF documents are generally possible. I do know two packages; one of them you tagged yourself for your question, the other one I added, click on these tags to see, which questions were already asked in TeX.SX: fancytooltips & pdfcomment. But as Joseph Wright in a comment wrote: How PDF viewers show 'hover text' is down the them, not the ...

6

Is an overstrike allowed? If so, this restores the kerning. I don't comprehend the tooltip code, but tried to show what I mean in this MWE. The key to restoring the proper kerning is to start the \tooltip macro on #1 and end it on #1. I have EDITED to insert \relax after the \kerns, per the OP's warning. I have re-EDITED, based on comments from the OP. ...

4

The tool-tips can contain mathematical expressions. Below there's an example. I used the file following mathtips.tex document \documentclass{article} \usepackage{xcolor} \usepackage{amsmath} \usepackage{framed} \usepackage[createtips]{fancytooltips} \colorlet{shadecolor}{blue!20} \begin{document} \keytip{distrib}\begin{shaded} \begin{align} a ( b + c ) &...

4

Fancytooltips allow to insert pictures (pages of external PDF file) on the page. The user have to prepare the external file and use commands to insert tooltips in the main document. Fancy-preview creates the external file with tooltips automatically from equations, figures etc and adds the tooltips to \ref-like commands also automatically. Both require ...

4

The minimal tooltip macro definition below uses mouse-down and up events in addition to roll-over and out for showing/hiding the tooltip. This works in Adobe Reader on my PC. Take it as a proof of concept if it works on a tablet or phone too. In case of multiline tooltips, the tip text should be put into a \parbox[b]{}{}. \documentclass{article} \usepackage{...

4

Here is a solution. Note: This is not about using fancytooltips but how adding elements to a non latex pdf file, named here mytest.pdf and included implicitly with mtpage environment. (if i understand) Note the example use \usepackage[filename=tooltipy,movetips,mouseover]{fancytooltips} from fancytooltips documentation examples. The environment mtpage ...

4

It is to some extend possible to add unicode chars (including math symbols) to pdfcomment if you compile with lualatex (^^^^2200 etc can be replaced by the real unicode input ∀) but annotation will imho never be able to show complex equations: \documentclass{article} \PassOptionsToPackage{unicode}{hyperref} \usepackage{pdfcomment} \begin{document} text\...

4

For multiline text, wrap the tip text into a \parbox of given width: \tooltip****{foo}{\parbox{0.8\linewidth}{... long text ...}} For rounded corners, replace \fcolorbox in the tooltip code with, e. g., \tcbox from package tcolorbox %\fcolorbox{black}{#7}{#8}% \tcbox[colframe=black,colback=#7,size=fbox,arc=1ex]{#8}% \documentclass{article} %%%%%...

3

My suggestion is to slight re-design the \tooltip syntax. The first parameter of such macro is the whole word, but the highlighted text is surrounded into second braces pair, for example: \tooltip{A{V}Atar}{avatar} If there isn't the second brace pair then the whole text is highlighted: \tooltip{tipped text}{tip} This can be implemented simply without ...

3


3

It seems that LaTeX cannot find the file fancytipmark.pdf . You should set the path to this file or put the file somewhere in the LaTeX path. btw: The approach used in fancytooptips package is overcomplicated. It worked well when the package was created, but the situation is different today. I agree with AlexG that there are better methods nowadays.

2

You can use \smash: % --- tooltip document \begin{filecontents*}{fancytipmark.tex} \documentclass{article} \usepackage[createtips]{fancytooltips} \usepackage{geometry} \geometry{noheadfoot,nomarginpar,margin=0in,paperwidth=4in,paperheight=1in} \pagestyle{empty} \parindent=0pt \begin{document} \keytip{citekey} abc \end{document} \end{filecontents*} % --- ...

2

You have to use the fancy-preview script as I have mentioned in my comment. Follow the guide in my answer to Mouseover events in beamer: hovering on \eqref and a comment containing the original equation popping up. Then in your terminal, run the command: perl fancy-preview myfile without the file extension.

2

Another possibility: do not use diplayed equation, use inline math and the \colorbox command. \documentclass{article} \usepackage{xcolor} \usepackage{amsmath} \usepackage[createtips]{fancytooltips} \colorlet{shadecolor}{yellow!50} \begin{document} \Huge \keytip{M2} \colorbox{shadecolor}{ \$\displaystyle M= \begin{bmatrix} \alpha & \beta \\ \...

2

One option would be to box the equation, calculate its width and use this width for a minipage containing the expression; here's an example: \documentclass{article} \usepackage{xcolor} \usepackage{amsmath} \usepackage{framed} \usepackage[createtips]{fancytooltips} \colorlet{shadecolor}{yellow!50} \newsavebox\mybox \begin{document} % fill the box \savebox\...

2

Check out PDF manipulation tips, Part 1. I haven't used this functionality before myself, but ghostscript can apparently handle this from the command line with: gswin32c.exe -sDEVICE=pdfwrite -dMaxSubsetPct=100 -dPDFSETTINGS=/ebook -sOutputFile="outfile.pdf" -dNOPAUSE -dBATCH "infile.pdf" where -dPDFSETTINGS is used to define how images are resampled. ...

2

The fancytooltips package must be called with the inactive option. Then it compiles.

2

I just found this fancytipmark.pdf file that is not included natively in MikTeX. It is included in the compressed folder that can be downloaded from CTAN's fancytooltips page, here http://mirrors.ctan.org/macros/latex/contrib/fancytooltips.zip By including this file or indicating its path, as indicated by the author of the package ( @robert.marik.cz ) ...

1

An alternative \tooltip command taken from ->here<-, with an option added to specify x and y offsets of the tip box: \tooltip[<link colour>]{<link text>}[<tip box colour>]{<tip text>}[<x offset>,<y offset>] Moreover, the tip box can be moved around with the mouse. \documentclass{article} \usepackage{eforms} %%%%%%%%...

Only top voted, non community-wiki answers of a minimum length are eligible