From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Horn Subject: Bug: Another possible error for in-line math parsing Date: Wed, 20 Oct 2010 01:29:37 -0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from [140.186.70.92] (port=42765 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P8RFQ-0005JJ-Kf for emacs-orgmode@gnu.org; Wed, 20 Oct 2010 01:30:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P8RFP-0000NU-I4 for emacs-orgmode@gnu.org; Wed, 20 Oct 2010 01:30:00 -0400 Received: from mail-iw0-f169.google.com ([209.85.214.169]:60524) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P8RFP-0000NL-FC for emacs-orgmode@gnu.org; Wed, 20 Oct 2010 01:29:59 -0400 Received: by iwn1 with SMTP id 1so3797441iwn.0 for ; Tue, 19 Oct 2010 22:29:59 -0700 (PDT) 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 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/