Dieses Plugin ist nicht mit den jüngsten 3 Hauptversionen von WordPress getestet worden. Es wird möglicherweise nicht mehr gewartet oder unterstützt und kann Kompatibilitätsprobleme haben, wenn es mit neueren Versionen von WordPress verwendet wird.

MathJax-LaTeX

Beschreibung

MathJax ermöglicht die Darstellung von LaTeX oder MathML in HTML-Seiten. Dieses Plugin fügt diese Funktion zu WordPress hinzu. Das MathJax-JavaScript wird nur in den Seiten eingebaut, die es auch verwenden. Dadurch wird ein langsamerer Seitenaufbau für alle anderen Seiten vermieden.

The MathJax JavaScript can be delivered from your own server, or you can use the Cloudflare Content Distribution Network (CDN), which is the preferred mechanism as it offers increased speed and stability over hosting the JavaScript and configuring the library yourself.

Latex kann mit einer Reihe unterschiedlicher Syntaxen verwendet werden. Dabei sollte die Shortcode-Syntax (https://codex.wordpress.org/Shortcode_API) bevorzugt werden. [latex]E=mc^2[/latex] wird einfach so funktionieren und MathJax laden.

Additionally, you can use native MathJax syntax — $$E=mc^2$$ or \(E=mc^2\). However, if this is the only syntax used, the plugin must be explicitly told to load MathJax for the current page. This can be achieved by adding a [mathjax] shortcode anywhere in the post. For posts with both [latex]x[/latex] and $$x$$ syntaxes this is unnecessary.

Zwar kann man die wp-latex-Syntax verwenden: $latex E=mc^2$, allerdings werden dabei die Parameter ignoriert! MathJax-LaTeX sollte ein direkter Ersatz für wp-latex sein. Beides zusammen steht im Konflikt, und wird daher standardmäßig blockiert. Die $latex$-Syntax kann explizit in den Einstellungen eingeschaltet werden.

You can also specify [nomathjax] — this will block mathjax on the current page, regardless of other tags.

MathJax-LaTeX wird auf GitHub entwickelt.

Copyright

Das Copyright des Plugins liegt bei Phillip Lord von der Newcastle University und ist unter GPLv2 lizenziert.

Installation

  1. Entpacke das heruntergeladene .zip-Archiv ins Verzeichnis /wp-content/plugins/
  2. Aktiviere das Plugin über das Plugins-Menü in WordPress

Rezensionen

6. Oktober 2020
There is a mistake on the beginning of this product descriotion: There, we see: "enables enables"
12. Februar 2018 1 Antwort
I think it's a very great plugin because we, as a physics lover, are so difficult to type latex equations in any blog. I like wordpress but its WP-latex is not good enough. I found that MathJax won't work well when the equation is too many "A_{1}^{2}", "\text{1233}" or something like that. For example, $$\large\sum_{i=1}^n\vec{F}_{\text{ext, i}}=\sum_{i=1}^n$$ This equation won't show LaTeX correctly. However, if I delete =\sum_{i=1}^n, then everything is fine. $$\large\sum_{i=1}^n\vec{F}_{\text{ext, i}}$$ I really need your help. I love this plugin so much because it enables me to write a physics blog. Thank you so much. You can see this two pictures : https://imgur.com/Myse5vr https://imgur.com/a/IxXI7
10. Dezember 2017
Thanks for your work. By the way, could you please add the inlineMath config? Or I have to add <script type="text/x-mathjax-config"> MathJax.Hub.Config({ tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]} }); </script> in header.php to support the inlineMath.
8. September 2017
I really like the fact that it only injected code when needed. It seems I cannot put two [latex] equations on one page. I ended up use one [latex] and one $$ code.
28. März 2017
I am not a heavy LaTeX user but I do write about mathematics every now and then, and I find MathJax extremely useful. I have been using it for the last 2 or 3 years - no issues whatsoever. It simply works, both on PC an on mobile. The biggest selling point to me is that it allows for selecting & copying math expressions as text (as opposite to other LaTeX plugins that convert expressions to png). This makes things scalable, performant etc. Good work!
3. September 2016
Up to now I've been using the Simple Mathjax plugin, which also works well, but is not able to inject the mathjax dependency selectively. On my sites I have math only on a very few pages, and MathJax-LaTeX enables me to enable mathjax only on those pages by just adding the [mathjax] shortcode somewhere. Importantly, remember to disable Jetpack Beautiful Math, else it can interfere with MathJax-LaTeX. (at the time of writing, Jetpack is still turning math into bitmaps, which is not nearly as beautiful as MathJax on capable browsers). See https://vxlabs.com/2014/06/16/level-sets-the-practical-10-minute-introduction/ for an example.
Alle 9 Rezensionen lesen

Mitwirkende & Entwickler

„MathJax-LaTeX“ ist Open-Source-Software. Folgende Menschen haben an diesem Plugin mitgewirkt:

Mitwirkende

Übersetze „MathJax-LaTeX“ in deine Sprache.

Interessiert an der Entwicklung?

Durchstöbere den Code, sieh dir das SVN Repository an oder abonniere das Entwicklungsprotokoll per RSS.

Änderungsprotokoll

1.3.12

  1. Use version 2.7.9 of MathJax JS
  2. Add code comments to all variables, functions and parameters.

1.3.11

  1. Verwendet Version 2.7.5 von MathJax JS

1.3.10

  1. Klassen-Dateien umbenannt nach PHPCS
  2. Null-Werte im filter_br_tags_on_math werden nun eleganter behandelt. Danke dafür an Yang Liu.

1.3.9

  1. Änderungen im Code-Stil nach PHPCS 3.3.0 und WPCS 0.14.1
  2. Verwendet die Kurz-Array-Syntax von PHP 7.

1.3.8

  1. Änderungen im Code-Stil nach PHPCS 3.1.1 und WPCS 0.14

1.3.7

  1. MathJax auf 2.7.2 aktualisiert

1.3.6

  1. Standort des MathJax-CDNs geändert

1.3.5

  1. Unterstützung zur Konfiguration von MathJax per Filter hinzugefügt

1.3.4

  1. PHP-Code aufgeräumt.
  2. Immer die https-URL für die MathJax-Bibliothek verwenden
  3. „Getestet bis“ auf 4.3 aktualisiert

1.3.3

  1. Uneinheitliche Versionsnummern zwischen Readme und PHP-Datei angepasst

1.3.2

  1. Code weiter aufgeräumt.

1.3.1

  1. Barrierefreiheit auf der Admin-Seite verbessert.
  2. VIP-Programmierungs-Standards
  3. MathML-Tags in TinyMCE aktiviert

Der gesamte Code für diese Version wurde von Benutzern dieses Plugins bereitgestellt! Danke an Jared Wenerd und Paul Schreiber.

1.3.0

  1. MathML-Tags und -Attribute zur Whitelist hinzufügen.
  2. Unerwünschte Eingaben entfernt und Ausgaben gesichert.

1.2.1

  1. Fehlerbehebung: Eigene Locations wurde nicht richtig angewendet.
  2. Fehlerbehebung: Erzwungenes Laden wurde nicht richtig angewendet.

1.2

  1. Die Admin-Seite war angreifbar für Dritte, deren Benutzer als Admin angemeldet waren.
  2. Die Admin-Infos wurden auf einer Seite zusammengefasst und umformuliert.
  3. Alle Optionen wurden umbenannt. Das bedeutet leider, dass das Plugin neu konfiguriert werden muss. Insbesondere ist die wp-latex-Syntax standardmäßig abgeschaltet.

1.1

  1. Dokumentation aktualisiert.
  2. Aktualisierungstest – mit Dokumentation für WordPress 3.5.1
  3. Getestet mit MathJax 2.1

1.0

  1. Kompatibilität mit MathJax 1.1. Lade eine Standard-Konfiguration von der MathJax-Distribution.
  2. Verwende das Content Distribution Network von MathJax, um die JavaScript-Bibliothek auszuliefern. Dies sorgt für verbesserte Leistung und Stabilität.

0.2

  1. Die URL, von der MathJax.js geladen wird, ist jetzt konfigurierbar. Standard ist $PLUGIN/MathJax/MathJax.js