LaTeX2Image allows LaTeX math equations to be exported directly to multiple image formats, and saved for use in other documents.
Enter in a LaTeX math equation and click “Convert”. For a sample expression, click “Show Example”. Source code available on GitHub.
其他使用方法
example: /latex?latexInput=a_{n%2B1}%3Da_n%2B2&outputFormat=PNG&outputScale=240%25&color=ffffff
let latex = "a_{n+1}=a_n+k"
`/latex?latexInput=${encodeURIComponent(latex)}&outputFormat=PNG&outputScale=200%25&color=white`
目前大小只能透過 outputScale 來調整 , color 因為latex的關係,只能支援16色
// black
// blue
// brown
// cyan
// darkgray
// gray
// green
// lightgray
// lime
// magenta
// olive
// orange
// pink
// purple
// red
// teal
// violet
// white
// yellow
強迫不使用cache
example: /latex?latexInput=a_{n%2B1}%3Da_n%2B2&outputFormat=PNG&outputScale=240%25&color=ffffff&debug=true