[texhax] document broken under windows

Heiko Oberdiek heiko.oberdiek at googlemail.com
Tue Oct 19 14:03:52 CEST 2010


On Thu, Oct 14, 2010 at 08:41:31PM +0200, Arno Trautmann wrote:

> sorry for taking so long to answer but I was horribly busy this week ?
> So: I could bring this down to the following minimal example. I included
> Heiko's code, but that does not solve the problem. The error is raised
> by Acrobat Reader (testing under Linux, I hope it behaves the same under
> Windows) when using an unmatched parenthesis as stated by Heiko. Only
> the third argument of cooltooltip makes trouble, the second one is fine.
> 
> I am using the second /and/ the third one, as all viewers I am using
> only show the third (actually a URL) and not the second one ? which only
> Acrobat Reader does show. Therefore I am looking for a solution to make
> the third argument robust. Unfortunately, Heiko's Code does not help
> here. Did I make any mistakes?

> \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}

You have also to redefine \ctip at make@Widget.

It contains the line

  /URI (#2)

Thus you have to do the same as in \ctip at make@Text:

  \pdfstringdef\ctip at URI{#2}%
  ...
  /URI (\ctip at URI)

But the url action remains nonsense:
"more description("is not a valid URI.
A suggestion to drop the URI action I have already made,
see my mail with date "2010-10-09 01:43:44 +0200" to mailing
list texhax.

Yours sincerely
  Heiko Oberdiek


More information about the texhax mailing list