LaTeX renderer for .NET?(.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 渲染器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:.NET 的 LaTeX 渲染器?
基础教程推荐
- 我应该在后面的代码中直接使用 Linq To SQL 还是使 2022-01-01
- 如何使用 .Net 检查 Active Directory 服务器是否已启动并正在运行? 2022-01-01
- WPF 模态进度窗口 2022-01-01
- 当值可以是对象或空数组时反序列化 JSON 2022-01-01
- Moq It.Is<>不匹配 2022-01-01
- 禁止输入少量字符,例如'<'、'&a 2022-01-01
- 如果有人提交恶意软件Nuget包怎么办? 2022-01-01
- .NET SerialPort DataReceived 事件未触发 2022-01-01
- C# 从 List<List<int>> 中删除重 2022-01-01
- Azure Functions:CosmosDBTrigger 未在 Visual Studio 中触发 2022-01-01
