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
min-width
is not changed for the formulas \begin{equation}...\end{equation}
#2280
Comments
First, Second, the The The reason for this is to prevent the equation labels from overlapping the equation itself. to do that, MathJax uses Your second expression is not numbered, and so it doesn't need the min-width setting of numbered equations. The SVG as a whole is centered in the Finally, that |
I am transferring this to the mathjax/MathJax repository, where all issues should be reported. |
Thank you so much for your reply. I use the
|
Equations that are too wide for the container do extend past the right-hand side of the container. Automatic line breaking can help in some cases but (as mentioned) that is not yet ported to version 3, and it is not very effective with tables (which is how the As I mentioned, the minimum width is the actual minimum required size for the expression and its label (when the equation is centered), and it can not be reduced without damaging the rendering. The second example you give does not contradict that because it has no label. If the container we a bit less wide, that one would extend beyond the right-hand side as well. The only option to get a reduced is to reduce the size of the font surrounding the expression. You could do that by adding a
but this has to be done by hand (MathJax doesn't have an automatic way to do that). Alternatively, you could arrange for the Just to reiterate, the result you are experiencing is the correct behavior for MathJax. |
For
\begin{equation}...\end{equation}
the size of the container is not changed regardless of the value containerWidthBut for this formula everything works
I have also tried to set
docTeX.options.OutputJax.minwidth = ..
But I see that this value is re attributed https://github.com/mathjax/MathJax-src/blob/master/ts/output/svg.ts#L265
Please, tell me how I can change the container's width in this case.
The text was updated successfully, but these errors were encountered: