Ok, this is going to be a shorty. I recently needed some nice formulas from a scientific paper for a presentation and usually I try to just copy them from the source PDF since Keynote.app is pretty good at incorporating high-quality PDF snippets into a slide.

However, once you want to edit the formula (to match symbols or variable names) you have to tediously compose it by hand. For Keynote people like myself there is also the option since mid 2018 to just enter LaTeX or MathML code and have it render beautifully on the slides. For Word or Powerpoint folks adding formulas usually means using the clunky Microsoft Equation Editor. However, it seems Office 365 now supports to enter formulas using LaTeX syntax, too, but I’m still on Office 2016 here.

Anyways, depending on your LaTeX and math skills bigger or more fancy equations still require you to put quite some effort into composing the actual code that gives you the nice formula.

But fear not - with MathPix this workflow is amazingly simple (not endorsed by the developers, I just discovered their tool recently and love it). Their page probably says it best: “Take a screenshot of math and paste the LaTex into your editor, all with a single keyboard shortcut.” Nice! Oh, and it’s free!

The app used OCR to trace the equation and convert it into LaTeX formula syntax which you can paste into any editor or app that can deal with it. And that’s it really.

MathPix: Take a screenshot of math and paste the LaTeX into your editor, all with a single keyboard shortcut


  1. Grab the app from here: Mac, Win, Ubuntu
  2. Open your source PDF
  3. Hit Ctrl + ⌘ + M (Mac) or Ctrl + Alt + M (Win/ Linux)
  4. Select the formula you want to extract by drawing a bounding box over it
  5. Pick one of the suggested formats
  6. Paste it into where-ever
  7. Done

Some examples

Coming up some tests with various equations. The numbers indicate the source (1), the MathPix detection (2) and the final rendered equation in Keynote (3). The red marker indicates the equation used in the example.

Simple stuff: a sigmoid function

No problem at all (not shown).

More advanced: regularized loss function of a NN

Example Equation 2
An example from a scientific paper: a L1 loss function regularization (source: He & Yokoya (2018), ISPRS Int. J. Geo-Inf. 7, 389; doi:10.3390/ijgi7100389)

Advanced but low quality

A quick test how a low res equation scan works out (go to source for actual resolution).

Example Equation 3
Some random equation from the web from a low quality scan (source)

Matrix stuff: detection ok, but Keynote bails

MathPix manages to detect this formula but Keynote gives an error when rendering it.

Example Equation 4
A rotation matrix from wikipedia (source)

Too hard: big Matrix

Ok, this definitively seems to be too hard for the little app - MathPix bails.

Example Equation 5
Description of neural net weight (source)


A really neat tool that stays in my menubar for sure!

Leave a Comment

Your email address will not be published. Required fields are marked *