- Home /
Displaying Mathematical Equations
Is there a way to display mathematical equations in a manner in which we would naturally write them or see them displayed in books (fractions, radicals, integrals, etc...)?
I have the need to display physics equations along side regular text for an application I am developing. Readability is paramount. Writing equations in a single line of text with parenthesis, slashes, etc is not acceptable.
If necessary, I would be willing to display the equations as an image file, but would prefer a text or MathML-esque solution.
Thanks!
I wish I could mark both answers correct, because I think you both offered valid solutions.
Tinkering w/ Unicode typeset fonts work for the most basic mathematics notation...IF you can find a font that supports the characters and IF they'll actually render. There also seems to be an issue with font texture sizes, but I have not confirmed this issue.
I contacted Unity support about the time-cost benefit of writing a LaTeX parser for Unity. They seemed to believe that it was technically possible, but a huge undertaking.
Thanks for your input, both!
Guys did you find the solution to render $$anonymous$$ATH$$anonymous$$L in unity? For LaTex we have a plugin in asset store LIN$$anonymous$$. I want to render $$anonymous$$ath$$anonymous$$L in unity.
Answer by Fabio de Miranda · Feb 18, 2010 at 10:01 PM
Just my 2c:
There must be some reusable embeddable LaTeX or MathML rendering engine somewhere that you could use.
If Java was an option, I'd go with JEuclid http://jeuclid.sourceforge.net/ but since you need to integrate it with Unity, I'm not sure what to suggest.
Good luck
$$anonymous$$ath$$anonymous$$L is on the table with which I'll have to fiddle with later. I'm currently working on another problem, but just trying to research possible solutions to this one in the meantime.
Thanks for the input. I'll respond with the solution used when I take a closer look.
Answer by Eric5h5 · Feb 17, 2010 at 10:52 PM
Use a font with the appropriate symbols; probably you will have to fiddle with manually positioning overlapping labels to get the formatting to look right.
Your answer
Follow this Question
Related Questions
GUI Styles for iPhone/Android - font/button sizing? 3 Answers
Is there a way to measure the pixel with/height of a string with a given font? 2 Answers
Possible to change GUI.Label fontsize without using GUIStyle? 1 Answer
GUIBox fontSize without changing other labels? 3 Answers
Sometimes the GUI selectively doesn't render some letters 1 Answer