Last modified: 2011-03-13 18:04:44 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 T3345, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 1345 - Wish: configurable display of lines with formulas: centered/left-aligned
Wish: configurable display of lines with formulas: centered/left-aligned
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
unspecified
PC Linux
: Lowest enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  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: ---


Attachments

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 {
    display:block; 
    margin:0 auto;
    padding-right:1em;
}

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.


Navigation
Links