Last modified: 2014-10-19 19:13:46 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 T71554, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 69554 - MathJax Error "Bracket argument to \\ must be a dimension" in \begin{align}
MathJax Error "Bracket argument to \\ must be a dimension" in \begin{align}
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Math (Other open bugs)
unspecified
All All
: Unprioritized minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-08-14 17:39 UTC by Stephan Kulla
Modified: 2014-10-19 19:13 UTC (History)
3 users (show)

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


Attachments

Description Stephan Kulla 2014-08-14 17:39:52 UTC
Intention:
When I use something like \\[5px] to add 5px space between lines in a formula of an align-enviroment I get the error "Bracket argument to \\ must be a dimension".

Steps to Reproduce:
1. Save a page with the code:

<math>\begin{align}
1+1=1 \\[5px]
2+2=4
\end{align}</math>

Actual Results:  
When rendering the above equation with MathJax, one gets the error "Bracket argument to \\ must be a dimension".

Expected Results:  
The equation should be rendered properly with 5px space between each line.

Reproducible: Always

The problem do not occur when one uses for example "ex" as a dimension (e.g. "\\[2ex]"). I also noticed that there is natively more vertical space in MathJax between lines inside equations so that one can also omit the extra space argument.

I do not know whether there are plans to change the default math rendering to MathJax, but if so this bug might be a problem. That's why I reported it.
Comment 1 Peter Krautzberger 2014-08-15 12:33:38 UTC
Thanks for reporting this. It is a bug in MathJax -- I've reported it at https://github.com/mathjax/MathJax/issues/890. Shouldn't be hard to fix.

Thanks again for your help!
Peter (from the MathJax team.)
Comment 2 physikerwelt 2014-10-19 19:13:46 UTC
see https://www.mediawiki.org/wiki/Extension:Math/bug/69554

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


Navigation
Links