Closed (fixed)
Project:
DruTeX
Version:
master
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
21 Aug 2006 at 18:55 UTC
Updated:
8 Sep 2006 at 23:15 UTC
For example, the following sentence should render two TeX environments and leave the currency alone.
The cost expression $2x+100$ equals $102 when $x=1$.
Currently, DruTeX interprets the currency sign as the boundary of an environment, so we escape the sign.
The cost expression $2x+100$ equals \$102 when $x=1$.
This is not ideal. Preferably, DruTeX could distinguish between the two situations. But that's very tricky.
Until the time when we have an ideal solution, it would be nice if the escape character does not appear in the final rendered content.
Comments
Comment #1
dfg commentedLaTeX has strict rules. One of the rules is, that
is a line with some math in it, and the math is exactly the text in $5 and you have $. Another rule is, that \$ is a dollar sign.
DruTeX is not LaTeX, of course. But I find your request a to hard violation of the rules, and rather confusing.
Another possibility, with clear and strict rules would be, to allow the user to disable the "dollar-environment" completly and substitute it by a html-tag environment. Then, every dollar sign could be a real dollar sign, and inline math could be enclosed between <math> and </math>.
Comment #2
njivy commentedOkay, let me clarify. In my original comment, I was not very coherent.
The escaped dollar sign works except for one detail: The escape character shows up in the rendered output.
As I understand it, the final result should not show the slashes.
Comment #3
dfg commentedRight, I fixed that now.
Comment #4
dfg commentedComment #5
(not verified) commented