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
The latex: x = a + b \\ y = b + c
The line-break isn't effect and it renders as single line.
However, it works fine and renders as two lines at verision 2.
lippirk, kwikwag, CWKSC, bzurmaar, agronskiy and 103 moreYodaEmbeddingambar, a1ip, lunluen, jcammmmm, jesuslop and 7 more
I'm not sure what you want changed there. The macros are simply listed, and since \\ is used within multi-line environments, it needs to be listed there. There is a link to Carol Fisher's page about the macros (written for v2), but that is not something we maintain, so she would have to maintain it.
In any case, it is not a TeX issue, but an output issue, and the fact that line breaking isn't implemented is documented in several places.
Any schedule to implement the linebreak?
It will be next year, probably in the first half of the year, but there is no specific timetable at the moment.
walchko, jesuslop, ooliver1, rtealwitter, ajs1998 and 13 more
I'm not sure if it is helpful, but I also found the use of \display{align} honours the newline instruction as well.
\begin{align}2x+y&=5\\y&=-2x+5\end{align}
This also requires the addition of the '&' before the alignment point, and has the benefit of making the equations more readable in our use case.
langfingaz, LeoJhonSong, hakanai, r00tk1ts, dtpowl and 14 moreYodaEmbedding, zerorzero and flowsn4keYodaEmbedding and zerorzeroYodaEmbedding, DoSupLee, zerorzero and flowsn4kedhimmel and zerorzero
@T-Kuhn, WordPress uses \ as a special character, and it is often stripped out of WordPress posts (depending on what editor you are using). As an escape character, it can prevent the normal action of the character that follows it, so to get an explicit backslash into your post, you need to double it. That is why you need an extra backslash (because the first two equal a single backslash in the output). You probably should double the second one as well, but apparently that is not required.
@dpvc Thanks for your reply. In the meantime, I figured out that the third backslash is only required if the "Using Markdown" toggle on our specific WordPress blog is set to "on". So, at least in my case, this was a problem between different plugins interfering with each other. Seems like the backslash get's handled as an escape character in Markdown mode on our blog.
@T-Kuhn, yes, Markdown uses the backslash as an escape character. You may also need to be concerned about underscores, as these are used to indicate italics. So you may need to do things like x\_1 rather than x_1 in some situations.
Activity
dpvc commentedon Oct 2, 2019
Linebreaks are not yet implemented in version 3. This is one of the significant features from version 2 that has not yet been ported to version 3.
woody-li commentedon Oct 3, 2019
Is it possible to update the support information in the symbols table at http://docs.mathjax.org/en/v3.0-latest/input/tex/macros/index.html .
Any schedule to implement the linebreak?
dpvc commentedon Oct 4, 2019
I'm not sure what you want changed there. The macros are simply listed, and since
\\
is used within multi-line environments, it needs to be listed there. There is a link to Carol Fisher's page about the macros (written for v2), but that is not something we maintain, so she would have to maintain it.In any case, it is not a TeX issue, but an output issue, and the fact that line breaking isn't implemented is documented in several places.
It will be next year, probably in the first half of the year, but there is no specific timetable at the moment.
dpvc commentedon Oct 4, 2019
In the meantime, you can do something like
to get multiple lines
woody-li commentedon Oct 4, 2019
Thanks for your reply.
The \displaylines solved my problem.
The information I said that adding a column in the macros table to show the support version.
SeanFlemingMathsPathway commentedon Oct 9, 2019
I'm not sure if it is helpful, but I also found the use of \display{align} honours the newline instruction as well.
This also requires the addition of the '&' before the alignment point, and has the benefit of making the equations more readable in our use case.
T-Kuhn commentedon Feb 4, 2020
For some reason, I had to add a third
/
on my environment (Japanese WordPress blog.)This didn't work (everything was rendered on the same line):
This worked (2 lines):
dpvc commentedon Feb 4, 2020
@T-Kuhn, WordPress uses
\
as a special character, and it is often stripped out of WordPress posts (depending on what editor you are using). As an escape character, it can prevent the normal action of the character that follows it, so to get an explicit backslash into your post, you need to double it. That is why you need an extra backslash (because the first two equal a single backslash in the output). You probably should double the second one as well, but apparently that is not required.dpvc commentedon Feb 4, 2020
I'm moving this issue to the main MathJax issue tracker so that it can be found more readily by others.
T-Kuhn commentedon Feb 5, 2020
@dpvc Thanks for your reply. In the meantime, I figured out that the third backslash is only required if the "Using Markdown" toggle on our specific WordPress blog is set to "on". So, at least in my case, this was a problem between different plugins interfering with each other. Seems like the backslash get's handled as an escape character in Markdown mode on our blog.
dpvc commentedon Feb 5, 2020
@T-Kuhn, yes, Markdown uses the backslash as an escape character. You may also need to be concerned about underscores, as these are used to indicate italics. So you may need to do things like
x\_1
rather thanx_1
in some situations.107 remaining items