开发者

A good way to add mathematic formulas in XAML?

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


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:

<Grid>
    <my:YourLaTeXControl>LaTeX code</my:YourLaTeXControl>
</Grid>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜