Re: [O] Multiple underscores crash org latex export; other exporters survive

2016-12-13 Thread Nicolas Goaziou
Hello, Scott Otterson writes: > 1.) *Multiple underscores* (the subject of this thread): Pandoc doesn't > crash and it exports the same thing for either html or latex: everything > after the first underscore is subscripted and all underscores are deleted. > I don't love that behavior but it's c

Re: [O] Multiple underscores crash org latex export; other exporters survive

2016-12-12 Thread Scott Otterson
Thanks to Nicolas and Scott for your painstaking efforts. At least for me, a fine stopgap measure is to simply avoid Latex crashes for orgmode contents that are not explicitly Latex. Sometime after that, it would be ideal to produce similar output for all export types, insofar as that's possible.

Re: [O] Multiple underscores crash org latex export; other exporters survive

2016-12-11 Thread Nicolas Goaziou
Hello, Scott Randby writes: > It seems odd to me that Org would see multiple subscripts as being > really one subscript. It doesn't. LaTeX does. Org clearly translates a_b_c as two consecutive subscript components. Then LaTeX visually merges them. > I realize that Org is not a front-end to LaT

Re: [O] Multiple underscores crash org latex export; other exporters survive

2016-12-11 Thread Scott Randby
On 12/10/2016 07:05 PM, Nicolas Goaziou wrote: > Hello, > > Scott Randby writes: > >> First, a_b_c and a_bc give nearly identical results when processed >> except that the spacing between letters in the subscript coming from >> a_b_c is wider than that in the subscript coming from a_bc. The spac

Re: [O] Multiple underscores crash org latex export; other exporters survive

2016-12-10 Thread Nicolas Goaziou
Hello, Scott Randby writes: > First, a_b_c and a_bc give nearly identical results when processed > except that the spacing between letters in the subscript coming from > a_b_c is wider than that in the subscript coming from a_bc. The spacing > issue can be seen more clearly by comparing the proc

Re: [O] Multiple underscores crash org latex export; other exporters survive

2016-12-10 Thread Scott Randby
On 12/07/2016 06:21 AM, Nicolas Goaziou wrote: > Hello, > > Scott Randby writes: > >> On 12/06/2016 06:50 PM, Nicolas Goaziou wrote: >>> I fixed it in maint. Basically, a_b_c is translated as a\(_b\)\(_c\). >> >> With this solution, "a" will be exported as text while "b" and "c" will >> be expor

Re: [O] Multiple underscores crash org latex export; other exporters survive

2016-12-07 Thread Nicolas Goaziou
Hello, Scott Randby writes: > On 12/06/2016 06:50 PM, Nicolas Goaziou wrote: >> I fixed it in maint. Basically, a_b_c is translated as a\(_b\)\(_c\). > > With this solution, "a" will be exported as text while "b" and "c" will > be exported as a single subsrcipt using the math font. Not at all.

Re: [O] Multiple underscores crash org latex export; other exporters survive

2016-12-06 Thread Scott Randby
On 12/06/2016 06:50 PM, Nicolas Goaziou wrote: > Hello, > > Scott Randby 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 >> va

Re: [O] Multiple underscores crash org latex export; other exporters survive

2016-12-06 Thread Nicolas Goaziou
Hello, Scott Randby 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

Re: [O] Multiple underscores crash org latex export; other exporters survive

2016-12-06 Thread Scott Randby
On 12/06/2016 02:19 AM, Scott Otterson wrote: > I understand that orgmode is literally copying Latex; I am suggesting > that orgmode should do more than copy. Org only literally copies some expressions. The expression "A_B_C" is not a LaTeX expression and it cannot be literally copied when exporti

Re: [O] Multiple underscores crash org latex export; other exporters survive

2016-12-05 Thread Scott Randby
On 12/05/2016 03:36 AM, Scott Otterson wrote: > Yes, there's a general question of how to escape multiple underscores. > > But there's a bigger question too: Should an org-doc that runs fine in > other exporters cause a messy-to-debug crash when it's exported to > Latex? Is that the Pandoc-lik

Re: [O] Multiple underscores crash org latex export; other exporters survive

2016-12-05 Thread Charles C. Berry
On Sun, 4 Dec 2016, Nicolas Goaziou wrote: Hello, Scott Randby writes: There is an interesting issue here. I sometimes want to use ~ in a code snippet, so I can't use ~code snippet~. Yet, Indeed, this was discussed in this ML. We need some escape character in Org. A general escape characte

Re: [O] Multiple underscores crash org latex export; other exporters survive

2016-12-05 Thread Scott Otterson
Yes, there's a general question of how to escape multiple underscores. But there's a bigger question too: Should an org-doc that runs fine in other exporters cause a messy-to-debug crash when it's exported to Latex? Is that the Pandoc-like behavior that orgmode seems to be aiming for? I love org

Re: [O] Multiple underscores crash org latex export; other exporters survive

2016-12-04 Thread Scott Randby
On 12/04/2016 05:13 AM, Nicolas Goaziou wrote: > Scott Randby writes: > >> There is an interesting issue here. I sometimes want to use ~ in a code >> snippet, so I can't use ~code snippet~. Yet, > > Indeed, this was discussed in this ML. We need some escape character in > Org. A general escape c

Re: [O] Multiple underscores crash org latex export; other exporters survive

2016-12-04 Thread Nicolas Goaziou
Hello, Scott Randby writes: > There is an interesting issue here. I sometimes want to use ~ in a code > snippet, so I can't use ~code snippet~. Yet, Indeed, this was discussed in this ML. We need some escape character in Org. A general escape character is a bit ambitious, and not necessarily us

Re: [O] Multiple underscores crash org latex export; other exporters survive

2016-12-03 Thread Scott Randby
On 12/03/2016 05:31 PM, Charles C. Berry wrote: > On Sat, 3 Dec 2016, Scott Randby wrote: > >> On 12/03/2016 02:40 PM, Scott Otterson wrote: >>> When an org file contains a string with more than one underscore, the >>> orgmode export result will crash latex (example attached). On the >>> other h

Re: [O] Multiple underscores crash org latex export; other exporters survive

2016-12-03 Thread Charles C. Berry
On Sat, 3 Dec 2016, Scott Randby wrote: On 12/03/2016 02:40 PM, Scott Otterson wrote: When an org file contains a string with more than one underscore, the orgmode export result will crash latex (example attached). On the other hand, the org html export does finish successfully, and while res

Re: [O] Multiple underscores crash org latex export; other exporters survive

2016-12-03 Thread Scott Randby
On 12/03/2016 02:40 PM, Scott Otterson wrote: > When an org file contains a string with more than one underscore, the > orgmode export result will crash latex (example attached). On the > other hand, the org html export does finish successfully, and while > result is odd, it's odd in a way that m

[O] Multiple underscores crash org latex export; other exporters survive

2016-12-03 Thread Scott Otterson
When an org file contains a string with more than one underscore, the orgmode export result will crash latex (example attached). On the other hand, the org html export does finish successfully, and while result is odd, it's odd in a way that makes the problem visible and easy to identify. Many p