0xpapercut / wypst

Typst math typesetting for the web.
https://0xpapercut.github.io/wypst/
MIT License
54 stars 2 forks source link

CSS rules to increase font size #7

Closed kchousos closed 2 months ago

kchousos commented 2 months ago

Hello! Thank you for your awesome project.

I would like to use it through the Obsidian plugin, but the font is too small for my liking. For the built-in mathjax, I have the following CSS rule:

mjx-math {
  font-size: 130% !important;
}

Is there anything similar for wypst? Thanks in advance.

0xpapercut commented 2 months ago

The font size is controlled by the katex class. By default one has

.katex {
    font-size: 1em !important;
}

Maybe you can modify that, as you do with the mjx-math class.

0xpapercut commented 2 months ago

Let me know if that doesn't work; I might add a special option to modify this variable in the plugin.

kchousos commented 2 months ago

This works perfectly. Thank you!