Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users

Dashboard
Notifications
Mark all as read
Meta

MathJax config: newlines in eqnarray contexts

+4
−0

In my answer to https://math.codidact.com/questions/278268 I have a couple of eqnarray contexts which are being rendered by MathJax but aren't being broken into lines as they should. This works fine in other sites with MathJax which I used to use, so I suspect that it's a problem with the configuration here. If I'm wrong, how should I alter my markup to make it work?

Tagged both bug and support because although I think it's the former it might turn out to be the latter.

Why does this post require moderator attention?
You might want to add some details to your flag.
Why should this post be closed?

5 comments

I've suggested an edit that "fixes" the post (so if the edit is accepted people should look in the history to see the original form). That said, the intuition of the change I made is that the backslashes needed to be escaped. However, they probably shouldn't need to be escaped and so some MathJax or Markdown reconfiguration may be needed. (At which point my suggested edit will likely need to be undone.) Derek Elkins‭ 9 months ago

A problem that is almost certainly related is that sometimes the Markdown processor will convert substrings delimited by underscores to italics when those underscores are part of the MathJax, thereby breaking the MathJax. Peter Taylor's issue and this one are almost certainly due to the Markdown processor not being aware of TeX dollar signs. This leads to the Markdown processor breaking the TeX. (I deal with a similar issue with my blog.) Derek Elkins‭ 9 months ago

@Derek, now that you mention it, I'd noticed that I had to escape the backslashes for backslash-curlybrace to get the multiset notation to work. I should have put 2 and 2 together myself. Thanks for the diagnosis. Peter Taylor‭ 9 months ago

Note to site admins: I haven't wrapped the multiline stuff in $$ because it was rendering identically in the preview. IMO it would be a perfectly reasonable approach to look for/write a Markdown plugin to treat the MathJax delimiters $ and $$ as start and end delimiters of a section where escapes should be ignored, and I would be happy to add some $$ to my answer. Peter Taylor‭ 9 months ago

0 answers

Sign up to answer this question »

This community is part of the Codidact network. We have other communities too — take a look!

You can also join us in chat!

Want to advertise this community? Use our templates!