Service for generating nice SVG pictures from LaTeX equations for web. You can try it in action in the Markdown and LaTeX online editor.
- TeX Live. I prefer a full installation and disabling write18 support.
nginxweb server with ngx_http_lua_module (for example, nginx-extras Debian package).php-fpm.proc_open()function must be enabled. Add the TeX bin directory (e.g. '/home/tex/tl-2016/bin/x86_64-linux') to the PHP PATH environment variable. Otherwise there can be floating bugs with generating font files.- Node.js and frontend tools:
npm,bower,grunt-cli. Make the following symlink on Debian:root:/usr/bin# ln -s nodejs node. ghostscript(used internally bydvisvgmTeX component).- Utilities:
rsvg-convert,optipng,pngout. Install them or modify the code to disable PNG support.
Deploy files:
git clone git@github.com:parpalak/tex.s2cms.ru.git
cd tex.s2cms.ru
npm install
composer install
bower install
grunt
Create the site config file:
cp config.php.dist config.php
mcedit config.php # specify the LaTeX bin dir and other paths
Set up the host:
sudo cp nginx.conf.dist /etc/nginx/sites-available/tex.s2cms.ru
sudo mcedit /etc/nginx/sites-available/tex.s2cms.ru