Page MenuHomePhabricator

Option to set indentation of displayed formulæ
Open, NormalPublic

Description

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.

Event Timeline

AxelBoldt raised the priority of this task from to Needs Triage.
AxelBoldt updated the task description. (Show Details)
AxelBoldt added a project: VisualEditor.
AxelBoldt added a subscriber: AxelBoldt.
Restricted Application added subscribers: StudiesWorld, Aklapper. · View Herald TranscriptDec 22 2015, 1:00 AM
Aklapper renamed this task from Indentation of displayed formulas to Option to set indentation of displayed formulas.Dec 22 2015, 11:21 AM
Aklapper set Security to None.

Who is the "we" in "we use the convention"? All Wikipedia language communities?

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.

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.

^^ that's something supported by ve. You can select displaystyle in the ve menu.

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.

Ruphy added a subscriber: Ruphy.EditedDec 25 2015, 10:34 PM

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 renamed this task from Option to set indentation of displayed formulas to Option to set indentation of displayed formulæ.Jan 12 2016, 8:23 PM
Jdforrester-WMF triaged this task as Normal priority.
Jdforrester-WMF moved this task from To Triage to Freezer on the VisualEditor board.

@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.

Pkra moved this task from Incoming to VisualEditor on the Math board.Dec 8 2018, 12:11 AM