1

I am working on an app for iPhone and iPod Touch that has to show complex mathematical equations like algebraic, integration, summation formulas along with some text in UILabel.

I researched and found that Latex is the answer, is that correct? That means I have to work with so many images, created using LaTeX on Mac, on the device?

Aman
  • 105
  • 2
  • 10
  • possible duplicate of [Drawing formulas with Quartz 2d](http://stackoverflow.com/questions/2907045/drawing-formulas-with-quartz-2d) – Brad Larson Jan 04 '12 at 21:19
  • See also [Rendering mathematical formulas on an iDevice](http://stackoverflow.com/questions/4340478/rendering-mathematical-formulas-on-an-idevice) and [Rendering Math Formulas](http://stackoverflow.com/questions/4629833/rendering-math-formulas) – Brad Larson Jan 04 '12 at 21:24
  • Thanks for the links Brad - I read thru them. So that means the way to display math equations in iOS devices is using Graphics? Please correct me if my understanding is incorrect. – Aman Jan 05 '12 at 17:37
  • Typesetting of equations will require custom layout beyond what's provided in a standard UILabel. This could be done via direct Quartz drawing, Core Animation layer layout (as I do), or custom view layout. There's no stock way of doing this, short of using something like MathML in a web view. – Brad Larson Jan 05 '12 at 17:47
  • Ok. That clarifies a lot. So I think I would need to study more about Quartz right now. Thanks for giving me the correct direction Brad. – Aman Jan 05 '12 at 18:00
  • Hi, I have updated my post with the solution. Can anyone please validate. Thanks. – Aman Jan 10 '12 at 13:13

1 Answers1

1

You can’t. UILabel is unstyled text. It doesn’t display images or let you position individual elements.

David Dunham
  • 8,139
  • 3
  • 28
  • 41