前言介紹
- 這款 WordPress 外掛「MathJax-LaTeX」是 2010-10-19 上架。
- 目前有 10000 個安裝啟用數。
- 上一次更新是 2025-01-14,距離現在已有 108 天。
- 外掛最低要求 WordPress 3.0 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 7.0.0 以上。
- 有 9 人給過評分。
- 論壇上目前有 2 個提問,問題解答率 0%
外掛協作開發者
d_swan | jwenerd | sjcockell | philliplord | knowledgeblog | paulschreiber |
外掛標籤
latex | mathml | MathJaX | science | mathematics |
內容簡介
MathJax 可以在 HTML 網頁中渲染 LaTeX 或 MathML 的內嵌式程式碼,此外掛為 WordPress 新增了這項功能。此外掛只會在需要時才會動態注入 MathJax JavaScript 到該頁面,以確保 MathJax 不會在全部網頁載入時進行載入,進而拖慢頁面載入速度。
MathJax JavaScript 可從您自己的伺服器傳送,或是您可以使用 Cloudflare 內容傳送網絡 (CDN),因其提供更快、更穩定的服務,而成為推薦的機制。
在此掛入您可以使用多種語法來嵌入 LaTeX,其中 shortcode 語法是推薦的。像是 [latex]E=mc^2[/latex] 即可使用,這也會導致 MathJax 被載入。
此外,您也可以使用原生的 MathJax 語法,例如 $$E=mc^2$$ 或 \(E=mc^2\)。然而,如果只有這種語法被使用,這項外掛必須被明確告知當前頁面需要載入 MathJax,這可以透過在文章中加入 [mathjax] shortcode 達成。如果文章同時使用 [latex] 和 $$x$$ 語法,這是不必要的。
您可以使用 wp-latex 語法,例如 $latex E=mc^2$。可以像使用 wp-latex 一樣加上參數,但是這些參數將被忽略。這意味著 MathJax-LaTeX 可以成為 wp-latex 的插件替代方案。此外,由於 wp-latex 和 MathJax-LaTeX 產生衝突,此外掛會在 wp-latex 被檢測到時阻止此功能,需在設定中明確啟用。
您也可以加入 [nomathjax] 來阻止當前頁面使用 MathJax,無論其他標籤系統是否存在。
MathJax-LaTeX 的開發在 GitHub 上進行。
版權聲明
此外掛版權歸屬於紐卡斯爾大學的 Phillip Lord,並採用 GPLv2 授權。
原文外掛簡介
MathJax enables enables rendering of embedded LaTeX or MathML in HTML pages. This plugin adds this functionality to WordPress. The MathJax JavaScript is inject on-demand only to those pages which require it. This ensures that MathJax is not loaded for all pages, which will otherwise slow loading down.
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.
You may embed latex using a variety of different syntaxes. The shortcode (https://codex.wordpress.org/Shortcode_API) syntax is preferred. So [latex]E=mc^2[/latex] will work out of the box. This also forces loading of MathJax.
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.
You can use wp-latex syntax, $latex E=mc^2$. Parameters can be specified as with wp-latex but will be ignored. This means that MathJax-LaTeX should be a drop-in replacement for wp-latex. Because this conflicts with wp-latex, this behaviour is blocked when wp-latex is present, and must be explicitly enabled in the settings.
You can also specify [nomathjax] — this will block mathjax on the current page, regardless of other tags.
MathJax-LaTeX is developed on GitHub.
Copyright
This plugin is copyright Phillip Lord, Newcastle University and is licensed under GPLv2.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「MathJax-LaTeX」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
0.1 | 0.2 | 1.0 | 1.1 | 1.2 | 1.2.1 | 1.3.1 | 1.3.2 | 1.3.3 | 1.3.4 | 1.3.5 | 1.3.6 | 1.3.7 | 1.3.8 | trunk | 1.3.10 | 1.3.11 | 1.3.12 | 1.3.13 |
延伸相關外掛(你可能也想知道)
WP Math Publisher – wpmathpub 》在文章、頁面和評論中顯示數學方程式。, 將您的純文本數學表示式放在 [pmath size=xx]...[/pmath] 短碼標籤之間。有用的 xx 大小整數值範圍為 8 到 24(預設...。
Easy WP LaTeX 》Easy WP LaTeX 提供了一個非常簡單地方式在您的文章中顯示數學公式或方程式(使用TeX或LaTeX格式輸入)。 它可以讓您自定義公式的顏色和大小以符合您的博客主...。
WP Calculator 》WP 計算機是一個免費的簡易計算機外掛,適用於你的部落格。該外掛原始碼源自 http://www.bmgadg.com/calculator.php。, 版本變更日誌:, v0.1, 首次發佈。
Google Equation for WordPress 》這個外掛可以讓你在文章中使用 LaTeX 加入數學公式。, 本外掛使用 Google 圖表 API,將 LaTeX 指令轉換成數學公式圖片。, 圖片將會存儲在你的網站上,因此效...。