.NET 的 LaTeX 渲染器? [英] LaTeX renderer for .NET?

查看:46
本文介绍了.NET 的 LaTeX 渲染器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很好奇是否存在用于 TeX/LaTeX 的本机 .NET 渲染器.我能找到的最接近的匹配是 Java 实现 JMathTeX.我很想将它移植到 C#,但在此之前,我只想检查是否有人知道那里的 .NET 实现.

I'm curious as to whether a native .NET renderer for TeX/LaTeX exists. The closest match I have been able to find is a Java implementation, JMathTeX. I am tempted to port this to C#, but before I do so, I would simply like to check whether anyone is aware of a .NET implementation out there.

我目前的想法是使用 MiKTeX 和 dvipng 来编译 TeX 源并将生成的 DVI 渲染为 PNG,但我仍然担心这可能会产生不可接受的开销,而不是提到需要将 MiKTeX 与给定程序捆绑在一起.

My current thoughts are to use MiKTeX along with dvipng to compile the TeX source and render the generated DVI as a PNG, but I'm still worrying this may incur an unacceptable amount of overhead, not to mention the need to bundle MiKTeX with the given program.

推荐答案

如果我没记错的话,TeX 是用 Pascal 方言写的,今天编译的时候一般先编译成标准 C,然后用 C 编译编译器生成最终的二进制文件.将原始 Pascal 代码编译成 C# 并在 C# 中围绕它编写一个包装器以便能够将其用作库可能是可行的.

If I'm not mistaken, TeX is written in a dialect of Pascal, and when compiled today it's generally first compiled into standard C, then compiled with a C compiler to produce the final binary. It might be feasible to instead compile the original Pascal code into C# and perhaps write a wrapper around it in C# to be able to use it as a library.

当然,这是一个相当大的项目,对于你手头的问题来说可能是多余的.

Of course this is a rather large project to take on and is probably overkill for your problem at hand.

这篇关于.NET 的 LaTeX 渲染器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆