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 [latex]...[/latex] shortcodes.

You can choose to serve KaTeX yourself or through the third-party jsDelivr CDN.

Plugin Website

Snímky obrazovky

  • Preview your TeX right inside the editor.
  • TeX is rendered inside your visitors' browsers.


Tento plugin poskytuje 1 blok.

  • KaTeX


  1. Upload the katex folder to your /wp-content/plugins/ directory or automatically download and install the plugin through WordPress’s plugin manager;
  2. Activate the plugin in WordPress; and
  3. Use the [latex] shortcode or KaTeX Gutenberg blocks in your posts and pages.

Nejčastější dotazy

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.


1. 11. 2020
The rendering for displaying equations is very good. Better than other plugins. The support is responsive and provides clear and working solutions.
28. 4. 2020
I switched from WP-KaTeX to KaTeX a few days ago. I was pleased with WP-KaTeX, except it's not updated regularly (not tested with current WP version, for example), but I was reluctant to rely on only one LaTeX (perhaps unsupported anymore) plugin. I have a lot of maths on my website (www.mathprepa.fr) and was concerned about potential issues when I switched from WP-KaTeX to KaTeX. But everything went with zero effort. Perfectly! I appreciate that the maths are rendered in mathmal format.
2. 1. 2020
just create a new block of katex type and write in katex (subset of Latex), the formula appears instanty in the below box. Very easy to use.
24. 9. 2019
Cette extension ajoute un nouveau bloc, appelé "Ka". Il suffit d'y taper le code Latex pour voir instantanément, sous ce code, sa représentation. Parfait. Merci au développeur.
4. 9. 2019
Works exactly how I want it to and it has Gutenberg support. No more silly shortcodes.
Přečtěte si všech 9 recenzí


KaTeX je otevřený software. Následující lidé přispěli k vývoji tohoto pluginu.

Plugin „KaTeX“ byl přeložen do 7 jazyků. Děkujeme všem překladatelům za jejich pomoc.

Přeložte “KaTeX” do svého jazyka.

Zajímá vás vývoj?

Prohledejte kód, podívejte se do SVN repozitáře, nebo se přihlaste k odběru protokolu vývoje pomocí RSS.

Přehled změn


  • Remove <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 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.


  • 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.