[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Multiple underscores crash org latex export; other exporters sur
From: |
Nicolas Goaziou |
Subject: |
Re: [O] Multiple underscores crash org latex export; other exporters survive |
Date: |
Wed, 07 Dec 2016 00:50:32 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) |
Hello,
Scott Randby <address@hidden> writes:
> I don't think you can blame Org for the crashes you've experienced. Org
> exports the string "a_variable_deleteThisAndItWorks" to
> "a\(_{\text{variable}}_{\text{deleteThisAndItWorks}}\)" which is not a
> valid LaTeX expression. This invalid output is not the fault of Org, it
> is the fault of the input string. Since there are different ways of
> interpreting "a_variable_deleteThisAndItWorks," you have to tell Org
> which interpretation you want it to make when you export to LaTeX. This
> means additional markup of the string is required.
>
> That the exported LaTeX file crashes your installation of pdfTeX (or
> whatever TeX engine you use) when you process it is not the fault of
> Org. The exported LaTeX file contains an invalid LaTeX expression that
> came from a ambiguous string, so pdfTeX shows an error when processing
> the LaTeX file. Using additional markup of the string so that Org
> exports it as a valid LaTeX expression is the solution to the problem.
Even though the OP used an ambiguous string, I don't think Org should
generate invalid LaTeX.
I fixed it in maint. Basically, a_b_c is translated as a\(_b\)\(_c\).
Regards,
--
Nicolas Goaziou
- [O] Multiple underscores crash org latex export; other exporters survive, Scott Otterson, 2016/12/03
- Re: [O] Multiple underscores crash org latex export; other exporters survive, Scott Randby, 2016/12/03
- Re: [O] Multiple underscores crash org latex export; other exporters survive, Charles C. Berry, 2016/12/03
- Re: [O] Multiple underscores crash org latex export; other exporters survive, Scott Randby, 2016/12/03
- Re: [O] Multiple underscores crash org latex export; other exporters survive, Nicolas Goaziou, 2016/12/04
- Re: [O] Multiple underscores crash org latex export; other exporters survive, Scott Randby, 2016/12/04
- Re: [O] Multiple underscores crash org latex export; other exporters survive, Scott Otterson, 2016/12/05
- Re: [O] Multiple underscores crash org latex export; other exporters survive, Scott Randby, 2016/12/05
- Message not available
- Re: [O] Multiple underscores crash org latex export; other exporters survive, Scott Randby, 2016/12/06
- Re: [O] Multiple underscores crash org latex export; other exporters survive,
Nicolas Goaziou <=
- Re: [O] Multiple underscores crash org latex export; other exporters survive, Scott Randby, 2016/12/06
- Re: [O] Multiple underscores crash org latex export; other exporters survive, Nicolas Goaziou, 2016/12/07
- Re: [O] Multiple underscores crash org latex export; other exporters survive, Scott Randby, 2016/12/10
- Re: [O] Multiple underscores crash org latex export; other exporters survive, Nicolas Goaziou, 2016/12/10
- Re: [O] Multiple underscores crash org latex export; other exporters survive, Scott Randby, 2016/12/11
- Re: [O] Multiple underscores crash org latex export; other exporters survive, Nicolas Goaziou, 2016/12/12
- Re: [O] Multiple underscores crash org latex export; other exporters survive, Scott Otterson, 2016/12/12
- Re: [O] Multiple underscores crash org latex export; other exporters survive, Nicolas Goaziou, 2016/12/13
- Re: [O] Multiple underscores crash org latex export; other exporters survive, Charles C. Berry, 2016/12/05