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: philippe joyez <address@hidden>, address@hidden
  • Subject: Re: [TeXmacs] Hyperlinks, actions and ... pdf
  • Date: Tue, 01 Mar 2016 18:18:57 +0000

Is there any reason why that patch has not simply been applied to the TeXmacs sources? It does not appear to cause any problems, and there's no links to external documents without it.

On Tue, Mar 1, 2016 at 10:28 AM philippe joyez <address@hidden> wrote:
marc lalaude-labayle <marc.lalaude <at> gmail.com> writes:

>
>
>
>
> Thanks.
> And after the compilation is there a way to add this patch ?
> Marc
>

No, this is a patch in the c++ code, you have to compile after applying the
patch. If you still have the directory in which you compiled the first time,
then apply the patch there and re-compile, it will be very fast.

regarding your second question :

you can place the following in your "my-init-texmacs.scm"

(tm-define (ext-hlink dest)
 (:secure #t)
 (:synopsis "uses system default apps to open a destination")
 (:argument dest "can be a web url, a file...")
 (let
   ((dest-string dest)
    (cmd (cond
       ((os-macos?) "open ")
       ((os-win32?) "start ")
       (else "xdg-open "))))

   (eval-system (string-append cmd dest-string))))


and then you can indeed use an action tag in the document:

<action|visible link name|(ext-hlink "http://whatever")>

Note however that this kind of hlink won't get exported to pdf!






Archive powered by MHonArc 2.6.19.

Top of Page