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 <mail@nicolasgoaziou.fr> wrote:
Hello,

Scott Otterson <scotto@sharpleaf.org> 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