The KaTeX WordPress plugin enables you to use the fastest TeX math typesetting engine on your WordPress website. You can include TeX inside a
[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 compatability with other LaTeX plugins, this plugin optionally supports
You can choose to serve KaTeX yourself or through the third-party jsDelivr CDN.
This plugin provides 1 block.
- Upload the
katexfolder to your
/wp-content/plugins/directory or automatically download and install the plugin through WordPress’s plugin manager;
- Activate the plugin in WordPress; and
- Use the
[latex]shortcode or KaTeX Gutenberg blocks in your posts and pages.
Can I move from LaTeX plugin X to this plugin?
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.
Contributors & Developers
“KaTeX” is open source software. The following people have contributed to this plugin.Contributors
“KaTeX” has been translated into 7 locales. Thank you to the translators for their contributions.
Translate “KaTeX” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
- More robustly render shortcodes (even more robustly than 2.2.2).
- More robustly render shortcodes.
- Fix undefined variable notice.
- Trigger rendering of KaTeX in more cases when the DOM is mutated (in 2.2.0, accidentally only a limited set of cases was checked).
- Trigger rendering of KaTeX when the DOM is mutated by inserting a
.katex-eqnode. This allows rendering KaTeX markup that is not present when the page is loaded.
- Upgrade KaTeX resources to v0.13.13.
- Make it easier for other code to manually trigger rendering of KaTeX.
- Upgrade KaTeX resources to v0.13.0.
<br>tags added by WordPress to shortcode output.
- Prevent WordPress from texturizing KaTeX (prior to this change, WordPress would sometimes change e.g. apostrophes to quotation marks).
- Fix issue where custom class names on the KaTeX block sometimes broke editor rendering.
- Add some keywords to allow searching for the KaTeX block in the editor’s block list.
- Update KaTeX resources to v0.12.0.
- Fix block editor variable scoping.
- Upgrade KaTeX resources to v0.11.1.
- Support adding CSS classes to KaTeX Gutenberg Blocks to help with styling. Backwards compatibility note: KaTeX Gutenberg Blocks are now rendered wrapped in a
divelement on which classes
katex-eqare set. You can add more classes to this
divthrough WordPress’s post editor. Previously, KaTeX Gutenberg Blocks were rendered wrapped in an unclassed
span. KaTeX shortcodes are still wrapped inside a
spanwith only the class
katex-eqset. If you depend on old behavior for styling, you might need to update your styling rules.
- Fix 1.0.4 release issue: KaTeX resources were not committed correctly.
- Upgrade KaTeX resources to v0.10.2.
- Fix warnings related to plugin options that occurred on PHP 5.
- Clean up the plugin’s options on plugin deletion.
- Upgrade KaTeX resources to v0.10.1.
- Fix issue where KaTeX resources would not be loaded on the admin pages.
- Initial release.