New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The line break(\\) is not work #2312
Comments
|
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. |
|
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 . |
|
I'm not sure what you want changed there. The macros are simply listed, and since 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. |
|
In the meantime, you can do something like to get multiple lines |
|
Thanks for your reply. The information I said that adding a column in the macros table to show the support version. |
|
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. |
|
For some reason, I had to add a third This worked (2 lines): |
|
@T-Kuhn, WordPress uses |
|
I'm moving this issue to the main MathJax issue tracker so that it can be found more readily by others. |
|
@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 |
|
Any update or schedule about it? |
|
@woody-li, there is a 3.1 update that is nearly ready to release (hope to have it out by the end of the month). The next release should be at the end of the summer, and will mainly be the long-awaited additional font support for v3 (including STIX2 support and tools for building the data needed for supporting other web fonts). So line breaking and other features will most likely have to wait until next year. |
|
Would it be bad of an idea to add referrence to this task to "Not Yet Ported to Version 3" section in the documenation, for those who go there and want to know status of those items, and possibly for other items on the list? (I assume this ticket is representative for the "Currently, automatic line breaking support is missing from version 3. This is a key feature to be included in a future release." bullet). |
That's the reason why nearly nobody is using MathJax 3. I would put it as highest priority if you want to distribute MathJax 3 and see it being successful. I nearly swapped to Katex because of this missing feature, and maybe will do so. However, Mathjax is still my favorite (bolder font, line break of Jax 2 and other features). |
|
For what it's worth, I think linebreaking is the last thing we are waiting for to move from mathjax 2 to mathjax 3 as the default math rendering in JupyterLab: jupyterlab/jupyterlab#7218 |
|
@jasongrout just a thought from a bystander: a group as well funded as the jupyter projects might consider actually supporting MathJax's development. |
|
@pkra, first, the tone of your comment indicates that I came across as entitled in some way to Davide's time. Both of us have been involved with open source and funding long enough to know that there is no entitlement here - I'm sorry if I came across that way. I only meant to flag another potential userbase's interest when and if the work happened. On the deeper issue you raise: we both know how difficult it is to find funding for open source. A few of us in Jupyter had a great conversation just this morning on how to help fellow open-source projects connect with funding sources in a successful, sustainable way. In fact, @fperez's Scipy keynote next week will focus on the topic of funding open source (Friday morning next week: https://www.scipy2021.scipy.org/schedule). @dpvc (and @pkra if you're interested too) - if you want to follow up, email me and let's set up a time to brainstorm some ideas about resources for funding (while most of Jupyter's funding is tied to specific initiatives or is controlled by specific PIs for specific projects, we have cultivated a network of contacts and have other ideas about funding). For example (which you may already be aware of), for things like a specific feature, NumFOCUS small development grants may help. |
|
The document says "Currently, automatic line breaking support is missing from version 3. This is a key feature to be included in a future release.", so "\\" means automatic line breaking |
|
@jasongrout, thanks for your information about line breaking. I know that it is important, and haven't forgotten about it. Things have taken somewhat longer than I had hoped, and I am still working on the font update. I have the toolchain for SVG in pretty good shape, but there is still some work needed for CommonHTML versions. There will be a release at the end of August that will at least include the SVG versions. Line breaking is then the next feature that I will work on. Because I go back to teaching in the fall, that will have to wait until next year. I wish I were able to work faster, but it is what it is. We have received two small development grants from NumFOCUS already. Doing one for line breaking may be a good fit as well. I will consider it for next year. Thank you for the offer to discuss funding ideas. I would be happy to chat with you about that. We should make arrangements to do that before I go back to teaching. |
Yes, it should really say line breaking of any kind, as they both use the same mechanism. |
|
Is this going to be implemented any time soon? |
|
@ShadiestGoat, not until next year. |
Am I the only person who doesn't see this as such a big deal? When working with LaTeX I always use the |
|
Wow, thanks for the comment @averms. From the issue description I incorrectly thought that |
A super common LaTeX paradigm, in my experience, is In any case, I don't think the problem is really humans writing MathJax -- it's packages that generate MathJax code. From that perspective this is a major API break from previous MathJax versions, regardless of what is supposed be doable in LaTeX or not. I'm getting a bit of visceral horror after running across this issue at the thought of trying to figure out where my package is using |
I don't quite follow. Under which conditions would mathjax see this input? Assuming that v2 MathJax hub is configured to respond to
|
The theory seemed to be that this change would ok because humans writing LaTeX don't (or shouldn't) use
|
|
It works when using four slashes \begin{align}
a_{11}& =b_{11}\\\\
a_{22}& =b_{22}+c_{22}
\end{align} |
|
bump, I think this should be relatively simple to fix? |
Happy new years :) |
It's not. It is part of the larger automatic line-breaking process, and that is quite complicated. It is planned for later this year, after the major font update that is currently in process. |
Just an FYI for anybody else running across this for markdown documents: I found that using four slashes ( Switching to \begin{align}
a_{11}& =b_{11}\newline
a_{22}& =b_{22}+c_{22}
\end{align} |
The latex:
x = a + b \\ y = b + cThe line-break isn't effect and it renders as single line.
However, it works fine and renders as two lines at verision 2.
The text was updated successfully, but these errors were encountered: