Looking for a self-contained equation rendering library(寻找一个独立的方程渲染库)
问题描述
是否有一个小型的、独立的库,它将以基于文本的格式(例如 LaTeX 或 MathML)编写的方程呈现为图像(矢量或光栅)?
Is there such a thing as a small, self-contained library that will render an equation written in a text-based format (e.g. LaTeX or MathML) to an image (either vector or raster)?
最好是 Python 或 Python 友好的.
It would be preferable if it's in Python or Python-friendly.
(我发现的一种可能性:Matplotlib 有 Python 代码来解析和显示 LaTeX 方程,使用gl2ps.如果我没有找到其他任何东西,似乎可以将所有相关位提取到一个单独的库中.)
(One possibility that I've found: Matplotlib has Python code to parse and display LaTeX equations, using gl2ps. If I don't find anything else it seems possible to extract all the relevant bits into a separate library.)
自包含"我的意思是他们不能使用 TeX/LaTex 本身,因为不幸的是我不能依赖它的安装
by "self-contained" I mean they can't use TeX/LaTex itself since unfortunately I can't rely on it being installed
推荐答案
你可以尝试将MathML转换为SVG.
这篇关于寻找一个独立的方程渲染库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:寻找一个独立的方程渲染库
基础教程推荐
- 对多索引数据帧的列进行排序 2022-01-01
- Python 中是否有任何支持将长字符串转储为块文字或折叠块的 yaml 库? 2022-01-01
- 究竟什么是“容器"?在蟒蛇?(以及所有的 python 容器类型是什么?) 2022-01-01
- kivy 应用程序中的一个简单网页作为小部件 2022-01-01
- matplotlib 设置 yaxis 标签大小 2022-01-01
- 在 Python 中将货币解析为数字 2022-01-01
- Kivy 使用 opencv.调整图像大小 2022-01-01
- 在 Django Admin 中使用内联 OneToOneField 2022-01-01
- 比较两个文本文件以找出差异并将它们输出到新的文本文件 2022-01-01
- Python,确定字符串是否应转换为 Int 或 Float 2022-01-01
