As of summer 2018, Keynote supports mathematical typesetting natively — you can choose between LaTeX
or MathML
code to enter equations. To find out exactly what subsets of these languages are supported, consult the Apple support pages.
Most of the info below is still valid, but if your presentations only require a few equations then this new built-in functionality may be "good enough" for you!
For more than a decade, the main equation-editing tool for Keynote has been LaTeXit, and I would still recomment it to anyone who wants advanced functionality such as a formula library, easy control over fonts and dimensions, and the ability to copy/paste equations in numerous different formats (one of which I contributed to, as you can see in the LaTeXiT help document). I personally use it, although this page goes through various other (potentially simpler) alternatives before discussing LaTeXit (because it requires a complete TeX
installation, which is overkill for casual users).
Native equation functionality in Keynote (and Pages) at long last gives us formula support without having to install any other software — in particular, there's no need for an external TeX
distribution. This also means that LaTeX
and MathML
typesetting are immediately available on the iPad and even iPhone platforms, as well (no more detour via cloud-based services needed).
You can easily make the round-trip from LaTeX
source to PDF
image back to source code in Keynote, by simply double-clicking any formula that was created with the built-in editor. In LaTeXit, there is a similar workflow: just copy the PDF
back and forth between the two applications.
The ouput of the native equation editor is a PDF
image of the typeset formula using the STIX fonts. The overall color and font size of the output can be manipulated via Keynote's Style
panel, but the font is not under the user's control. The overall color setting can be overridden with LaTeX
commands such as \color{DarkOrchid}
, and the formula size can also be fine-tuned by resizing the output like any other image.
As with the other PDF
-based solutions below, the equation is embedded in Keynote as an image and not as part of the text. This has the drawback that equations don't flow with the text, and can't reposition themselves autmatically if you rearrange the text boxes on the slide.
Keynote works nicely with PDF
, but has no math support beyond the ability to embed formulas as PDF
images. What this means in practice is that you
can get beautiful math display in Keynote, but unfortunately
it's not as easy as it should be for day-to-day use in science and
education. Because of this, I'm starting a separate page on a
different approach that I believe will very soon rival products such
as Keynote (and even PDF) as the medium of choice for equation-rich presentations: web-standards based slides.
Mathematics is commonly typeset using LaTeX, but (La)TeX doesn't come pre-installed with Mac OS X. Since the typesetting requirements for a computer presentation are different from those of a scientific paper, some of the suggestions on this page are also intended for people who don't want to install TeX. However, when I think about math content, I usually think about it as originating from some LaTeX process.
The good thing is that under Mac OS X Aqua, many applications can be made to support LaTeX indirectly via the PDF format. If you don't want to install LaTeX, you may find it easier to use dedicated equation editors. Here are some choices:
LaTeX
.
Grapher
in /Applications/Utilities/
. It's free and can be used as an input device for math formulas, as this screenshot shows: Another alternative is Mathematica as a typesetting tool. One advantage of Mathematica is that the structure of its expressions is more semantically organized than in LaTeX, so that export to other formats (such as MathML) is more straightforward. On this page, I will focus on LaTeX because if you only want to learn one input method, LaTeX is the one that will be most useful in general. If you want to be "multilingual" and don't mind using a commercial product, I'd strongly recommend taking a look at Mathematica's capablilites. Some hints on how to get formulas and graphics from Mathematica into other programs is found on a separate page.
Now back to the main topic: LaTeX in presentations. If you don't know LaTeX but want to know more about it, you may want to look at my LaTeX page first.
At the bottom of this page I'll refer to some nice free tools that rely essentially on LaTeX and PDF alone to create presentations. This is OK for many occasions, and it's commendable to go with open-source software all the way. And for a LaTeX writer like me, that's still the fastest way to make a no-frills presentation. But in the end you'll probably have more fun if you give in to the temptations of commercial software. In fact, the open-source route can drive you to despair if your next presentation is your thesis defense and you can't get that Quicktime movie to work on the punchline slide (it's all doable, but with a bit more work, as I describe here).
The beauty of Mac OS X is that PDF is the native format in which things are displayed. This is also true for the commercial program I'm talking about here: Apple's Keynote. The most recent version as of this writing is 8.1
.
You get it as part of the iWork bundle which includes Pages, a nice word processor and layout application for non-science writing; for additional comments see the Pages pages.
Back to Keynote:
I've had some people ask me question about Keynote's features as compared to other presentation software, e.g. Powerpoint. This is not the kind of question I'm focusing on here, though. I'm pushing Keynote here for a very particular type of use, but don't want to tell anyone what to buy, in particular if their intended usage is very different from mine: in short, Keynote functions as a media integration platform, allowing you to put materials produced in various other applications into one package for full-screen presentations, possibly with some nice transition effects added.
To what extent you find Keynote useful or wanting depends on how much you rely on Keynote for actual content production. My general advice would be that content is best produced with other dedicated applications such as Mathematica, a LaTeX system, a graphics program etc. This is the way I use Keynote, and this page is about one aspect of this work flow: the use of LaTeX typesetting with Keynote.
Putting LaTeX into Keyote is a piece of cake. Three different scenarios occur quite frequently:
In Powerpoint and Keynote alike, one can always achieve these tasks by going through the first case: create a PDF file, display it in Acrobat Reader (now Adobe Reader), and copy selected parts as bitmaps to paste into the presentation software. To prevent the result from looking grainy, one should first zoom in in the PDF viewer before selecting and copying the desired part (using the graphics copy tool). In the presentation software, you then scale down the pasted image. This creates bitmaps with acceptable resolution but large file size.
In Keynote, you can do much better than this. How much better, may depend on your OS version (Jaguar versus Panther). Let's go through the above cases:
Services
menu.
Edit
menu, whenever you highlight an equation that has been dragged into Keynote from LaTeXiT. If this doesn't show up, make sure you log out and back in again. By using this function from within Keynote, you recover the LaTeX source code for an existing PDF equation in LaTeXit
; the modfied PDF will automatically replace the old version on the Keynote slide.
Warning:
The linkback plugin may cause problems, and a fix is described below.
Best solution:
For most purposes, LinkBack no longer offers any advantages with Keynote, because LaTeXiT as of version 1.15.0 has the ability to recover the original LaTeX source from a PDF that you paste into it. I.e., you can do the following:
In conclusion, Apple's Keynote 4 (or 3) comes close to realizing a free-form layout and presentation system in which LaTeX can be integrated almost seamlessly via tools like LaTeXiT. The main gap between the LaTeX and iWork worlds is that styles of the parent document (such as font size) are not inherited by the embedded LaTeX object, so one has to specify them separately on the LaTeX side (which is easy enough to do in the two utilities I mentioned). The LaTeXiT application actually does the best job so far of bridging this gap - at least for Pages, but not yet for Keynote. This is of course a limitation of Keynote, not of LaTeXiT. More on this in the following section.
Keynote is a commercial product, and you may or may not feel that you get your money's worth. Keynote essentially serves as a canvas on which many different media styles (text, math, images and movies) can be integrated and presented, as well as exports in various useful formats (e.g., as movies, PDFs or HTML). The added value provided by these programs lies partly in their professional layout and design templates, but that may not be so important to everyone.
However, there are some drawbacks of Keynote. In general, one gets the feeling that Apple is continuing the philosophy of the one-button mouse (adored by some, despised by many) by making the user interface of Keynote really simple-looking. This simplicity sometimes comes at a price when you want to do more complex tasks. Below are some issues that I came across.
Edit
menu) or consult the Character Palette after enabling the International
menu bar item.
Arial Unicode
as the text font (if you have it), or stick with something standard like Helvetica
.
The Linkback Plugin I downloaded from the official web site caused a severe problem with the positioning of grouped objects in Keynote, which showed up only after re-opening a saved presentation.
Solution:
This may have been fixed by the time you read this, but if it isn't, there are instructions for how to fix the problem in this email discussion thread. The culprit is inside the Keynote application bundle, at Keynote.app/Contents/Resources/Animations/K2LinkBackSupport.sfxplugin/Contents/MacOS/K2LinkBackSupport
. You should replace this file by a new version which I've archived here. Make sure to download the correct one for your specific processor architecture:
SPACE
bar! You suddenly get a "focus-follows-mouse" behavior that highlights any windows or icons you hover over. A mouse click then captures exactly the highlighted object, preserving its dimensions and even its opacity.
PNG
is the factory setting), you can do PDF screenshots on a case-by-case basis from the Terminal: type screencapture -i -c -t PDF
after making sure that the screen area to be captured isn't obscured by the Terminal window. This will launch the screen-capture crosshairs which you drag over the desired rectangle to be copied. The PDF screenshot will be on the Clipboard and can be pasted to Keynote, Preview, GraphicConverter etc.
defaults write com.apple.screencapture type pdf
. This can be undone by typing defaults write com.apple.screencapture type png
. Other permitted graphics formats are JPG
and TIF
.
It should be kept in mind that comparisons with Powerpoint (or even OpenOffice) are not really fair because Keynote relies fundamentally on scalable objects both for its fonts and graphics, and if you have worked with vector graphics you know that they are generally a bit harder to manipulate than bitmaps. But this fundamental difference is precisely what makes Keynote superior in the final analysis.
Of course I've used other software, and the Keynote solution put forward here is perhaps not to everyone's taste. I've made heavy use of Powerpoint, and played around with OpenOffice/NeoOfficeJ. But I can never get used to their equation editors.
There is one important reason why one may not want to use Keynote: the technological infrastructure at conferences and meetings is typically centered around Powerpoint and PDF. At some conferences the organizers, in an honest attempt to reduce technical delays during presentations, require you to upload your talks onto some Windows machine prior to the session. This usually means you need to convert from Keynote either to Powerpoint or PDF.
Keynote does not keep animations in the PDF it exports (although this is technically possible). So only Powerpoint remains. But if you've ever tried to transfer a presentation from Mac Powerpoint to PC Powerpoint, you know you can't trust the results unless you double-check every slide on a PC. Now add the extra step of starting from Keynote instead of Mac Powerpoint, and it's clear that there's reason to be worried.
Before giving up on Keynote because of the above problems, it may be worth mentioning one other export format that could be the ultimate solution: Interactive Quicktime Movie. Although Quicktime is not guaranteed to be installed on all Windows machines, it is certainly available. Before exporting a presentation in this format, make sure that you set a slide size of at least 1024×768 in the Document Inspector menu of your Keynote presentation. Exporting as an "Interactive Slide Show" in "Full Quality, Large" format yields a Quicktime movie that can be opened in any Quicktime-enabled movie player. If that player has a full-screen mode, the result looks almost exactly like the original Keynote presentation, except that everything (including fonts) is now in bitmap format. In other words, you have reduced the visual quality of your presentation to Powerpoint level...
Exporting as SWF
(Flash) is also an option, but with a big presentation I ended up getting an error message asking me to remove some transition effects because the file became too complex. Quicktime didn't encounter this problem.
Another approach that is gaining momentum is through web-based technologies. Although this poses some security risks, one can make complete office applications by using either the built-in file handling capabilities of advanced web browsers, or by launching Java applets (e.g.) from within a browser. These applications can load and run very smoothly because the computational load is shared between the client (where the user interface runs) and the server. To see a model like this in action, check out Google's new presentation application. In combination with a LaTeX-to-image converter, this allows you to make presentations that are almost indistinguishable from Powerpoint.
Here is a possible workflow:
So the current state of existing online tools allows an almost seamless integration of math into presentations, without installing (and paying for) a single piece of extra software.
If you don't want to stoop this low, a viable alternative is to do presentations purely in PDF using the full screen mode of Adobe Reader. This allows many transition effects and even animations, all built from a LaTeX source. If you consider Keynote to be mainly a media integration platform, then any PDF-based substitute has to address multimedia content. This is the topic of my page on LaTeX-generated PDF with movies.
A somewhat separate issue is the formatting and book-keeping that is specific to computer-presentations: e.g., the incremental building of pages, item-lists or formulas. Here are some links to packages that deal with these tasks: