UTF8 encoding support

This commit is contained in:
Joseph Rautenbach 2019-05-23 11:23:50 +02:00
parent 7bec901d9c
commit 8214ce5111

3
app.js
View File

@ -11,7 +11,7 @@ var outputDir = 'output/';
var httpOutputURL = 'output/';
// Command to compile .tex file to .dvi file. Timeout kills LaTeX after 5 seconds if held up
var latexCMD = 'timeout 5 latex -interaction nonstopmode -halt-on-error equation.tex';
var latexCMD = 'timeout 5 latex -interaction nonstopmode -halt-on-error --no-shell-escape equation.tex';
// Command to convert .dvi to .svg file
var dvisvgmCMD = 'dvisvgm --no-fonts --scale=OUTPUT_SCALE --exact equation.dvi';
@ -38,6 +38,7 @@ var preamble = `
\\usepackage{amsmath}
\\usepackage{amssymb}
\\usepackage{amsfonts}
\\usepackage[utf8]{inputenc}
`;
var documentTemplate = `