In math articles on Wikipedia, we use the convention that displayed formulas (those that appear alone on their line) are indented, so we write in wiki text for example
:<math>x^2=1</math>
It would be nice if VE's formula editor did the same, maybe with a corresponding option. Currently it does not appear to be possible to enter a displayed formula in Wikipedia's preferred style.
Description
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Duplicate | None | T122103 Option to set indentation of displayed formulæ | |||
Open | None | T111712 Provide an "indented display" styling for formulæ in lieu of the ":<math>" hack | |||
Open | None | T268922 make <math> tags without argument to be inline math | |||
Open | None | T268935 Create a bot that replaces :<math with <math display=block |
Event Timeline
I have seen this convention in place in the English, German and French Wikipedias. I have not checked any others.
I spoke too soon: the French Wikipedia also often uses
<center><math>x^2=-2</math></center
which is closer to the TeX-way of doing things. It's also hard to do in VE.
You can set <math display="block"> in the formula tool (the "options" tab). That appears to add valid, non-list-formatting indentation on the English Wikipedia and centering on mediawiki.org. Presumably there is a difference in the CSS definitions between the two wikis. One significant advantage to this is that if you copy formulas between Wikipedias, it will always be correctly displayed in the local style.
Related to this, on WikiToLearn we've been adding the <dmath> tag as an alias for "displaystyle" math also supporting TeX environments (align, matrix, ...).
Is it something that upstream would like to take a look at? It has proven very useful for all of our editors of Physics/Maths books!
I am eager to collaborate and merge our efforts as much as we can :-)
@Jdforrester-WMF can I quote you for writing formulae that way? Too many people claim formulas would be better, which I do not like at all.