[WordPress] 外掛分享: Codecogs Latex Equation Editor

首頁外掛目錄 › Codecogs Latex Equation Editor
60+
安裝啟用
★★☆☆☆
2.3/5 分(4 則評價)
5295 天前
最後更新
問題解決
WordPress 3.1+ v1.0.2 上架:2011-04-28

內容簡介

這是一個微型 MCE 外掛,使得編寫 LaTeX 方程式變得簡單且"所見即所得"。它將 LaTeX 代碼轉換為圖片,以在您的文章中顯示真正漂亮的 LaTeX 方程式。

它在 WordPress TinyMCE 編輯器中添加了一個"fx"按鈕,單擊它會彈出 codecogs LaTeX 方程式編輯器,在其中可以編輯 LaTeX,然後單擊"複製"按鈕將方程式圖像複製回 TinyMCE 文字區域。

您也可以使用此編輯器僅輸入 LaTeX 代碼,然後讓像 quicklatex、mathjax 或 Latex for WordPess 等外掛將其轉換為方程式圖像,您最好在 editor_plugin.js 的第90行更改它:
tinyMCE.activeEditor.execCommand(‘mceInsertContent’, false, ”);
更改為
tinyMCE.activeEditor.execCommand(‘mceInsertContent’, false, ‘\[‘+latex+’\]’);
以當單擊複製按鈕時僅將 LaTex 代碼複製到 TinyMCE 文字區域中。

我只是按照 Greg Winiarski(http://ditio.net/2010/08/15/adding-custom-buttons-to-wordpress-tinymce/)編寫的教程,將 codecogs Tiny MCE 外掛(http://www.codecogs.com/latex/integration/tinymce/install.php)變成 WordPress 外掛。感謝這些偉大的人。如果您能使插件更易用,請在 http://www.verymath.com/2011/05/10/codecogs-latex-equation-editor/中告訴我。

任意部分

您可以提供任意部分,格式與上面的部分相同。這對於需要傳遞更多信息的非常複雜的插件可能很有用,這些信息不適合於"描述"或"安裝"類別。任意部分將顯示在上面概述的內置部分下。

簡要的 Markdown 示例

有序列表:

一些功能
另一個功能
有關插件的其他信息

無序列表:

某些東西
其他東西
第三件事

這是一個連接到 WordPress 的鏈接,以及一個連接到Markdown 的語法文檔的鏈接。標題是可選的。

Markdown 使用電子郵件樣式的符號來引用區塊,我被告知:

用星號進行強調。重覆使用時表示強。

<?php code(); // 放在撇號中 ?>

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Codecogs Latex Equation Editor」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

A Tiny MCE plugin which makes writing latex equation easy and WYSIWYG(what you see is what you get). It converts latex code into image which shows real beautiful latex equations on your post.
It adds an “fx” botton on the wordpress TinyMCE editor, on clicks it the codecogs latex equation editor pops up, where you can edit latex, then click the copy button to copy the equation image back in TinyMCE textarea.
You can also use this editor to only input latex code and let plugins like quicklatex, mathjax or Latex for WordPess to convert it to equation image, you’d better change line 90 in editor_plugin.js
tinyMCE.activeEditor.execCommand(‘mceInsertContent’, false, ”);
to
tinyMCE.activeEditor.execCommand(‘mceInsertContent’, false, ‘\[‘+latex+’\]’);
inorder to only copy LaTex code to TinyMCE textarea when click the copy button.
I just followed the tutorial written by Greg Winiarski(http://ditio.net/2010/08/15/adding-custom-buttons-to-wordpress-tinymce/) and make codecogs Tiny MCE plugin(http://www.codecogs.com/latex/integration/tinymce/install.php) into a wordpress plugin. Thanks the great guys. If you can make the plugin better to use please tell me in http://www.verymath.com/2011/05/10/codecogs-latex-equation-editor/
Arbitrary section
You may provide arbitrary sections, in the same format as the ones above. This may be of use for extremely complicated
plugins where more information needs to be conveyed that doesn’t fit into the categories of “description” or
“installation.” Arbitrary sections will be shown below the built-in sections outlined above.
A brief Markdown Example
Ordered list:

Some feature
Another feature
Something else about the plugin

Unordered list:

something
something else
third thing

Here’s a link to WordPress and one to Markdown’s Syntax Documentation.
Titles are optional, naturally.
Markdown uses email style notation for blockquotes and I’ve been told:

Asterisks for emphasis. Double it up for strong.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon