2

I'm coding a UI in C# for a particular discrete math problem (not important what) and I'd like to be able to output a proper fraction, and letters with subscripts (and superscripts) to a label. For example:

(a_1 x a_2 x ... x a_n)^6
_________________________
            n

But nicely, and with actual super and subscripts. I'm familiar with LaTeX.

Any ideas?

John Saunders
  • 160,644
  • 26
  • 247
  • 397
Maria
  • 565
  • 6
  • 20
  • I have edited your title. Please see, "[Should questions include “tags” in their titles?](http://meta.stackexchange.com/questions/19190/)", where the consensus is "no, they should not". – John Saunders Apr 02 '14 at 04:59
  • you can use this one http://www.forkosh.com/mimetex.html – Jorge Y. C. Rodriguez Apr 02 '14 at 04:59
  • I this you are looking for this questions. [Go to this link and check here you will find your answer hopefully.][1] [1]: http://stackoverflow.com/questions/15042334/how-to-add-superscript-power-operators-in-c-sharp-winforms –  Apr 02 '14 at 05:02
  • @Mansh Thanks, this helps for superscripting. Any ideas on the fractions? – Maria Apr 02 '14 at 05:04

3 Answers3

0

You can also try using RichTextBoxcontrol. Check the SelectionCharOffset property to make the selection subscript and superscript. You can also use this property to position fractions.

NeverHopeless
  • 11,077
  • 4
  • 35
  • 56
0

Ok Well you can go to their and check.

Goto this URL which explain to you about fraction

  • Yeah I saw that but I didn't find the answer particularly helpful. After following your link, I did some more research and am currently testing a solution. If it works I will post back with what I did. – Maria Apr 02 '14 at 05:31
0

Ok, So you can also try this Fraction example i think this will working example