tex2svg [options] "math" > file.svg
Options:
--help Show help [boolean]
--version Show version number [boolean]
--inline process as inline math [boolean]
--em em-size in pixels [default: 16]
--ex ex-size in pixels [default: 8]
--width width of container in pixels [default: 1280]
--packages the packages to use, e.g. "base, ams"
[default: "action, ams, amscd, base, bbox, boldsymbol, braket, bussproofs,
cancel, cases, centernot, color, colortbl, configmacros, empheq, enclose,
extpfeil, gensymb, html, mathtools, mhchem, newcommand, noerrors, noundefined,
tagformat, textcomp, textmacros, unicode, upgreek, verb"]
--styles include css styles for stand-alone image
[boolean] [default: true]
--container include <mjx-container> element [boolean]
--css output the required CSS rather than the SVG itself [boolean]
--fontCache whether to use a local font cache or not
[boolean] [default: true]
--assistiveMml whether to include assistive MathML output
[boolean] [default: false]
tex2svg [options] 'math' > file.svg
Options:
--help Show help [boolean]
--version Show version number [boolean]
--inline process as in-line TeX [boolean]
--speech include speech text [boolean] [default: true]
--linebreaks perform automatic line-breaking [boolean]
--font web font to use [default: "TeX"]
--ex ex-size in pixels [default: 6]
--width width of container in ex [default: 100]
--extensions extra MathJax extensions e.g. 'Safe,TeX/noUndefined'
[default: ""]
README file states that
kramdown-rfc
will usetex2svg
from https://github.com/mathjax/MathJax-demos-node/blob/master/direct/tex2svgBut this is not true. I think kramdow-rfc uses
tex2svg
from https://github.com/mathjax/mathjax-node-clikramdown-rfc
specifies--font
flag and--speech
flag intex2svg
. Buttex2svg
from https://github.com/mathjax/MathJax-demos-node/blob/master/direct/tex2svg doesn't support them (see--help
outputs below).It would be better to use
tex2svg
from https://github.com/mathjax/MathJax-demos-node/blob/master/direct/tex2svg because it's up-to-date. But the downside is you can't install that as a package usingnpm
.Help from
tex2svg
from https://github.com/mathjax/MathJax-demos-node/blob/master/direct/tex2svgHelp from
tex2svg
from https://github.com/mathjax/mathjax-node-cli/blob/master/bin/tex2svg