title: Mathematica-like (LaTeX) typesetting for own CAS application
body: <p>As I am using Mathematica a lot I got the idea to write a small and free CAS which just exposes a very small subset of necessary functions and packages to be used and I want to present the results in an appropriate way to the user like Mathematica does (ignore the Facebook logo in the background :D ):</p>
  
  <p><img src="https://i.stack.imgur.com/qYUjf.png" alt="Mathematica&#39;s Output"></p>
  
  <p>My first idea was to create LaTeX code in the background and to <code>pdflatex</code> the source and include the PDF then in the view... however this seems way to much overkill! I want to write this CAS either in C++ or C# and I want to know if there are any recommended solutions to output nice formula like that.</p>
  
  <p>My first thought was a "real-time formula editing view" but it would be ok to have an input box to enter the commands and formulas and the upper view just to be uneditable output.</p>