LaTeX的渲染.NET? [英] LaTeX renderer for .NET?
问题描述
我很好奇,本机.NET渲染的TeX / LaTeX的是否存在。最近的比赛我已经能够找到的是一个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的是写在帕斯卡的一种方言,今天当编译它通常首先被编译成标准C,然后用一个C编译编译器以产生最终的二进制。这可能是可行的,而不是编译最初的Pascal code到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.
这篇关于LaTeX的渲染.NET?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!