bugGNU TeXmacs - Bugs: bug #42550, Hyperlinks are not exported to PDF


You are not allowed to post comments on this tracker with your current authentification level.

bug #42550: Hyperlinks are not exported to PDF

Submitted by:  Miguel de Benito <mdbenito>
Submitted on:  Fri 13 Jun 2014 02:36:40 PM UTC  
Category: ConversionPriority: 7 - High
Item Group: ErrorStatus: Confirmed
Privacy: PublicAssigned to: Joris van der Hoeven <vdhoeven>
Originator Name: Open/Closed: Open
Release: Release: None
Fixed Release: NoneFixed Release: 

Thu 05 Mar 2015 12:14:36 AM UTC, comment #3:

I've been using this patch, and it works great. The PDF now has hyperlinks to http URL's as expected. Thanks.

Karl Hegbloom <karlhegbloom>
Sat 22 Nov 2014 07:52:49 PM UTC, comment #2:


I tested the patch but I can't really tell if it's a good solution. Indeed, Joris would have to verify, given that it basically bypasses a check which has always been there (even though I don't really understand it: why should inaccessible loci be rendered as locus_boxes but accessible ones not?)

As to the issue: the problem seems to be that when nothing else is on the line, typeset_concat is not called because the subtree is not considered a paragraph. I don't know whether this is accurate nor relevant, but I do know that blindly changing bridge_locus_rep to

"fixes" the issue. It seems reasonable that the bridge_locus should do the same as the concatter when it finds a locus (if this even makes any sense), but since I don't understand their interplay, I will definitely not commit this!

Anyway: thanks! I will definitely use the "fixes". ;)

Miguel de Benito <mdbenito>
Project Member
Thu 06 Nov 2014 07:51:21 PM UTC, comment #1:

Hi Miguel,

Here is a minimal patch that enables texmacs hlink to generate working hlinks in pdf output. According to the limited testing I have done on documents with moderate complexity, it does the job. Beware however that since I'm far from having a global understanding of the typesetting process and the management of "loci", it could have really bad side effects for some other primitives... Joris should probably check that.

This patch has a small issue, though: if an <hlink||> is alone on its line then the pdf link is not generated. This means that it fails quite ironically for the file attached to the bug report! (and this has side-tracked me for some time...). It might be a bug elsewhere or a clear proof that I don't understand what's going on. In any case this has an easy fix: just add anything before or after the hlink (for instance a space) and it works.

(file #32382)

Philippe Joyez <pjoyez>
Project Member
Fri 13 Jun 2014 02:36:40 PM UTC, original submission:

The attached file shows that hlink is not exported with the new PDF renderer.

Miguel de Benito <mdbenito>
Project Member


Attached Files
file #32382:  pdf_hlink_patch.txt added by pjoyez (2kB - text/plain)
file #31544:  test.tm added by mdbenito (211B - application/octet-stream)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by karlhegbloom (Posted a comment)
  • -unavailable- added by pjoyez (Updated the item)
  • -unavailable- added by mdbenito (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 23 Mar 2015 09:24:09 AM UTCmdbenitoPriority5 - Normal=>7 - High
    Sat 22 Nov 2014 07:52:49 PM UTCmdbenitoAssigned toNone=>vdhoeven
    Thu 06 Nov 2014 07:51:21 PM UTCpjoyezAttached File-=>Added pdf_hlink_patch.txt, #32382
    Fri 13 Jun 2014 02:36:40 PM UTCmdbenitoAttached File-=>Added test.tm, #31544

    Back to the top

    Powered by Savane 3.1-cleanup