Page MenuHomePhabricator

Missing LaTeX AMSMath environments for math rendering
Open, Needs TriagePublicFeature

Description

Feature requested:

We want MediaWiki to support more LaTeX AMSMath environments in its <math> environment.

This is part of a wish in the 2022 wishlist: https://meta.wikimedia.org/wiki/Community_Wishlist_Survey_2022/Editing/Missing_LaTeX_capabilities_for_math_rendering

Functionality/software changes

These environments are already supported by MathJax. So, all we have to do is change texvcjs to allow these commands to be passed to MathJax in the backend.

  • Extra environments are supported by texvcjs

AMSMath environments which we probably could support:

  • gather
  • gathered
  • multline
  • CD
  • split
  • subarray

Notes for testing

See notes in T318524.

Example of these environments being used in wikitext: P34947

Event Timeline

The gathered environment only makes sense if we supported numbering, which I don't think we do.

The CD environment is a bit more complicated, so might need to be implemented in a separate ticket.

Change 835613 had a related patch set uploaded (by Dom Walden; author: Dom Walden):

[mediawiki/services/texvcjs@master] Support more AMS environments in <math>.

https://gerrit.wikimedia.org/r/835613

dom_walden renamed this task from Missing LaTeX AMS environments for math rendering to Missing LaTeX AMSMath environments for math rendering.Sep 27 2022, 2:21 PM
dom_walden updated the task description. (Show Details)
dom_walden updated the task description. (Show Details)
dom_walden updated the task description. (Show Details)

Change 835613 abandoned by Dom Walden:

[mediawiki/services/texvcjs@master] Support more AMS environments in <math>.

Reason:

I will re-implement in PHP after T312528.

https://gerrit.wikimedia.org/r/835613