MediaWiki安装Tex小记

最近在管理一个用MediaWiki的站点。MW安装额外extension,不麻烦,git好Math后在LocalSettings.php中做好链接,并在require_once下面添加$wgUseTex = true;。

但是仅仅是这样并不行,你需要在extensions/Math/math中把texvc给compile好,然后还要装一帮系统软件。Ubuntu/Debian在这就有这个好处,apt-get install mediawiki-math即可。

但我喜欢玩CentOS,Repository里一般不含mediawiki-math,在此先摘抄一下debian上装的packages,然后再去找CentOS equivalent.

The following NEW packages will be installed:

cl-asdf clisp common-lisp-controller doc-base exiv2 feynmf imagemagick
ko.tex-extra-hlfont lacheck latex-beamer latex-cjk-all latex-cjk-chinese
latex-cjk-chinese-arphic-bkai00mp latex-cjk-chinese-arphic-bsmi00lp
latex-cjk-chinese-arphic-gbsn00lp latex-cjk-chinese-arphic-gkai00mp
latex-cjk-common latex-cjk-japanese latex-cjk-japanese-wadalab
latex-cjk-korean latex-cjk-thai latex-cjk-xcjk latex-xcolor lesstif2
libcdt4 libdjvulibre-text libdjvulibre21 libexiv2-9 libffcall1
libfreezethaw-perl libgraph4 libgvc5 libilmbase6 liblqr-1-0 libmagick++3
libmagickcore3 libmagickcore3-extra libmagickwand3 libmldbm-perl
libnetpbm10 libopenexr6 libpathplan4 libplot2c2 libpstoedit0c2a
libreadline5 libsigsegv0 libuuid-perl libwmf0.2-7 libxdot4 libxp6 lmodern
luatex mediawiki mediawiki-math netpbm pgf poppler-data poppler-utils
preview-latex-style prosper ps2eps pstoedit purifyeps realpath swath
texlive-base texlive-doc-base texlive-extra-utils texlive-font-utils
texlive-fonts-recommended texlive-fonts-recommended-doc
texlive-generic-recommended texlive-latex-base texlive-latex-base-doc
texlive-latex-extra texlive-latex-extra-doc texlive-latex-recommended
texlive-latex-recommended-doc texlive-luatex texlive-metapost
texlive-metapost-doc texlive-pictures texlive-pictures-doc
texlive-pstricks texlive-pstricks-doc texlive-xetex texpower
texpower-manual thailatex tipa ufraw-batch xindy xindy-rules xpdf

作者:小老外

我还需要不断地学习。

发表评论

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据