Last modified: 2011-03-13 18:04:44 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 1345 - Wish: configurable display of lines with formulas: centered/left-aligned
Wish: configurable display of lines with formulas: centered/left-aligned
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
PC Linux
: Lowest enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2005-01-16 21:21 UTC by Paul Pogonyshev
Modified: 2011-03-13 18:04 UTC (History)
1 user (show)

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


Description Paul Pogonyshev 2005-01-16 21:21:42 UTC
It would be nice if Wikipedia could render formulas either aligned to the left
with certain indentation, or centered, as in most mathematical books, based on
user preferences.  It could be achieved in at least two ways:

* Simply match paragraphs of the form ``:* <math>.*</math>'' and
``<center><math>.*</math></center>'', disregard specified alignment and format
according to user preferences.

* Provide an additional tag that would declare a formula standing on its own. 
This has the advantage of added possibility of specifying formula index, but
would require editing a huge number of pages for the change to take effect.
Comment 1 Happy-melon 2010-04-01 23:14:07 UTC
You can achieve this fairly trivially with CSS:

dl > dd > img.tex {
    margin:0 auto;

where the padding is to compensate for the indentation of the dl and ensure the formula is properly centered.

Gonna WONTFIX this as it's been inactive for over five years, given the solution above.  It's clearly not popular enough to need implementing internally.

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