pressbooks / pb-mathjax

A replacement for wp.com/latex.php but instead of LaTeX, it uses MathJax.
GNU General Public License v3.0
4 stars 1 forks source link

Investigate MathJax support for other desired/additional packages (like polynom) #28

Open SteelWagstaff opened 4 years ago

SteelWagstaff commented 4 years ago

WP QuickLaTeX allows users to define additional commands and add support for additional packages (for example polynom: https://ctan.org/pkg/polynom?lang=en, which allows users to use a polylongdiv command for displaying long division of polynomials). Some of these have been replicated by MathJax and others have not (I suspect polynom has not and maybe will not be?).

To do: Investigate which additional packages/commands can be included in our MathJax configuration and to what degree we can add support for user declared packages/customization of the default configuration. Testing must ensure that these work as expected in webbooks and supported export formats. See http://docs.mathjax.org/en/latest/input/tex/extensions.html + http://docs.mathjax.org/en/latest/web/components/index.html#web-components as starting place?

josieg commented 2 years ago

Hi Steel! I would like to bump this one. We have an instructor who requires long division functionality that is not currently supported in MathJax. My colleague has identified an extension that may work: mathjax-extension-longdiv. And we are hesitant to tell this instructor to just use WP QuickLaTeX because it is not as accessible and it requires a fair bit of work to switch back.

Do you have any estimates on the timeline for this?

josieg commented 2 years ago

To add to this one - we also haven't been able to figure out how to include proper degree symbols in LaTeX when rendering with MathJax. We think the gensymb package would fix this issue! Thanks!