.NET 的 LaTeX 渲染器?

LaTeX renderer for .NET?(.NET 的 LaTeX 渲染器?)
本文介绍了.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 渲染器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

c# Generic Setlt;Tgt; implementation to access objects by type(按类型访问对象的C#泛型集实现)
InvalidOperationException When using Context Injection in ASP.Net Core(在ASP.NET核心中使用上下文注入时发生InvalidOperationException)
quot;Overflowquot; compiler error with -9223372036854775808L(编译器错误-9223372036854775808L(Q;溢出Q))
Visual Studio 2010 ReportViewer Assembly References(Visual Studio 2010 ReportViewer程序集引用)
Weird behaviour when I open a reportviewer in WPF(在WPF中打开报表查看器时出现奇怪的行为)
how do i pass parameters to aspnet reportviewer(如何将参数传递给aspnet report查看器)