I'm looking for a way to get popup references when hovering with the mouse cursor over the references in my papers. I looked around on this forum and found this question and hpesoj626's answer very useful:
Interactive PDF, Latex and Article of the Future
However, it's imperative that I can use opentype/truetype fonts in my document, including CJK. Previously, I've used XeLaTeX. I've realized that XeLaTeX is not an option for this kind of thing, since it doesn't produce PDFs in the same way. However, there is LuaLaTeX, which, as far as I understand, works similarly to pdflatex?
For my own purposes (unicode, CJK) I could just as well use LuaLaTeX (although I haven't tried this yet).
What I cannot use is simple pdflatex, which is what is used in the Perl script provided in hpesoj626's answer to the question I linked to above.
Is there a way to make this script work with unicode and opentype fonts?
Best Answer
Here is a non-
fancytooltips
solution that supports any driver, includingxelatex
, allowing you to use OpenType and TrueType fonts. It makes use of the macrofor generating draggable boxes in the PDF display of AdobeReader.
The macro for creating an inline citation pop-up is:
Inside the macro, after inserting
\cite{<bib key>}
, a phantom "|
" is passed as<link text>
to the first\tooltip
argument, and\fullcite{<bib key>}
as<tip text>
to the second\tooltip
argument.The example uses
biblatex
/biber
. The workflow islatex
->biber
->latex
, run on the base-name of the document source file.Any flavour of
latex
can be used. Of course, thefontspec
- related lines must be commented out for other drivers thanxelatex
orlualatex
.