- To build and run this project, you need Node.js ≥14.x.
- Make sure
pdflatex
andpdf2svg
are available from the command line.
- Create
preamble.tex
with the following content.Then run\documentclass[10pt,crop,tikz]{standalone} \usepackage{tikz-cd} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{mathrsfs} \begin{document}
This generates a precompile header filepdflatex -ini "&pdflatex preamble.tex\dump"
preamble.fmt
. Copy this file to the workspace folder. - Run
yarn
, thenyarn build
, thenyarn start
. - Send a POST request to
127.0.0.1:9292
, with URL parameterstype
andtex
.type
can only be eithertikzpicture
ortikzcd
.tex
is the LaTeX code after\begin{tikzpicture}
and before\end{tikzpicture}
.