Page MenuHomePhabricator
Authored By
Libattery
Mar 25 2020, 1:06 AM
Size
606 B
Referenced Files
None
Subscribers
None
// a simple TeX-input example
var mjAPI = require("mathjax-node");
mjAPI.config({
MathJax: {
// traditional MathJax configuration
}
});
mjAPI.start();
var exMath = `\\begin{array}{\|l\|}
\\text{abcdefghijk} \\\\
1234567890 \\\\
\\text{中华人民共和国} \\\\
\\text{にっぽんこく} \\\\
\\text{대한민국서울} \\\\
\\end{array}`;
mjAPI.typeset({
math: exMath,
format: "TeX", // or "inline-TeX", "MathML"
// mml:true, // or svg:true, or html:true
svg:true,
}, function (data) {
// if (!data.errors) {console.log(data.mml)}
if (!data.errors) {console.log(data.svg)}
});

File Metadata

Mime Type
text/x-tex
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
8360946
Default Alt Text
app.js (606 B)

Event Timeline