內容簡介
這個外掛程式可幫助您在網誌中顯示 LaTeX 語法。
使用方法很簡單:用 [math]{LaTeX 語法}[/math] 表示,例如 [math]x^2+y^2[/math]。
特別鳴謝 John Forkosh 提供的 CGI 程式。(http://www.forkosh.com/mathtex.html)
安裝此外掛程式時會自動安裝 CGI 程式。您不需要進行其他操作。
注意:CGI 程式由 John Forkosh 維護,並且他有時(每年可能一次)會對其進行更新,此時這個外掛程式暫時可能會過時。但我會在程序更新後盡快進行更新。
當出現錯誤時,錯誤記錄消息會在選項頁面中顯示。
使用方法
用法 : [math]{LaTeX 語法}[/math]
示範:[math]x^2+y^2[/math]
有幾個選項可用於調整顯示效果。
選項1:pre
“pre” 選項幫助您顯示 LaTeX 語法本身而非渲染效果。
用法:[math pre={選擇數值}]{LaTeX 語法}[/math]
[math pre="0"]{LaTeX 語法}[/math]:顯示 LaTeX 運算式,等同於 [math]{LaTeX 語法}[/math]
[math pre="1"]{LaTeX 語法}[/math]:使用 <pre> 包裝,顯示 [math]{LaTeX 語法}[/math] 本身,便於顯示程式碼本身
[math pre="2"]{LaTeX 語法}[/math]:與 pre="1" 相同,但不顯示 [math] 和 [/math] 的程式碼。
選項2:align
“align” 選項幫助您設定渲染的 LaTeX 影像位置。
使用方法:[math align="{選擇對齊方式}"]{LaTeX 語法}[/math]
{選擇對齊方式}:默認是“top”,還可選“bottom”、“middle”、“left”和“right”。
等於 <img style="float:{選擇對齊方式}"/>
例如,[math align="left"]x^2+y^2[/math] 可以使 LaTeX 形式置於左側並包裝文本。
YW LaTeX 設置
通常設置是將您的域名 + CGI 路徑放在一起。
例如:
https://yourdomain.com/wp-content/plugins/youngwhans-simple-latex/mathtex.cgi
外掛標籤
開發者團隊
📦 歷史版本下載
原文外掛簡介
The usage is simple.
In your post, write LaTeX syntax encapsulated by [math] and [/math].
[math]{Latex Syntax}[/math].
For example, [math]x^2+y^2[/math]
It uses the Mathjax (https://www.mathjax.org) since the 2.0 version
How to use
Usage : [math]{Latex Syntax}[/math]
Example: [math]x^2+y^2[/math]
YW Latex Settings
No Setting is required.
