From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Horn Subject: Re: Bug: Another possible error for in-line math parsing Date: Wed, 20 Oct 2010 16:05:24 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from [140.186.70.92] (port=46624 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P8eux-00026B-OQ for emacs-orgmode@gnu.org; Wed, 20 Oct 2010 16:05:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P8euw-0004mZ-EB for emacs-orgmode@gnu.org; Wed, 20 Oct 2010 16:05:47 -0400 Received: from mail-yx0-f169.google.com ([209.85.213.169]:39924) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P8euw-0004mO-A1 for emacs-orgmode@gnu.org; Wed, 20 Oct 2010 16:05:46 -0400 Received: by yxm34 with SMTP id 34so2422268yxm.0 for ; Wed, 20 Oct 2010 13:05:46 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Org-mode ml 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. On Wed, Oct 20, 2010 at 12:25 PM, Jeff Horn wrote: > BTW, I can confirm that this error does not occur in the block math > environment (wrapping the equations in escaped square brackets). > > On Wed, Oct 20, 2010 at 1: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$ >> ------------------------------------------------------------------------------ >> 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 >> jhorn@gmu.edu >> jrhorn424@gmail.com >> >> http://www.failuretorefrain.com/jeff/ >> > > > > -- > Jeffrey Horn > Graduate Lecturer and PhD Student in Economics > George Mason University > > (704) 271-4797 > jhorn@gmu.edu > jrhorn424@gmail.com > > http://www.failuretorefrain.com/jeff/ > -- Jeffrey Horn Graduate Lecturer and PhD Student in Economics George Mason University (704) 271-4797 jhorn@gmu.edu jrhorn424@gmail.com http://www.failuretorefrain.com/jeff/