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
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Meta

Comments on "align" in whatever software this site uses instead of MathJax

Parent

"align" in whatever software this site uses instead of MathJax

+1
−0

\begin{align} . . . \end{align}, a standard thing in LaTeX and in MathJax, does not work on this site, as seen in this answer.

Can this be fixed?

History

0 comment threads

Post
+3
−0

align works for me:

\begin{align} R^2 &= \frac{\sum(\text{fitted value minus sample mean value})^2}{\sum(\text{observed value minus sample mean value})^2} \\ & = \frac{\text{explained variability}}{\text{total variability}}. \end{align}

I'm pretty sure Codidact uses MathJax. We have a Meta tag named "mathjax-rendering".

History

1 comment thread

I copied the code from this answer and pasted it into the question to which I linked. I don't know wh... (8 comments)
I copied the code from this answer and pasted it into the question to which I linked. I don't know wh...
Michael Hardy‭ wrote 3 months ago

I copied the code from this answer and pasted it into the question to which I linked. I don't know whether that changed anything or not, but it still doesn't work.

clemens‭ wrote 3 months ago

It looks as though it works if you set it off by line breaks, as in my suggested edit.

Michael Hardy‭ wrote 3 months ago

It's working now, although nothing changed as far as I know.

Michael Hardy‭ wrote 3 months ago

clemens‭ ok, Now I see what you meant by "set it off by line breaks."

trichoplax‭ wrote about 2 months ago

Although I personally prefer having a double line break both before and after the MathJax section, for readability, only the double line break before is required for correct rendering.

This is not specific to MathJax. Mixing HTML and Markdown has a similar requirement: Details tag requires an internal blank line to render markdown

clemens‭ wrote about 2 months ago · edited about 2 months ago

trichoplax‭ Interesting; so both HTML and Markdown formatting works, it seems, but not putting the two on the same line?

Then why does this work, I wonder: test HTML italics test Markdown italics?

trichoplax‭ wrote about 2 months ago

I don't know the internal workings, but as I understand the consequences: HTML works inside Markdown, but Markdown doesn't work inside HTML (without a blank line to let the Markdown renderer know it's time to work again).

trichoplax‭ wrote about 2 months ago · edited about 2 months ago

Using HTML and Markdown italics side by side (no overlap) is not a problem.

Nesting Markdown bold inside HTML italics seems to work on a single line, but not if the italics tags are on a separate line (unless a blank line is used).

<i>Some HTML italics containing **Markdown bold** part way through</i>

gives

Some HTML italics containing Markdown bold part way through

<i>
Some HTML italics containing **Markdown bold** part way through
</i>

gives

Some HTML italics containing **Markdown bold** part way through
<i>

Some HTML italics containing **Markdown bold** part way through
</i>

gives

Some HTML italics containing Markdown bold part way through

(although this now seems to be ignoring the HTML italics).