Re: [Orgmode] Bug: Another possible error for in-line math parsing
On Thu, 21 Oct 2010 22:25:14 +0200, Carsten Dominik wrote: > > > On Oct 21, 2010, at 7:52 PM, Jeff Horn wrote: > > >> Org-mode will never be a perfect TeX scanner, and this is really > >> hard. > >> Help yourself and Org by using \( and \) as math delimiters when > >> you wish to > >> include dollar characters inside > > > > Ten-four. > > What does that mean? :-) this is an expression from CB (citizen's band) radio days and means "thanks" or "okay" or a combination of the two. There's a whole lexicon of 10-xx terms for fast communication over CB radio. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Bug: Another possible error for in-line math parsing
On Oct 21, 2010, at 7:52 PM, Jeff Horn wrote: Org-mode will never be a perfect TeX scanner, and this is really hard. Help yourself and Org by using \( and \) as math delimiters when you wish to include dollar characters inside Ten-four. What does that mean? I'll try it when I get some time to go back and edit my source files. Wonky use of dollar signs in math doesn't explain why the following source doesn't work, though: Additionally, the following source from org-mode: `$.30(50)+.70(20)=29$` The reason here is that $.30 looks too much like currency, and Org tries hard to detect cases where is dollar in text is meant to be currency and not math. Here it fails, and also here you can use \(...\). In fact, using dollar makes parsing TeX *a lot* harder in general. HTH - Carsten Is not converted at all by MathJax. Org-mode version 7.01trans, recent git pull from earlier this week. Aquamacs on Snow Leopard. Thanks for the tip, though! -- Jeffrey Horn Graduate Lecturer and PhD Student in Economics George Mason University (704) 271-4797 jh...@gmu.edu jrhorn...@gmail.com http://www.failuretorefrain.com/jeff/ ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Bug: Another possible error for in-line math parsing
> Org-mode will never be a perfect TeX scanner, and this is really hard. > Help yourself and Org by using \( and \) as math delimiters when you wish to > include dollar characters inside Ten-four. I'll try it when I get some time to go back and edit my source files. Wonky use of dollar signs in math doesn't explain why the following source doesn't work, though: > Additionally, the following source from org-mode: > > `$.30(50)+.70(20)=29$` > > Is not converted at all by MathJax. > > Org-mode version 7.01trans, recent git pull from earlier this week. > Aquamacs on Snow Leopard. Thanks for the tip, though! -- Jeffrey Horn Graduate Lecturer and PhD Student in Economics George Mason University (704) 271-4797 jh...@gmu.edu jrhorn...@gmail.com http://www.failuretorefrain.com/jeff/ ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Bug: Another possible error for in-line math parsing
Hi Jeff, On Oct 20, 2010, at 7:29 AM, Jeff Horn wrote: Carsten et al, Possible error when escaping dollar sign in inline-math. When using the following org source: -- Supposing $C_H=\$10$ and $C_L=\$20$. ... $.30(\$50)+.70(\$20)=\$29$ Org-mode will never be a perfect TeX scanner, and this is really hard. Help yourself and Org by using \( and \) as math delimiters when you wish to include dollar characters inside HTH - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Bug: Another possible error for in-line math parsing
Carsten et al, Possible error when escaping dollar sign in inline-math. When using the following org source: -- Supposing $C_H=\$10$ and $C_L=\$20$. ... $.30(\$50)+.70(\$20)=\$29$ -- The following LaTeX is produced upon publication: -- Supposing \$C$_H$=\$10\$ and \$C$_L$=\$20\$ ... \$.30(\$50)+.70(\$20)=\$29$ -- Whereas the following LaTeX is expected: -- Supposing $C_H=\$10$ and $C_L=\$20\$ ... $.30(\$50)+.70(\$20)=\$29$ -- Comparing the two different lines of source, I note that in the first case the four inline math dollars are escaped when they should not be, and two extra inline math dollars are inserted. In the second case, all dollars are escaped correctly excepting the first inline math dollar. I'm obviously trying to use dollars as units in my math calculations. Thanks for any help, Jeff -- Jeffrey Horn Graduate Lecturer and PhD Student in Economics George Mason University (704) 271-4797 jh...@gmu.edu jrhorn...@gmail.com http://www.failuretorefrain.com/jeff/ ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode