| 开发者 |
Thomas Churchman
beskhue |
|---|---|
| 更新时间 | 2025年7月21日 19:07 |
| PHP版本: | 5.3 及以上 |
| WordPress版本: | 6.8 |
| 版权: | GPLv2 or later |
[katex]...[/katex] shortcode or in a Gutenberg block. Either way the math will render beautifully on your website. When using Gutenberg blocks, the equations will render immediately inside your editor!
Equations in blocks or using the [katex display=true]...[/katex] shortcode will render on page in display mode--with bigger symbols--centered on their own line.
For compatibility with other LaTeX plugins, this plugin optionally supports [latex]...[/latex] shortcodes.
Plugin Website
katex folder to your /wp-content/plugins/ directory or automatically download and install the plugin through WordPress's plugin manager;[latex] shortcode or KaTeX Gutenberg blocks in your posts and pages.You should be able to replace any other LaTeX plugin using [latex] shortcodes without having to make changes to existing posts. Other plugins might handle display-mode latex other than [latex display=true]...[/latex], in which case old posts unfortunately have to be changed.
.katex-eq node. This allows rendering KaTeX markup that is not present when the page is loaded.<br> tags added by WordPress to shortcode output.div element on which classes wp-block-katex-display-block and katex-eq are set. You can add more classes to this div through WordPress's post editor. Previously, KaTeX Gutenberg Blocks were rendered wrapped in an unclassed span. KaTeX shortcodes are still wrapped inside a span with only the class katex-eq set. If you depend on old behavior for styling, you might need to update your styling rules.