是否有一个 Web 服务 API 接受这种类型的 Latex http 请求:
http://some_web_service/texfile?texfile=
\new\documentclass[12pt]{article}
\begin{document}
bla
\end{document}
并返回:
bla.pdf
the 在线 LaTeX 方程编辑器 http://www.codecogs.com/latex/eqneditor.php?lang=en-en非常适合这个。
EG:
使用以下标记:
![equation using Online Equation Editor]
(https://latex.codecogs.com/gif.latex?x&space;=&space;\frac{4}{5}+\pi\Omega\int_{2\pi}^{\infty}{5\left\(\frac{\tau+3}{2}\right\)d\omega})
请注意,您需要使用反斜杠转义括号,例如:\left\( stuff \right\)
如果你浏览编辑API文档 http://www.codecogs.com/latex/editor-api.php您可能会发现,可以通过更改 api url 端点来将格式从 gif 更改为 png/gif.latex
to /png.latex
.
还有使用设置白色背景的选项\bg_white
:
![equation using Online Equation Editor]
(https://latex.codecogs.com/gif.latex?\bg_white&space;x&space;=&space;\frac{4}{5}+\pi\Omega\int_{2\pi}^{\infty}{5\left\(\frac{\tau+3}{2}\right\)d\omega})
也可以看看这个meta.stackexchange答案 https://meta.stackexchange.com/a/164286/205746 and 这个 tex.stackexchange 答案 https://tex.stackexchange.com/a/1654/22116。我确信还有更多的答案指向这个工具并以不同的方式实现它。 IE:不要使用 url 使用 Markdown 表示法生成 gif 或 png,或者您可以使用 html 标记并绕过 Markdown,或者您可以将图像拖到您的帖子中。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)