Last modified: 2013-11-04 10:31:15 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T58513, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 56513 - Spacing with "\:" leads to lexical error message with PNG-rendering, while MathJax renders ok.
Spacing with "\:" leads to lexical error message with PNG-rendering, while Ma...
Status: RESOLVED INVALID
Product: MediaWiki extensions
Classification: Unclassified
Math (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-02 12:42 UTC by Hexachloroiridic Acid
Modified: 2013-11-04 10:31 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Hexachloroiridic Acid 2013-11-02 12:42:49 UTC
While "\:" is a perfectly valid spacing command in TeX, it fails in <math>-Environment when using PNG-rendering. MathJax on the o

Failing with PNG, but perfectly ok with MathJax:
<math>U= 10^{-3} R\:I\qquad\textrm{mit }[U]=\mathrm{kV}, [R]=\mathrm{\Omega}, [I]=\mathrm{A}</math>

Working in both variants:
<math>U= 10^{-3} R\cdot I\qquad\textrm{mit }[U]=\mathrm{kV}, [R]=\mathrm{\Omega}, [I]=\mathrm{A}</math>

Since \: is perfectly valid TeX-syntax as presented above, the PNG-renderer should be fixed accordingly.
Comment 1 physikerwelt 2013-11-02 14:03:39 UTC
It's tex but not texvc. So it produces an lexical error as it is supposed to do. That it works with MathJax is a bug.
You can submit a feature request for expanding the texvc grammar with the \: command.
Comment 2 Hexachloroiridic Acid 2013-11-03 19:08:40 UTC
How can that be a bug within MathJax? They define their goal as being LaTeX-compatible, and the spacing command in question actually _is_ valid.

Since texvc also states (at least on any describing Wiki-Page (en, de etc.) to be aiming to TeX compatibility, why should this be no bug in texvc?
Comment 3 physikerwelt 2013-11-04 10:31:15 UTC
MathJax defined a custom style for the texvc language. MathJax should support every command defined by texvc and not allow all commands that are not whitelisted by texvc. The texvc language is formally defined in the code only. And this code does not contain the command name ":". 
I think thats not very good and I think it has to be changed in the future to have a customizable language and a process for adding and removing commands. But before we can come up with customized commands the checking part of texvc has to be separated from the conversion part.
I did that, but the code was not yet merged, and is waiting for code review. 

For a list of commands see
http://www.formulasearchengine.com/texvc-light

If you want to contribute on that you can help reviewing the texvc code... I wrote a little guide how to verify the code:
http://www.formulasearchengine.com/Verify%20texvc%20light

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links