[texhax] document broken under windows
Paul Isambert
zappathustra at free.fr
Thu Oct 14 21:13:12 CEST 2010
Question: instead of Heiko's code, why not simply \pdfescapestring?
\cooltooltip{label}{description}{\pdfescapestring{more
description(}}{}{content}
works very well. Provided you use pdfTeX, that is.
Paul
Le 14/10/2010 20:55, Arno Trautmann a écrit :
> \documentclass{scrartcl}
>
> \usepackage{
> hyperref,
> cooltooltips
> }
>
> \begin{document}
> \makeatletter
> \renewcommand*{\ctip at make@Text}[3][0 1 0]{%
> \pdfstringdef\ctip at Subj{#2}%
> \pdfstringdef\ctip at Contents{#3}%
> \pdfannot width 0pt height 0pt depth 0pt {
> /Subtype /Text
> /C [#1]
> /Subj (\ctip at Subj)
> /Contents (\ctip at Contents)
> /NM (ctip Text \ctip at tip@number)
> /AP<<
> /N \ctip at empty@icon\space 0 R
> /D \ctip at empty@icon\space 0 R
> /R \ctip at empty@icon\space 0 R
> >>
> /Open false
> }%
> }
> \makeatother
>
> \cooltooltip{label}{description}{more description(}{}{content}
>
> \end{document}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/texhax/attachments/20101014/7300b1f7/attachment.html>
More information about the texhax
mailing list