emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Scott Otterson <scotto@sharpleaf.org>
To: "Emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>,
	Nicolas Goaziou <mail@nicolasgoaziou.fr>
Subject: Re: Bug: Latex export fails with link in headline
Date: Mon, 5 Dec 2016 09:19:58 +0100	[thread overview]
Message-ID: <CAPY3P0SWXAwnkzvfBhkG65xY_x3uTc2k5es=gTa6WiZVXNmaww@mail.gmail.com> (raw)
In-Reply-To: <87a8ccd8sh.fsf@nicolasgoaziou.fr>

[-- Attachment #1: Type: text/plain, Size: 1272 bytes --]

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
>

[-- Attachment #2: Type: text/html, Size: 1922 bytes --]

  reply	other threads:[~2016-12-05  8:20 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-28  9:03 Bug: Latex export fails with link in headline Scott Otterson
2016-11-28 11:26 ` Nicolas Goaziou
2016-11-29 12:57   ` Scott Otterson
2016-12-03 15:04     ` Scott Otterson
2016-12-03 21:03       ` Nicolas Goaziou
2016-12-05  8:19         ` Scott Otterson [this message]
2016-12-06 11:44           ` Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAPY3P0SWXAwnkzvfBhkG65xY_x3uTc2k5es=gTa6WiZVXNmaww@mail.gmail.com' \
    --to=scotto@sharpleaf.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=mail@nicolasgoaziou.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).