Mathematical typesetting is actually incredibly complex, and people like Donald 
Knuth have dedicated significant portions of their careers to it. There's no 
simple way to go from a textual representation of a formula to a typeset 
version, not least of which because there's no universally agreed-upon textual 
representation or typeset version.

I'd also recommend using a web view to display an equation, along with one of 
the JavaScript TeX-to-HTML rendering packages. Stack Exchange uses one for 
their Mathematics Q&A site that seems to work pretty well. However, note that 
it's not instant.

  -- Chris

On Jul 2, 2012, at 8:55 AM, Jean Suisse <jean.li...@gmail.com> wrote:

> Dear all,
> 
> I was wondering if there is a way to get the "pretty formatted" version of an 
> equation (from an NSString) to display within a view (similar to the way 
> Graph.app displays it).
> The question is open, any means is acceptable (if not too far-fetched). 
> I know I can get a .png version using a call to a php script, but since MAC 
> OS already ships with softwares capable of doing it, maybe there is a more 
> elegant (and simple) way of implementing this feature.
> 
> Any idea ?
> 
> With my thanks,
> Jean
> 
> 
> 
> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/cocoa-dev/cmh%40me.com
> 
> This email sent to c...@me.com
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to