texmacs-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Texmacs-dev] adding pdf hyperlink support


From: marc lalaude-labayle
Subject: Re: [Texmacs-dev] adding pdf hyperlink support
Date: Wed, 29 Jun 2011 20:54:59 +0200

I follow your posts about this feature and really hopes you'll achieve to add this one to texmacs.

Marc

2011/6/29 Sam Liddicott <address@hidden>

Wow, I'm nearly there.

Using post_display on locus_box_rep I can blot out a hyperlink!

So I'm just adding the anchor and href methods to the renderer class.

Sam


On 28/06/11 18:15, Sam Liddicott wrote:


I'm determined to add PDF hyperlink support to texmacs.

This post-script can be inserted wherever a <label> is rendered:

[ /Dest (LABEL-ID-HERE) cvn /View [/XYZ null null null] /DEST pdfmark

I've found the point at which the label is rendered but because it has no real appearance of it's own I've still got to poke my way through to the printer_rep layer.

This post-script can be inserted wherever a reference appears, by which I mean a certain type of LOCUS.

[
/Rect [ .. ..... .. ]
/Border [16 16 1 [3 10]]
/Color [1 0 0]
/Dest (LABEL-ID-HERE) cvn
/Subtype /Link
/ANN pdfmark

The rect coordinates are the same as used when rendering the locus with mouse-over so that it shows a green box.

I've tested the post-script by hand-editing files and it does work.

I'm sure that I get to do this somewhere around the final print statement in concater_rep::typeset_locus file concat_active.cpp but I still can't make the link between that point and the printer_rep renderer, unless concat_active is a subclass which I doubt.

So right now I'm trying to track down what locus_box does. I see it in change_boxes.cpp but am no closer to finding the point at which printer_rep's print() is invoked or where the green rect coords are kept, but I hope to find it soon.


I'm both cases LABEL-ID-HERE has to have weird symbols in octal with \, and \ ( ) escaped by \

This is taking me HOURS so if anyone who knows the C better than me wants to speak out, please do.

Sam

_______________________________________________
Texmacs-dev mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/texmacs-dev


--
[FSF Associate Member #2325] <http://www.fsf.org/register_form?referrer=2325>

<http://www.openrightsgroup.org/>


_______________________________________________
Texmacs-dev mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/texmacs-dev


reply via email to

[Prev in Thread] Current Thread [Next in Thread]