Skip to content

disable katex equation automatically resizing #159

Answered by yhatt
ChiMaoShuPhy asked this question in Q&A
Discussion options

You must be logged in to vote

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.

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.

/* @theme custom-theme */
/* @auto-scaling fittingHeader,code */

@import 'default';

⚠️ Please note that any overflow CSS declarations cannot work on PDF. Marp is prioritizing that there are no problems in PDF export by default.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ChiMaoShuPhy
Comment options

@yhatt
Comment options

yhatt Sep 9, 2023
Maintainer

@yhatt
Comment options

Answer selected by yhatt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants