emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: Another possible error for in-line math parsing
@ 2010-10-20  5:29 Jeff Horn
  2010-10-20 16:25 ` Jeff Horn
  2010-10-21 11:25 ` Carsten Dominik
  0 siblings, 2 replies; 7+ messages in thread
From: Jeff Horn @ 2010-10-20  5:29 UTC (permalink / raw)
  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/

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-10-22 10:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-20  5:29 Bug: Another possible error for in-line math parsing Jeff Horn
2010-10-20 16:25 ` Jeff Horn
2010-10-20 20:05   ` Jeff Horn
2010-10-21 11:25 ` Carsten Dominik
2010-10-21 17:52   ` Jeff Horn
2010-10-21 20:25     ` Carsten Dominik
2010-10-22 10:09       ` Eric S Fraga

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).