Title: KaTeX
Author: Tom Churchman
Published: <strong>December 13, 2018</strong>
Last modified: July 21, 2025

---

Search plugins

![](https://ps.w.org/katex/assets/banner-772x250.png?rev=1993573)

![](https://ps.w.org/katex/assets/icon.svg?rev=1993573)

# KaTeX

 By [Tom Churchman](https://profiles.wordpress.org/beskhue/)

[Download](https://downloads.wordpress.org/plugin/katex.2.2.5.zip)

 * [Details](https://pcd.wordpress.org/plugins/katex/#description)
 * [Reviews](https://pcd.wordpress.org/plugins/katex/#reviews)
 *  [Installation](https://pcd.wordpress.org/plugins/katex/#installation)
 * [Development](https://pcd.wordpress.org/plugins/katex/#developers)

 [Support](https://wordpress.org/support/plugin/katex/)

## Description

The KaTeX WordPress plugin enables you to use the fastest [TeX math typesetting engine](https://github.com/Khan/KaTeX)
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 compatibility with other LaTeX plugins, this plugin optionally supports `[latex]...[/
latex]` shortcodes.

[Plugin Website](https://wordpress.org/plugins/katex)

### Assets

This plugin includes minified assets provided by the KaTeX project.
 The source 
code is available in [the KaTeX git repository on GitHub](https://github.com/KaTeX/KaTeX/tree/v0.16.22).

## Screenshots

 * [[
 * Preview your TeX right inside the editor.
 * [[
 * TeX is rendered inside your visitors’ browsers.

## Blocks

This plugin provides 1 block.

 *   KaTeX

## Installation

 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.

## FAQ

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

## Reviews

![](https://secure.gravatar.com/avatar/b8c067fd29313fc88ebe1e024108a0d9919260289576871df56c47f6bf6ac16f?
s=60&d=retro&r=g)

### 󠀁[Updates again](https://wordpress.org/support/topic/updates-again/)󠁿

 [gkoper](https://profiles.wordpress.org/gkoper/) July 25, 2025

Thanks to Tom for reopening this plugin for updates. It must have been a chore to
satisfy the “administrators” but the result is great. I have been using KaTeX all
the time. Wordpress complained about lack of updates where there was no real reason
other than administrative. I am sure also in the future, updating only means adapting
to new rules. Ger

![](https://secure.gravatar.com/avatar/29ea0ca3811b42675798615aa9f6123973a459845c29881e05e06b0614f7cbba?
s=60&d=retro&r=g)

### 󠀁[Rendering inline](https://wordpress.org/support/topic/question-427/)󠁿

 [Difa](https://profiles.wordpress.org/difawa/) March 31, 2024

Is it possible to render KaTeX for inline mode in a paragraph (Gutenberg preview)?
Please consider this in next update.

![](https://secure.gravatar.com/avatar/8a6e167db54254ce98adcb3d00e1d65b77be5c7e9ce36ebaffb23c9074734748?
s=60&d=retro&r=g)

### 󠀁[RTL equation in RTL websites!](https://wordpress.org/support/topic/rtl-equation-in-rtl-websites/)󠁿

 [مرتضی رستگار](https://profiles.wordpress.org/qwerty13/) August 20, 2023 1 reply

This plugin have no options at all! and sets its direction by global direction that
means RTL equations in RTL websites!

![](https://secure.gravatar.com/avatar/6ef9512673a51d00a0985d32a570b36f19742500bdd9012ec3b4d94a2c3f1f4f?
s=60&d=retro&r=g)

### 󠀁[Great plugiin](https://wordpress.org/support/topic/great-plugiin-4/)󠁿

 [macadk](https://profiles.wordpress.org/macadk/) September 12, 2022

This is a great plugin for everyone who wants to use the power of LaTeX or KaTeX
to display properly typeset math on their site. My favourite aspect of this plugin
is how the Ka block displays a preview of the formatted text. While you can insert
KaTeX statements using the shortcode block, if you do that, then the equations will
be left justified, and there is little to do about it. Using the KaTeX block, the
calculations will be properly centred between the margins set by your theme. Great
job by the developer! I hope that the plugin will continue to be maintained so that
we don’t lose compatibility with the latest versions of WordPress, as there are 
very few options otherwise.

![](https://secure.gravatar.com/avatar/f37a98d55b00e10d472f1d5e1214a64f19253d98debcaad8bfda828d07dd0526?
s=60&d=retro&r=g)

### 󠀁[Versatile](https://wordpress.org/support/topic/versatile-46/)󠁿

 [mrezatavakol](https://profiles.wordpress.org/mrezatavakol/) March 13, 2022

Fortunately, this is compatible with Elementor!

![](https://secure.gravatar.com/avatar/8f4ec0a11320cda5c10a6cbb7ca38b71e48f040c67bced2f3aa798c0958f4ae5?
s=60&d=retro&r=g)

### 󠀁[Nice Plugin](https://wordpress.org/support/topic/nice-plugin-4422/)󠁿

 [allabakash](https://profiles.wordpress.org/allabakash/) September 26, 2021 1 reply

Veny nice plugin. Able to use very easily and without any issues. A cakewalk if 
you know latex syntax. Rendering is very fast too. There is lot of accounting related
math content on my site (eduxir.com) which requires to use math equations. Was able
to achieve very easily. One request to the author is that the font and related files
are downloaded even on the pages that do not use katex. We need to modify the plugin
to disable this option. If a configuration option that could be provided which would
retain the configuration even after updating the file, would be of great help.

 [ Read all 16 reviews ](https://wordpress.org/support/plugin/katex/reviews/)

## Contributors & Developers

“KaTeX” is open source software. The following people have contributed to this plugin.

Contributors

 *   [ Tom Churchman ](https://profiles.wordpress.org/beskhue/)

“KaTeX” has been translated into 7 locales. Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/katex/contributors)
for their contributions.

[Translate “KaTeX” into your language.](https://translate.wordpress.org/projects/wp-plugins/katex)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/katex/), check out 
the [SVN repository](https://plugins.svn.wordpress.org/katex/), or subscribe to 
the [development log](https://plugins.trac.wordpress.org/log/katex/) by [RSS](https://plugins.trac.wordpress.org/log/katex/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 2.2.5

 * As per WordPress’s guidelines, remove the ability to fetch KaTeX resources through
   jsDelivr’s CDN.
 * Various internal improvements based on [WordPress’s Plugin Check](https://wordpress.org/plugins/plugin-check/).

#### 2.2.4

 * Upgrade KaTeX resources to v0.16.22.

#### 2.2.3

 * More robustly render shortcodes (even more robustly than 2.2.2).

#### 2.2.2

 * More robustly render shortcodes.
 * Fix undefined variable notice.

#### 2.2.1

 * 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).

#### 2.2.0

 * Trigger rendering of KaTeX when the DOM is mutated by inserting a `.katex-eq`
   node. This allows rendering KaTeX markup that is not present when the page is
   loaded.
 * Upgrade KaTeX resources to v0.13.13.

#### 2.1.2

 * Always load JavaScript and CSS assets by default. An option is introduced to 
   switch to the old behavior of loading only when KaTeX is used on the page.
 * Make it easier for other code to manually trigger rendering of KaTeX.
 * Upgrade KaTeX resources to v0.13.0.

#### 2.1.1

 * Remove `<br>` tags added by WordPress to shortcode output.

#### 2.1.0

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

#### 2.0.2

 * Fix block editor variable scoping.

#### 2.0.1

 * Upgrade KaTeX resources to v0.11.1.

#### 2.0.0

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

#### 1.0.5

 * Fix 1.0.4 release issue: KaTeX resources were not committed correctly.

#### 1.0.4

 * Upgrade KaTeX resources to v0.10.2.

#### 1.0.3

 * Fix warnings related to plugin options that occurred on PHP 5.
 * Clean up the plugin’s options on plugin deletion.

#### 1.0.2

 * Upgrade KaTeX resources to v0.10.1.

#### 1.0.1

 * Fix issue where KaTeX resources would not be loaded on the admin pages.

#### 1.0.0

 * Initial release.

## Meta

 *  Version **2.2.5**
 *  Last updated **9 months ago**
 *  Active installations **2,000+**
 *  WordPress version ** 5.0 or higher **
 *  Tested up to **6.8.5**
 *  PHP version ** 5.3 or higher **
 *  Languages
 * [Chinese (China)](https://cn.wordpress.org/plugins/katex/), [English (US)](https://wordpress.org/plugins/katex/),
   [French (France)](https://fr.wordpress.org/plugins/katex/), [Italian](https://it.wordpress.org/plugins/katex/),
   [Russian](https://ru.wordpress.org/plugins/katex/), [Spanish (Mexico)](https://es-mx.wordpress.org/plugins/katex/),
   [Spanish (Spain)](https://es.wordpress.org/plugins/katex/), and [Spanish (Venezuela)](https://ve.wordpress.org/plugins/katex/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/katex)
 * Tags
 * [katex](https://pcd.wordpress.org/plugins/tags/katex/)[latex](https://pcd.wordpress.org/plugins/tags/latex/)
   [math](https://pcd.wordpress.org/plugins/tags/math/)[MathJaX](https://pcd.wordpress.org/plugins/tags/mathjax/)
   [tex](https://pcd.wordpress.org/plugins/tags/tex/)
 *  [Advanced View](https://pcd.wordpress.org/plugins/katex/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  16 5-star reviews     ](https://wordpress.org/support/plugin/katex/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/katex/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/katex/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/katex/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/katex/reviews/?filter=1)

[Add my review](https://wordpress.org/support/plugin/katex/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/katex/reviews/)

## Contributors

 *   [ Tom Churchman ](https://profiles.wordpress.org/beskhue/)

## Support

Issues resolved in last two months:

     0 out of 1

 [View support forum](https://wordpress.org/support/plugin/katex/)