如何在 WPF 或 WinForms 中呈现公式 [英] How to render a formula in WPF or WinForms

查看:25
本文介绍了如何在 WPF 或 WinForms 中呈现公式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

2018 年更新 TL;DR;用于 WPF 的 LaTEXhttps://github.com/ForNeVeR/wpf-math

Update 2018 TL;DR; LaTEX for WPF https://github.com/ForNeVeR/wpf-math

原始问题我需要一种在 Windows 窗体或 WPF 中绘制数学公式的方法.一些FormulaTextBox"控件正是我所需要的.

Original question I need to have a way to draw a mathematical formula in Windows Forms or WPF. Some "FormulaTextBox" control would be exactly what I need.

我不是在问 LaTEX 的完整实现,而是至少在 RichTextBox 可能性之外的东西,包括分割线、平方根等.

I'm not asking about full implementation of LaTEX, but at least something beyond RichTextBox possibilities, with division lines, square roots, etc.

推荐答案

这是从多个在线网页中提取的选项列表,以及 很少 类似 问题关于SO

Here's a list of options, pulled from several webpages online, as well as a few similar questions on SO

  • WPF-Math,一个用于渲染数学相关 TeX 标记的 WPF 库.
  • gNumerator 是一个呈现 MathML.它是本机 C#,但看起来很旧.
  • Math Expressions,一种用于显示和编辑数学方程的商业 WinForms 控件.注意:不是免费的
  • 有一个 JMathTex 的非官方端口一个 C# WPF 控件
  • Windows 版本的 LaTex 编辑器 Lyx 使用名为 MikTex 你可以看看.我看到在某处提到 tex4ht 包将数学方程呈现为图像
  • MimeTex/MathTex,正如您已经提到的
  • 您也可以使用 WebBrowser 控件,并在本地包含 one of 许多 javascript 用于渲染 LaTex.
  • 您可以将工作转移到 Microsoft Word 上(示例 - 要求用户安装 MS Word!)
  • WPF-Math, a WPF library for rendering math-related TeX markup.
  • gNumerator is a WinForms control that renders MathML. It is native C#, but appears to be quite old.
  • Math Expressions, a commercial WinForms control for displaying and editing math equations. Note: Not free
  • There's an unofficial port of JMathTex to a C# WPF control
  • The Windows version of the LaTex editor Lyx uses a native library called MikTex you could take a look at. I saw mention somewhere that the tex4ht package renders math equations to images
  • MimeTex/MathTex, as you already mentioned
  • You could also use a WebBrowser control, and just locally include one of many javascript libraries for rendering LaTex.
  • You could pawn off the work onto Microsoft Word (Example - requires users to have MS Word installed!)

这篇关于如何在 WPF 或 WinForms 中呈现公式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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