# Fancy-preview

### perl script for enhancing PDF documents written by LaTeX (Win/Linux)

#### Introduction

The script fancy-preview is a script which can be used to extract displayed equations, theorem-like environments, figures and bibliography references and attach this material as tooltip to LaTeX \ref, \eqref and \cite comand. This has been requested by several (pdf)(La)TeX users. See this link for some discussion and papers 1 and 2 as demos of interactive PDF with similar properties. Interested? Basicaly I converted the papers from the bottom of the current page to the fancytooltips enhanced versions by adding \usepackage{hyperref}, checking that each \bibitem is followed by blank line and compiling by "perl fancy-preview paper" instead of "pdflatex paper.tex". The compilation is about three times slower and the filesize about two times bigger.

Below you find static pictures, demo and real examples.

#### User documentation

For short explanation how to use the script see the manual to fancytooltips package, the comments inside the fancy-preview script itself and the help.

### Pictures

Lemma (enviroment lemma):

Citation in text:

Displayed equation:

### Showcase

The examples have been compiled with the script compile and with the following files. Basicaly, you can find here PDF files with hyperref links. Each link is followed by a button in fancy-tooltiped version. This button is invisible in mathematical papers and blue soap in presentations. Mouseover action on this button opens the tooltip.

#### Presentations

 Presentation enhanced PDF classic PDF TeX source presentation 1 PDF PDF TeX presentation 2 PDF PDF TeX

#### Papers

 Paper enhanced PDF classic PDF TeX source paper 2 PDF PDF TeX paper 4 PDF PDF TeX paper 5 PDF PDF TeX paper 6 PDF PDF TeX paper 7 PDF PDF TeX paper 8 PDF PDF TeX paper 9 PDF PDF TeX

#### Demo files

 Demo enhanced PDF classic PDF TeX source previewreferencesdemo PDF PDF TeX biblatex-test PDF PDF TeX fancy-preview-demo PDF PDF TeX

#### Complex demo files

Here you can find large presentations (screen versions of texbooks) created by fancy-preview script.
• Math 1
• The classical pdflatex compilation takes 3 sec and the file size is 774K
• The compilation using this program to crop PDF takes 1 minute 12 sec and the file size is 1.6M.
• The compilation using pdfcrop from TeXlive (default setting) takes 3 minutes 8 sec and the file size is 6.7M.
• Math 2
• Math 0
• Applied Math