Skip to Content.
Sympa Menu

texmacs-users - Re: [TeXmacs] Hyperlinks, actions and ... pdf

Subject: mailing-list for TeXmacs Users

List archive

Re: [TeXmacs] Hyperlinks, actions and ... pdf


Chronological Thread 
  • From: Karl Hegbloom <address@hidden>
  • To: marc lalaude-labayle <address@hidden>, texmacs-users <address@hidden>
  • Subject: Re: [TeXmacs] Hyperlinks, actions and ... pdf
  • Date: Tue, 01 Mar 2016 01:20:02 +0000

I've been running it with this (attached) patch applied for quite a while. Hyperlinks to http sites work with it applied.

On Mon, Feb 29, 2016 at 3:20 PM Karl Hegbloom <address@hidden> wrote:

The patch has to be applied. I don't have access at the moment,  but later I'll post it for you. I got it from the archives. It applies against the Subversion checkout.


On Mon, Feb 29, 2016, 14:37 marc lalaude-labayle <address@hidden> wrote:
Hi,

i have several problems with include hyperlinks or actions. The primitive problem is the following :  I want to insert hyperlink in texmacs but when clicking on it, i want that firefox opens the link.

Since i can't achieve this directly, i exported my file to pdf but i can't get hyperlinks working. I saw a patch but while applying it, i got warned : it seems to be already applied (i am running a svn compiled version under ubuntu 16.10 at this moment). So here is my first question :

1. How to get hyperlinks after a pdf export ?

Then i saw an "action" menu. So my second question, relative to the primitive problem :

2. Is there a way to include an action to get firefox to open a html file ?

Thx to all,

Marc
Index: src/Typeset/Concat/concat_active.cpp
===================================================================
--- src/Typeset/Concat/concat_active.cpp	(revision 8873)
+++ src/Typeset/Concat/concat_active.cpp	(working copy)
@@ -160,8 +160,16 @@
   if (build_locus (env, t, ids, col, ref, anchor)) {
     marker (descend (ip, 0));
     tree old= env->local_begin (COLOR, col);
-    typeset (t[last], descend (ip, last));
+/*    typeset (t[last], descend (ip, last));
+    env->local_end (COLOR, old);*/
+// pdf hlink are created at the post_display typesetting step only for locus_box (see change_boxes.cpp)
+// for some reason hlink loci were not typeset as locus_box (code commented just above)
+// minimal modification (copied from below) that enable hlinks to become pdf hlinks :
+    box b= typeset_as_concat (env, t[last], descend (ip, last));
     env->local_end (COLOR, old);
+    print (locus_box (ip, b, ids, env->pixel, ref, anchor));
+// end changes
+
     marker (descend (ip, 1));
   }
   else {



Archive powered by MHonArc 2.6.19.

Top of Page