在 XAML 中添加数学公式的好方法?
我正在与我合作的公司创建一个应用程序,现在我正在使用“数学教程程序”。简而言之,我需要使用数学教程创建 Silverlight 应用程序(动画)。
为了解决这个问题,我需要能够创建公式。我需要平方根、分数等等!
我一直在谷歌上搜索,找到了很多解决方案。但许多似乎非常糟糕且效率低下。
我希望我可以有一些标签,例如:
、
。
或者甚至:
<MathematicalObject>Latex syntax</MathematicalObject>
问题是我需要很多它们,并且在魔法后面插入随机图像或代码,确实会带来问题。
所以:我问各位聪明人:
在 XAML / Silverlight 中添加数学公式的最佳和最有效的方法是什么?如果它真的很简单(甚至可能是免费的?),那就太好了!
谢谢
I am creating an application at a company I am working with, and right now I an working with a "Mathematical tutorial program". In short, I need to create Silverlight applications (animations) with mathematic tutorials.
To solve this, I need to be able to create formulas. I need square root, fractions and alike!
I have been searching at Google and I have found loads of solutions.. But many seems really bad and inefficient.
I would prefer if I could have some tags like:
<SquareRoot>9</SquareRoot>
, <Fraction><Fraction.Upper>31</Fraction.Upper> ... </Fraction>
.
Or even:
<MathematicalObject>Latex syntax</MathematicalObject>
Problem is I need to have them a lot, and inserting random images or code behind magic, would really give problems.
So: I am asking you clever people:
What is the best and most efficient way to add mathematical formulas in XAML / Silverlight? If it could be really simple (and maybe even free?), it would be very nice!
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
一般方法如下:
创建您自己的控件。该控件的内容将被解释为 LaTeX 代码并转换为正在显示的图像。你可以这样使用它:
A general approach would be the following:
Create your own control. The content of that control will be interpreted as LaTeX code and converted into an image that is being displayed. You can use it like this: