Using LaTeXiT to display math formulas
TeX is a typesetting standard that, among other things, allows you to typeset complex math formulas. One flavor of Tex is LaTeX, for which LaTeXiT serves as a front-end for on Mac OS X. Using LaTeXiT, one can drag and drop complex math formulas to a number of apps -- Pages, Keynote and TextEdit, to name a few.
While the LaTeXiT workflow is fairly simple and straightforward, getting it setup and running may not prove to be the most clear-cut and easy process.
To get started, download the latest version of LaTeXiT (free download). However, because proper functionality requires several other components, they will need to be installed as well. These components are:
- pdfLaTeX
- ps2pdf
- Ghostscript
PdfLaTeX and ps2pdf are part of the BasicTeX package, while GhostScript is a separate installation package. Luckily, Richard Koch of the University of Oregon Mathematics Department has download links (free) to both packages readily available at his site. After installing the packages, you'll want to configure their paths within the composition pane within LaTeXiT's preferences. The following were the paths of my configuration files:
- pdfLaTeX: /usr/texbin/pdflatex
- Ghostscript: /usr/local/bin/gs-X11
- ps2pdf: /usr/local/texlive/2008basic/bin/universal-darwin/pst2pdf
The two most prominent palettes in LaTeXiT are the LaTeX palette and the viewer/editor palette. Clicking on a symbol, number, letter or notation within the LaTeX palette will result in the corresponding markup appearing within the editor pane of the viewer/editor palette. When the markup of your formula is complete, clicking on the "LaTeXiT" button on the bottom right will produce said formula in the viewer, which is drag-and-droppable across a variety of apps.

In my case, I'm dragging and dropping a formula into Mail.app.

But if you happen to know the markup by heart (for which SmileOnMyMac's TextExpander would be a great timesaver), you can type it within an app and convert it into a formula via OS X's system wide "Services." Here, I'm performing this function within Pages, but can perform it with other apps as well.

LaTeXiT's other features include support for OS X's Automator as well as a host of export formats, including pdf, eps, tiff, and jpg.
A number of other LaTeX front ends are available on the Mac as well -- such as TexShop and TextMate. However, as someone who wasn't too familiar with LaTeX and all of its underpinnings, I found that LaTeXiT provided an easy learning curve as well a good foundation from which I could build upon. After playing around with the markup and its structure, you get the hang of it pretty quick.
(Readers, what is your favorite LaTeX front end for the Mac? A mathematician or physicist I am not, so if you know of a more hassle free setup process for a LaTeX front end, give us your thoughts.)
Share
TeX is a typesetting standard that, among other things, allows you to typeset complex math formulas. One flavor of Tex is LaTeX, for which...
Add a Comment
CRASHING AFTER AUTOMATIC UPDATE - REEVALUATING SOFTWARE CHOICES
I was screwed for awhile when Word for Mac didn't come with the Equation Editor installed. I evaluated a few options:
-- LaTEXiT Looks the best, but source for formulae are not stored in the document with the formula making it a bit more cumbersome. After trying alternatives, I was going to switch to LaTEXiT but (maybe yesterday or so) it said it was updating itself, and crashed - and since then it crashes each time I start it. So it's back to MathType with regular backups and sort-of ugly formatting for some things (like their ugly tall flattened rounded braces for vectors and matrices)
-- OpenOffice, but my thesis will grow too long to work without an outline view. I have considered copying from there and pasting into Office, but that's no better than LaTEXiT. OpenOffice is also a bit slow at times. And I really didn't want to work in two different applications. I've already got to have FireFox/Zotero active and running etc. and it's not convenient to have too much stuff competing for real estate on my tiny notebook display.
-- MathType is what I settled on for its pseudo-endorsement by MS using it in Word2008. Result: Some formulae have been turned to graphics and become uneditable, some have become partial graphics that are panned half-way outside their clipping box, and some have disappeared entirely (I suspect they're just panned outside the view of the box, which you can't resize or it just stretches the visible portion)
I wish someone would read Design Patterns and use it to make an object oriented word WYSIWYG-like processor with equations, etc. that use a subset of the same tags that tex does for its main content, but performs hierarchical re-formatting on objects on an as-needed basis rather than compiling like Tex does.
I think Snow Leopard broke this nice Services feature, I had it hot-keyed in Leopard but after the upgrade it's nowhere to be found, Tried re-enabling in LaTeXiT prefs, to no avail. Anyone else had this issue?
September 02 2009 at 2:49 PM Report abuse Permalink rate up rate down ReplyLaTeXit is fantastic for use with Keynote, the ability to drag equations into and out of Keynote with LaTeXit is awesome. For full latex documents, I use TeXShop, which is nice. Occasionally vim.
My favorite moment with LaTeXit was on April 1. I had to check the source code (it's open source, yay) after seeing what happened. I won't spoil what it is, but that date is definitely hard coded into LaTeXit.
What are you on about here? I've tried typing that date in and typesetting it and nothing happened... Now you have my interest peaked about an Easter Egg that I can't even fathom how to reproduce due to the rather vague description.
September 02 2009 at 2:54 PM Report abuse Permalink rate up rate down ReplyTexShop, BibDesk, LaTeXiT are very useful for all your writing and PDF management. The fact that you can drag a formula from Latexit into another application and BACK into it is super useful if you need to tweak it further.
BibDesk is a great alternative to Yep and Papers because it stores all the aliases to your articles. Many new articles with proper DOIs within the PDF can be dragged into BibDesk and an entry with the alias will be created right away (this requires some tweaking though: http://sourceforge.net/apps/mediawiki/bibdesk/index.php?title=BibDesk_Applescripts). Skim notes can also be read by BibDesk, which is great when you need to review what the heck that article was about without rereading the whole thing.
TexShop (via MacTex) is awesome as it installs everything you need for you writing pleasure. I even make 1 page notes on it because it looks so nice :)
My favorite LaTeX front end is InDesign.
Oh, you didn't know? Shucks.
LaTeX does indeed have loooooooong legs!
My favorite front end for LaTeX is TexMaker; I think it is also most Mac-like. TexShop is also a fine front end.
I use LaTeXiT to generate formulas to include in eps graphics that I create with a combination of Mathematica and Illustrator. Works great!
The two best features of LaTeX are
1. It is absolutely free!
2. It never, and I mean never, crashes, freezes or causes any other problems on the Mac.
Randy Scott
Santiago Canyon College
Am I the only one that uses TextMate?
August 18 2009 at 2:30 PM Report abuse Permalink rate up rate down ReplyA nice feature of LaTeXiT is that it "round-trips". E.g., if you copied a LaTeXiT equation in Keynote and later review the Keynote document to change the equation, you can drag the equation back into LaTeXiT and it will reproduce the TeX source for the equation â it's then trivial to edit as needed.
I just use Grapher and copy and paste my equations into programs from there. It's simple and built right in to OS X!
August 18 2009 at 1:39 PM Report abuse Permalink rate up rate down ReplyI always use Emacs to edit my LaTeX code, as well as almost all other text stuff and programming.
August 18 2009 at 1:12 PM Report abuse Permalink rate up rate down ReplyHot Apps on TUAW
Deals of the Day
more deals- Refurb Apple MacBook Air Laptops: 12" 64GB SSD for $699 + free shipping
- JVC Motion Sensing Clock Radio with Dual iPod Docks for $55 + free shipping
- Apple iPhone Headset with Mic for $4 + $2 s&h
- miFrame Picture Frame Dock for iPad for $64 + $8 s&h
- Refurb Apple iPod nano 8GB MP3 Player for $99 + free shipping, 16GB for $119
- Hannspree Apple-Shaped 28" 1080p LCD HDTV for $270 + free shipping
Software Updates
more updates- EFI Firmware Update brings Lion Internet Recovery to 2010-model Macs
- OS X Lion 10.7.3 released with Safari 5.1.3, Wi-Fi bug fix
- Aperture updated to 3.2.2, addresses Photo Stream issue
- Apple updates Keynote to address Lion issues
- Google Search app gets new look on iPad
- Apple releases Apple TV Software Update 4.4.3



26 Comments