[ww-bugs] Bug 2635: ${DOLLAR} not rendering properly
bugzilla-daemon at webwork.maa.org
bugzilla-daemon at webwork.maa.org
Fri Jun 14 12:29:42 EDT 2013
http://bugs.webwork.maa.org/show_bug.cgi?id=2635
Davide P. Cervone <dpvc at union.edu> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dpvc at union.edu
--- Comment #2 from Davide P. Cervone <dpvc at union.edu> 2013-06-14 12:29:42 ---
I'm not able to reproduce your output, and since WeBWorK only enters math node
for \(...\) and \[...\] (not dollar signs, at least for screen output), and the
problem doesn't have the currency values in math mode, I don't see how WeBWorK
could have generated the output you show in your screen shot.
Since image mode doesn't depend on the browser in any way, the fact that this
only occurs for Chromium for you suggests that you might have a Chrome
extension that loads MathJax automatically (and is configured to process dollar
delimiters). Can you check to see if you have such an extension? It fits the
situation, since the problem should generate plain dollar signs in the output,
and those are clearly being used as TeX delimiters; WeBWorK would not do that,
but MathJax might.
I've always found the ${DOLLAR} macro a bit dodgy. I don't think you can
actually define one that works in al cases (at least not as a macro) since, in
HTML mode, if it is used inside math output, you want it to produce \$, but if
used outside of math, you want $ or $. (In TeX mode I think \$ is always
OK.) Since the variable $DOLLAR doesn't know if it is being insert into math
mode or not, there is no way to tell what it really should produce.
THis is the same issue that the MathObjects face when being inserted into
strings (like into BEGIN_TEXT/END_TEXT). They don't know if those strings are
destined for math mode (where TeX output would be needed) or non-math output
(where algebra form would be needed). To solve this would require a more
sophisticated output processing model. PGML handles that, but so far it is not
in wide use.
Davide
--
Configure bugmail: http://bugs.webwork.maa.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the webwork-bugs
mailing list