看板 Wikipedia 關於我們 聯絡資訊
1. 可以辨識 <math></math>標籤內的Tex語法 在LocalSettings.php啟用Tex $wgUseTeX = true; 2. 將<math></math>標籤內的Tex語法, 轉成 .tex檔案 需要Math.php與texvc * 將{MediaWiki}/includes/Math.php 替換成這個Math.php http://z.la/o6mdg * 下載texvc.exe,儲存於{MediaWiki} (與LocalSettings.php所在的相同目錄) http://z.la/3wzz5 3. 將 .tex檔 轉成 .dvi檔 需要latex * 需要安裝MiKTeX (直接下載Basic MiKTeX 2.6 Installer) http://0rz.tw/512SN * 安裝完系統變數PATH會自動加上 C:\Program Files\MiKTeX 2.6\miktex\bin; * LocalSettings.php $wgLaTexCommand = 'latex'; 4. 將 .dvi檔 轉成 .ps檔 需要dvips * 安裝MiKTeX (C:/Program Files/MiKTeX 2.6/miktex/bin/dvips.exe) * LocalSettings.php加上 $wgDvipsCommand = 'dvips'; 5. 將 .ps檔 轉成 .png檔 需要ImageMagick與Ghostscript 安裝ImageMagick(直接下載ImageMagick-6.3.4-5-Q16-windows-dll.exe) http://0rz.tw/bf2St 安裝在c\usr\bin * 取得convert, identify兩支程式 * LocalSettings.php加上 $wgUseImageMagick = true; $wgImageMagickConvertCommand = "/usr/bin/convert"; $wgImageMagickIdentifyCommand = '/usr/bin/identify'; 安裝Ghostscript(直接下載gs856w32.exe) * C:\Program Files\gs\gs8.56\bin\gswin32c.exe 更名為gs.exe * 檢查系統變數PATH有無加上 C:\Program Files\gs\gs8.56\bin\; 6. 重新開機 安裝完程式, 還需要重開機, 啟用系統變數PATH 7. 在wiki頁面輸入tex語法 <math>(\frac{x^5}{y^7})</math> == LocalSettings.php設定 == $wgUseTeX = true; $wgTexvc = "texvc"; $wgUploadPath = "{$wgScriptPath}/images"; #Where is your ImageMagick $wgUseImageMagick = true; $wgImageMagickConvertCommand = "/usr/bin/convert"; $wgImageMagickIdentifyCommand = '/usr/bin/identify'; #Where is your Tex $wgLaTexCommand = "latex"; $wgDvipsCommand = "dvips"; -- 本文件的wiki版本: http://0rz.tw/632TH -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 59.112.42.123