Questo plugin non è stato testato con le ultime 3 versioni principali (major releases) di WordPress. Potrebbe non essere più mantenuto, o supportato, e potrebbe presentare problemi di compatibilità se utilizzato con versioni più recenti di WordPress.

KaTeX

Descrizione

Il plugin di WordPress KaTex ti permette di utilizzare il più veloce motore di composizione matematica TeX nel tuo sito WordPress. Puoi includere TeX all’interno di uno shortcode [katex]...[/katex] o in un blocco Gutenberg. In entrambi i modi la formula matematica sarà visualizzata magnificamente nel tuo sito web. Utilizzando i blocchi Gutenberg, le equazioni saranno visualizzate immediatamente all’interno del tuo editor!

Le equazioni nei blocchi o utilizzando lo shortcode [katex display=true]...[/katex] verranno visualizzati nella pagina in modalità visualizzazione con i simboli più grandi centrati nella propria linea.

Per compatibilità con altri plugin LaTex, questo plugin opzionalmente supporta gli shortcode [latex]...[/latex].

Puoi scegliere di offrire KaTeX tu stesso o attraverso terze parti con jsDelivr CDN.

Sito web del plugin

Screenshot

  • Vedi l'anteprima del tuo TeX all'interno dell'editor.
  • TeX è visualizzato all'interno dei browser dei tuoi visitatori.

Blocchi

Questo plugin fornisce 1 blocco.

  • KaTeX

Installazione

  1. Carica la cartella katex nella tua directory /wp-content/plugins/ o scarica automaticamente ed installa il plugin tramite il gestore di plugin di WordPress;
  2. Attiva il plugin in WordPress; e
  3. Usa lo shortcode [latex] o i blocchi Gutenberg KaTeX nei tuoi articoli e pagine.

FAQ

Posso migrare dal plugin X di LaTex a questo plugin ?

Dovresti essere in grado di sostituire ogni altro plugin LaTex usando gli shortcode [latex] senza dover modificare gli articoli esistenti. Altri plugin potrebbero gestire la modalità di visualizzazione in modo diverso da [latex display=true]...[/latex], in tale caso i vecchi articoli dovranno purtroppo essere modificati.

Recensioni

31 Marzo 2024
Is it possible to render KaTeX for inline mode in a paragraph (Gutenberg preview)? Please consider this in next update.
12 Settembre 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.
26 Settembre 2021 1 risposta
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.
Leggi tutte le recensioni di 15

Contributi e sviluppo

“KaTeX” è un software open source. Le persone che hanno contribuito allo sviluppo di questo plugin sono indicate di seguito.

Collaboratori

“KaTeX” è stato tradotto in 7 lingue. Grazie ai traduttori per i loro contributi.

Traduci “KaTeX” nella tua lingua.

Ti interessa lo sviluppo?

Esplora il codice segui il repository SVN, segui il log delle modifiche tramite RSS.

Changelog (registro delle modifiche)

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.