将字符串转换为 LateX 图像?
我正在开发一个包含大量数学内容的 WP7 应用程序,并且我需要将表达式显示为图像。 这些表达式的数据采用如下字符串的形式:
"d=\\sqrt{2} \\times a"
"A=a \\times \\frac{\\pi}{4}"
等。
目标是获取这样的字符串,通过某种解析器运行它,然后以 LateX 样式输出表达式的图像。
有谁知道我可以包含一些神奇的代码/有解决方案吗?
非常感谢。
I'm developing a WP7 app that has a lot of math content, and I need to display expressions as images.
The data for these expressions is in the form of strings like this:
"d=\\sqrt{2} \\times a"
"A=a \\times \\frac{\\pi}{4}"
etc.
The goal is to take a string like this, run it through some parser of some sort that then outputs an image of the expression in LateX style.
Does anyone know of some magic code I can include / have a solution?
Much appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果不让 Tex 在 Windows 7 Phone 上运行,一个可能的解决方案是使用 Web 服务。
您可以将方程字符串发布到 Web 服务,它会回复图像数据或 URL。 示例
如果 Windows 7 Phone 的 tex 存在,则上述页面还链接到一个名为 tex2im 的脚本,该脚本展示了如何从 tex 代码创建图像。
A possible solution without getting Tex to run on windows 7 phone, would be to use a web service.
You would post your equation string to a web service and it would reply with the image data or a url. Example
In the event that tex for windows 7 phone exists, that above mentioned page also links to a script called tex2im which shows how to create an image from tex code.