KaTeX

描述

通过KaTeX WordPress插件,您可以在WordPress网站上使用最快的TeX数学排版引擎 。 您可以在 [katex]...[/katex]简码内或古腾堡区块中包含TeX。 无论哪种方式,数学公式符号都会在您的网站上完美呈现。 使用古腾堡(Gutenberg)区块时,方程将立即在编辑器中呈现!

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.

为了与其他LaTeX插件兼容,该插件可以选择支持 [latex]...[/latex]短代码。

您可以选择自己提供服务或通过第三方 jsDelivr CDN提供服务。

插件网站

屏幕截图

  • 在编辑器中预览TeX。
  • TeX呈现在访问者的浏览器中。

区块

该插件提供了1个区块.

  • KaTeX

安装

  1. katex文件夹上传到您的/wp-content/plugins/目录,或者通过WordPress的插件管理器自动下载并安装插件;
  2. 在WordPress中激活插件; 和
  3. 在您的帖子和页面中使用[latex]简码或KaTeX 古藤堡块。

常见问题

我可以从LaTeX插件迁移到该插件吗?

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.

评价

2020年11月1日
The rendering for displaying equations is very good. Better than other plugins. The support is responsive and provides clear and working solutions.
2020年4月28日
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.
2020年1月2日
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.
2019年9月24日
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.
2019年9月4日
Works exactly how I want it to and it has Gutenberg support. No more silly shortcodes.
阅读所有的9评价

贡献者及开发者

“KaTeX” 是开源软件。 以下人员对此插件做出了贡献。

“KaTeX”插件已被翻译至7种本地话语言。 感谢所有译者为本插件所做的贡献。

将“KaTeX”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

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.