-
-
Notifications
You must be signed in to change notification settings - Fork 80
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
LaTeX/KaTeX rendering issue for PDF exports only #393
Comments
It seems to reproduce only in Chrome if exported to HTML. Firefox and Safari does not reproduce. (Marp's PDF export is depending on Chrome) Marp has applied auto-shrink the size to KaTeX block, and it may be a one of incompatible parts with the auto scaling feature, as same as marp-team/marp-core#159 and marp-team/marp-core#236. WorkaroundAdd following global style in Markdown. <style>
.katex .delimcenter,
.katex .op-symbol {
display: inline-block;
}
</style> If this workaround is working well, going to consider to add into KaTeX default style by Marp Core. |
In Marp for VS Code, use the library preferred in the extension settings if not defined |
just had a look at extension settings; looks like that is the default. the workaround seems to work well for me as well; thanks for that! |
I was testing out Marp and tried some LaTeX code for mathematical formulae.
I found that sigma notation does not seem to render correctly in PDF exports:
PDF Export:
HTML/PPTX Export:
I am running Marp for VS Code v1.5.2 on VS Code 1.70.1; device is on Windows 11 22H2.
The code for the formula I am using is:
This appears to be the case when I have not declared the math typesetting, or if it is declared as
katex
.This is not the case when math typesetting is declared as
mathjax
, which is odd, as this saysmathjax
is used in rendering if there is no declaration (there is also a stylistic difference in rendering; no declaration appears to be using katex.)PDF using MathJax:
I prefer usage of katex. Is there any "quick fix" for this, or a way in which different rendering engines could be used for different parts of the same equation?
The text was updated successfully, but these errors were encountered: