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 12:25:28 -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=59814 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P8bVZ-00084n-PL for emacs-orgmode@gnu.org; Wed, 20 Oct 2010 12:28:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P8bU6-0008F4-2c for emacs-orgmode@gnu.org; Wed, 20 Oct 2010 12:25:51 -0400 Received: from mail-iw0-f169.google.com ([209.85.214.169]:39532) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P8bU5-0008Ey-Tq for emacs-orgmode@gnu.org; Wed, 20 Oct 2010 12:25:50 -0400 Received: by iwn1 with SMTP id 1so4466119iwn.0 for ; Wed, 20 Oct 2010 09:25:49 -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 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/