来自 asp.net 网站的 Mathtran
我想在 ASP.NET 中建立一个网站,它可以显示许多方程。 我想自动生成它们,所以我需要使用一些库,这将允许我动态地从 TeX 或 LaTex 生成图像。 出于性能原因,我希望它在我的本地服务器上运行。
我尝试将 MimeTex 与 CodeProject 的 Eq2Img 项目一起使用,但我对图像的质量不满意,并且找不到任何自定义它的选项。
现在我正在尝试使用 Mathtran,但正如官方常见问题解答所述:“您需要安装有 TeX、Python 和 dvipng 的 Unix 或 Linux 服务器。”。
我的问题是:是否有人成功使用 Mathtran 在 ASP.NET 应用程序本地运行,或者可以提供其他解决方案来解决该问题?
感谢您的任何答复!
I would like to build a website in ASP.NET, which would display many equations. I would like to generate them automaticly, so I need to use some library, that would allow me to generate images from TeX or LaTex dynamicly. For performance resaons, I would like to have it running on my local server.
I tried to used MimeTex with the Eq2Img project from CodeProject, but I was not satisfied with the quality of the images, and couldn't find any options to customize it.
Now I'm trying to use Mathtran, but as the official FAQ says: "You'll need a Unix or Linux server with TeX, Python and dvipng installed.".
My question is: is someone sucessfull in using Mathtran running locally with ASP.NET application, or can give some other solution to the problem?
Thanks for any answer!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以非常轻松地推出自己的解决方案。 将源代码输入 LaTeX 以创建 DVI 文件。 然后使用 dvipng 创建一个 PNG 文件,然后将其显示在您的网页中。
编辑:更多详细信息和其他选项可从 WikiBooks 获得。
You can roll your own solution pretty easily. Feed your source to LaTeX to create a DVI file. Then use dvipng to create a PNG file, and then show that in your web page.
Edit: more detail and other options available from WikiBooks.
FAQ还说:“提供此服务的软件是开源的,可以下载并安装在您自己的网络服务器或桌面计算机上(目前仅限 Unix/Linux)。” 既然你绝对可以得到TeX,Python 和 dvipng(适用于 Windows) ,您只需要将 Mathtran 使用的任何 Unix 基础设施替换为类似的 Windows 部件即可。 Mathtran 的开发人员很可能只是不需要自己使用 Windows 服务器,而“目前”一词表明他们可能会接受补丁以使其也能在 Windows 上运行。
The FAQ also says: "The software that provides this service is open source, and can be downloaded and installed on your own web-server or desktop machine (Unix/Linux only at present)." Since you can definitely get TeX, Python, and dvipng for Windows, you just need to replace whatever Unix infrastructure Mathtran is using with similar Windows parts. Most likely the developers of Mathtran just haven't had the need to use a Windows server themselves, and the wording "at present" suggests that they would likely accept a patch to make it work on Windows too.
您可以使用 http://www.mathtran.org/wiki/ 的 MathTran Web 服务吗index.php/TeX_image?
Can you use the MathTran web service per http://www.mathtran.org/wiki/index.php/TeX_image?