LaTeX in Prezi (Update)

It has been a few years since my initial post about LaTeX in prezi. In that time, the Prezi interface has been updated quite a bit. I did want to let everyone know that the hack I have been using still works, even though things look quite different. To clarify, there is a great Latex-to-image generator available that enables this hack. Specifically, type your latex code after the “?” character in the following URL and you will get an SWF image containing the rendered latex:

http://latex.codecogs.com/swf.latex?1+sin(x)

The way to use this in Prezi is to paste the URL into an image search. It seems like this wouldn’t work because the image sounds like a search box… but don’t worry, it will.

First, select Insert Image…

Screen Shot 2013-04-08 at 6.12.50 PM

Then type in your URL:

Screen Shot 2013-04-08 at 6.14.13 PMAnd it will return with the rendered LaTeX:

Screen Shot 2013-04-08 at 6.14.28 PMIt really is that easy. Of course, if you don’t know LaTeX very well, there is always the CodeCogs online equation editor. And for the record, this whole thing is powered by Code Cogs, so if you use it, please consider making at least a small donation.

 

 

LaTeX in Prezi

I’ve become a regular Prezi user in the past year, but one thing was holding me back: LaTeX math had to come in via file upload… until now.

The codecogs equation editor has an HTML integration scheme that will let you import a SWF image by entering LaTeX code directly in the URL. If you like this, please donate to CodeCogs… in a few minutes you’ll see why you owe them for this hack and not me.

The URL scheme is described at the HTML integration page. In particular, something of the form:

http://latex.codecogs.com/gif.latex?1+sin(x)

will generate a gif image of 1+sin(x) in nice LaTeX. Replace gif with swf and you have an swf (flash) file that is ideal for importing to Prezi. For the import process, start editing a prezi and go ahead to the dialog for importing an image. In the image dialog, past the codecogs URL into the field as shown below, and hit enter (be sure to use the swf version of the URL). Prezi recognizes the file as an SWF and goes about importing it as expected.

For the example, I use the URL:

http://latex.codecogs.com/swf.latex?1+sin(x)
Latex into Prezi via codecogs

Paste the codecogs URL into the image URL field in Prezi

Prezi works its magic...

There will be a short bubble notice that Prezi is thinking… but don’t worry, it will do what you want it to.

Next you will see the glorious LaTeX result added to your Prezi in SWF format with all the speed and scalability of flash (the native Prezi format).

Please keep in mind that it is the awesome work of CodeCogs that makes this hack work… and they ask for nothing in return. Do the right thing and support them with a small donation.

Viola, LaTeX in Prezi... with full SWF scalability!

I can also suggest that spacing can be added either with LaTeX space commands (\, \quad, etc.) or a single space can be URL-ized with %20. The url with a literal space will not be processed correctly (at least it wasn’t when I tried it).

As always, your mileage may vary, but let me know if it helps.