You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Math course authors want the ability to create “line breaks” within the equations by using backslashes () with LaTex. This would allow multiple lines of formulas in one block of math editor.
The text was updated successfully, but these errors were encountered:
New lines are not currently supported in MathJax 3 (weird, right?)
Supposedly, it's under development for a release with a timeframe of "end of this summer"
We have three options:
Wait until that release
Work-around that by parsing out newlines and then rendering two different mathjax formulas within a single block so it is visually on two lines
Authors can use the \displaylines{} command something like this:
If we went with 2. for the short-term, we could go back to 1. when its ready, and I don't think it would be more than a day or two's work to do that, but considering 3. works today, I'm unsure if it's worth doing. @eliknebel or @darrensiegel - Got a suggestion on a direction there?
It turns out there are a LOT of instances of this in Chem1 and Chem2. It is used pervasively in those courses to show derivations in question feedback and explanations. Grep finds about 20,000 \\'s in 287 files in legacy Chem1 XML source. Many equations have multiple occurrences so there are fewer equations than that. And a small number are only at the end of the equation so may not need to be handled. But it is too many to easily fix by manual editing and a very high priority issue for courses that have already migrated to torus.
Edit to add: many chem equations wrap formula in \begin{array}...\end{array} which also works with embedded newlines in MathJax 3. So the number of equations needing repair is lower.
Math course authors want the ability to create “line breaks” within the equations by using backslashes () with LaTex. This would allow multiple lines of formulas in one block of math editor.
The text was updated successfully, but these errors were encountered: