disable katex equation automatically resizing #159
-
Thanks for your always kind and quick assistance! I am using the marp vscode extension I want to ask is there an option to disable katex equation being resized when the equation is very wide? In stead, one may prefer overflow-x scroll. besides, the katex equation (not exceeding the width of the section) is also resized in custom properties, for an example I defined a custom property embox {
background-color: #cfc;
display:inline-block;
width: fit-content;
max-width: 100%;
} in the marp mark down, i have a wide equation
what I got is I have to manually set the width of Many thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
KaTeX auto-scaling is enabled by Marp Core theme. You have to use a custom theme if you want to disable KaTeX auto-scaling. Exclude /* @theme custom-theme */
/* @auto-scaling fittingHeader,code */
@import 'default';
|
Beta Was this translation helpful? Give feedback.
KaTeX auto-scaling is enabled by Marp Core theme.
https://github.com/marp-team/marp-core/tree/main/themes#auto-scaling-flags
You have to use a custom theme if you want to disable KaTeX auto-scaling. Exclude
math
from the scaling targets by using@auto-scaling
metadata.