Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 12 years ago.
cd /tmp/; git clone https://github.com/dubiousjim/pandoc-iki.git
which pandoc
/usr/bin/pandoc
将以下行添加到您的 wiki - setup(例如 mywiki.setup)文件中:
# pandoc 插件 pandoc_command =>; “/usr/bin/pandoc”, pandoc_latex =>; 1、 pandoc_rst =>; 0, pandoc_math =>; “数学贾克斯”,
例如,将 pandoc 添加到您的安装文件中的插件列表中
pandoc
\# 要添加到默认配置的插件 添加插件=> [qw{goodstuff websetup wmd pandoc}]
sudo cp /tmp/pandoc-iki/mathjax.tmpl /usr/share/ikiwiki/ templates/page.tmpl
sudo cp /tmp/pandoc-iki/pandoc.pm /usr/share/perl5/IkiWiki/Plugin
sudo ikiwiki --setup ~/mywiki.setup
要激活 html_css,请更改 / 中的以下行usr/share/ikiwiki/templates/page.tmpl:
/ 中的以下行usr/share/ikiwiki/templates/page.tmpl
<脚本 src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript">
到
<脚本 src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML-full" type="text/javascript">
然后再次执行 sudo ikiwiki --setup ~/mywiki.setup。
如果您也想离线使用 ikiwiki,您可以更改目录路径:下载 mathjax 并将其放在某个位置,例如放入 /var/www/myiki 中,然后更改行上面到
/var/www/myiki
;
(不要忘记运行 ikiwiki --setup)
ikiwiki --setup
add the following lines to your wiki - setup (e.g. mywiki.setup) file:
# pandoc plugin pandoc_command => "/usr/bin/pandoc", pandoc_latex => 1, pandoc_rst => 0, pandoc_math => "mathjax",
add pandoc to your plugin list in your setup file, for example
\# plugins to add to the default configuration add_plugins => [qw{goodstuff websetup wmd pandoc}]
sudo cp /tmp/pandoc-iki/mathjax.tmpl /usr/share/ikiwiki/templates/page.tmpl
To activate html_css you change the following line in /usr/share/ikiwiki/templates/page.tmpl:
/usr/share/ikiwiki/templates/page.tmpl
<script src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script>
to
<script src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML-full" type="text/javascript"></script>
then do sudo ikiwiki --setup ~/mywiki.setup again.
If you want to use your ikiwiki offline too, you could change the path to the directory: download mathjax and put it somewhere for example into /var/www/myiki and do in change the line above to
<script src="/iki/mathjax/MathJax.js?config=TeX-AMS_HTML-full" type="text/javascript"></script>
(don't forget to run ikiwiki --setup)
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(1)
cd /tmp/; git clone https://github.com/dubiousjim/pandoc-iki.git
which pandoc
例如/usr/bin/pandoc
code>将以下行添加到您的 wiki - setup(例如 mywiki.setup)文件中:
例如,将
pandoc
添加到您的安装文件中的插件列表中sudo cp /tmp/pandoc-iki/mathjax.tmpl /usr/share/ikiwiki/ templates/page.tmpl
sudo cp /tmp/pandoc-iki/pandoc.pm /usr/share/perl5/IkiWiki/Plugin
sudo ikiwiki --setup ~/mywiki.setup
要激活 html_css,请更改
/ 中的以下行usr/share/ikiwiki/templates/page.tmpl
:<脚本 src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript">
到
<脚本 src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML-full" type="text/javascript">
然后再次执行
sudo ikiwiki --setup ~/mywiki.setup
。如果您也想离线使用 ikiwiki,您可以更改目录路径:下载 mathjax 并将其放在某个位置,例如放入
/var/www/myiki
中,然后更改行上面到(不要忘记运行
ikiwiki --setup
)cd /tmp/; git clone https://github.com/dubiousjim/pandoc-iki.git
which pandoc
for example/usr/bin/pandoc
add the following lines to your wiki - setup (e.g. mywiki.setup) file:
add
pandoc
to your plugin list in your setup file, for examplesudo cp /tmp/pandoc-iki/mathjax.tmpl /usr/share/ikiwiki/templates/page.tmpl
sudo cp /tmp/pandoc-iki/pandoc.pm /usr/share/perl5/IkiWiki/Plugin
sudo ikiwiki --setup ~/mywiki.setup
To activate html_css you change the following line in
/usr/share/ikiwiki/templates/page.tmpl
:<script src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script>
to
<script src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML-full" type="text/javascript"></script>
then do
sudo ikiwiki --setup ~/mywiki.setup
again.If you want to use your ikiwiki offline too, you could change the path to the directory: download mathjax and put it somewhere for example into
/var/www/myiki
and do in change the line above to(don't forget to run
ikiwiki --setup
)