在WPF应用程序中使用LaTeX显示方程式。 [英] Displaying an equation using LaTeX in a WPF application.

查看:123
本文介绍了在WPF应用程序中使用LaTeX显示方程式。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在尝试开发一个科学计算器,我已经达到了用户输入的任何方程转换为LaTeX的程度,我只需要一个控件来查看方程式。控件还必须能够实时运行以补偿闪烁的光标。

我试图寻找.dll能够做到这一点但我没有遇到太多的C#。我遇到的是一个非常过时的.dll,它不再有效。 (使您的用户能够在您的网络中编写数学方程式桌面应用 [ ^ ]

有没有人知道解决此问题的简单方法? - 无需将其与Web应用程序链接,因为应用程序应在脱机时工作。

I am currently trying to develop a scientific calculator, and I have got to the point where any equations typed in by the user are transformed into LaTeX, I just need a control to view the equation. The control must also be able to function in real time to compensate for a blinking cursor.
I have tried to look for a .dll to be able to do this but I haven't come across much for C#. What I have come across is a highly outdated .dll which no longer works. (Enable Your Users to Write Math Equations in Your Web and Desktop Apps[^]
Does anyone know of an easy way to get around this problem? - without linking it with a web application, since the application should work when offline.

推荐答案

基本上,您需要从头开始创建LaTex WPF组件,但请查看此CodeProject文章: WPF TikZ编辑(TikzEdt) [ ^ ]。

即使这是编辑器,但是你渲染LaTex的问题可以视为一个子问题本文解决了一个问题。



也许你可以找到别的东西: http:/ /bit.ly/1yVQy4u [ ^ ]。



-SA
Basically, you would need to create a LaTex WPF component from scratch, but please look at this CodeProject article: A WPF TikZ Editor (TikzEdt)[^].
Even though this is the editor, but your problem of rendering LaTex can be considered as a sub-problem of a problem solved in this article.

Maybe you can find something else: http://bit.ly/1yVQy4u[^].

—SA


我怀疑你会发现类似的东西。您将需要使用外部工具或服务。看看这里发布的建议:如何将乳胶转换为图片 [ ^ ]



我的建议是使用这个 http://latex2mathml.codeplex.com / [ ^ ]生成mathml。比使用这样的东西( https://github.com/jogibear9988/CodeReason.Reports/ tree / master / CodeReason.Reports.Math [ ^ ])渲染它。
I doubt you will find something like that. You will need to use external tools or services. Take a look at the suggestions posted here: how to convert latex to picture[^]

My suggestion is to use this one http://latex2mathml.codeplex.com/[^] to generate mathml. Than use something like this (https://github.com/jogibear9988/CodeReason.Reports/tree/master/CodeReason.Reports.Math[^]) to render it.


这篇关于在WPF应用程序中使用LaTeX显示方程式。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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