emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Bug: Latex export fails with link in headline


From: Scott Otterson
Subject: Re: [O] Bug: Latex export fails with link in headline
Date: Mon, 5 Dec 2016 09:19:58 +0100

Huh, the mystery deepens.  Does TexLive really behave differently on Linux?

Anyway, I'd argue that Org should do the minimum to prevent Latex crashes.  It seems that org is aiming to be a generic document format, which can be exported to other formats without modification.  

But with the current behavior, that's not possible.  If I modify the org doc to avoid latex crashes (escaping the '#' in the URL), then the same document exported to html will not work; click on the html link and you'll get a 404 error.

On Sat, Dec 3, 2016 at 10:03 PM, Nicolas Goaziou <address@hidden> wrote:
Hello,

Scott Otterson <address@hidden> writes:

> Could you please check the .tex output you got when exported my .org file
> example (attached again)?  In the .tex I get (also attached), it's clear
> that org-mode has forgotten to escape the '#' in the URL.  In headlink.tex,
> if I replace '#' with ''\#', then latexmk can successfully make a pdf.
>
> Do you see something different?

I do. While I get the same .tex output, compiling the file to a pdf
doesn't crash. I also use Texlive, but on GNU/Linux.

Besides, Org mode doesn't escape anything. It calles `url-encode-url' on
the link instead.

Regards,

--
Nicolas Goaziou


reply via email to

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