Replies: 1 comment 2 replies
-
Daniel Your math expression renders just fine on the KaTeX demo page https://katex.org/ So this suggests there is a conflict somewhere with the CSS (or script) on your page. There is a LOT of CSS in all of the included plugin and other CSS files. I eliminated them one by one until I found the one causing the issue. It's this one: With that one gone, your expressions look as they should: In that one CSS file, there are 11,646 lines (when unminified). I'd suggest either:
But down the track, I suspect you're going to keep facing these sorts of issues. With tens of thousands of lines of CSS per page (156 kB of it on this page), it's going to be a constant battle trying to figure out why KaTeX is not working as you want. Try removing as many plugins as you can - certainly the ones that give minimal aesthetic changes. A good thing to do is to write any math you want to add in a clean (or very simple) page outside of your Wordpress setup. If it looks good on your simple page, but not when it's a post on your main site, then at least you won't pull your hair out trying to figure out if it's a KaTeX issue. Hope it helps Regards |
Beta Was this translation helpful? Give feedback.
-
Hallo,
I am a Katex-beginner, but I have many years of Latex-experiences. I have trouble to set root.
I used the shortcode:
The page is visible here https://www.drphotgraph.de/?page_id=7017
Best regards, Daniel
Beta Was this translation helpful? Give feedback.
All reactions