-
Notifications
You must be signed in to change notification settings - Fork 97
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
In nodejs environment, I convert latex to SVG, and the fraction is scaled, but my rendering on the browser is normal #452
Comments
The difference in output appears to be the difference between in-line math and display math. For in-line, fractions are reduced in size, and other adjustments are made in order to reduce the height of the math so as not to disrupt the spacing between lines any more than necessary. You don't give the code you used to do the conversion in node, but I suspect you have not indicated that the math is display math. If you are using
where |
You are right,
According to your suggestion, I will change |
The width is given in Since this is a question about mathjax-node rather then mathjax itself, I'm going to transfer this issue to the mathjax-node repository. |
I see. Thank you. |
@dpvc Hello, after I used the |
Add
to the Also, since this is a new question, unrelated to your original one, you should start a new issue for it rather than reopen a closed issue. |
I try to use mathjax to convert latex to svg.
This is the case in nodejs
It's found that 8/5 is scaled, It's hard for the customer to see clearly
But I use mathjax to convert latex to SVG on the browser, which is normal, as follows
It makes me wonder.
By comparing the SVG information, I found that in the nodejs environment, the SVG > Path tag has an extra attribute of
"transform =" scale (0.707) "
This scaling operation will make the user think it is a bug
In nodejs environment, what can I do to get the same rendering effect as on the browser?
The text was updated successfully, but these errors were encountered: