安装MathTex服务

2019-12-17  本文已影响0人  jyd519

安装LeTax

apt 或 iso安装

http://ftp.math.utah.edu/pub/tex/historic/systems/texlive/2015/

mount -t iso9660 -o ro,loop,noauto /your/texlive2015.iso /mnt

编译mathtex

wget http://www.forkosh.com/mathtex.zip
mkdir mathtex 
cd mathtex 
unzip ../mathtex.zip 
cc mathtex.c –DLATEX=\\\"$(which latex)\\\" \\\ –DDVIPNG=\\\"$(which dvipng)\\\" –o mathtex.cgi
cp mathtex.cgi /public_html/xxx.../cgi-bin/

cc mathtex.c -DLATEX=\"$(which latex)\" -DDVIPNG=\"$(which dvipng)\" -o mathtex.cgi

nginx配置

  apt-get install fcgiwrap
  cp /usr/share/doc/fcgiwrap/examples/nginx.conf /etc/nginx/fcgiwrap.conf

测试

在浏览器中访问: http://<your-address>/cgi-bin/mathtex.cgi?x^2+y^2

上一篇下一篇

猜你喜欢

热点阅读