|
From: | Sam Liddicott |
Subject: | Re: [Texmacs-dev] Adding http to PDF hyperlinks |
Date: | Fri, 15 Jul 2011 10:22:03 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.20pre) Gecko/20110714 Lightning/1.0b2 Lanikai/3.1.12pre |
On 15/07/11 08:15, Sam Liddicott wrote:
Simple obvious changes to add http external links to the PDF don't work.Examination shows that <hlink|bbc|http://www.bbc.co.uk> is managed as a bridge_locus_rep instead of a locus_box_rep so I've got to track how the bridge_locus_rep is typeset by printer.cpp.I don't know the purpose of distinction of bridge_locus_repIf anyone knows the purpose or meaning or "bridge" please speak out.
So I think in bridge_locus_rep::my_typeset I will add the link target (which I get from my modified build_locus) to the typesetter ttt similarly to how env is given the link colour.
Then the typesetter will know to have the renderer decorate every rect it generates with a pdfmark.
I still can't work out why a hlink locus is rendered with such a different code path to a reference locus.
Sam
[Prev in Thread] | Current Thread | [Next in Thread] |