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.
- Grab the app from here: Mac, Win, Ubuntu
- Open your source PDF
- Hit Ctrl + ⌘ + M (Mac) or Ctrl + Alt + M (Win/ Linux)
- Select the formula you want to extract by drawing a bounding box over it
- Pick one of the suggested formats
- Paste it into where-ever
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
Advanced but low quality
A quick test how a low res equation scan works out (go to source for actual resolution).
Matrix stuff: detection ok, but Keynote bails
MathPix manages to detect this formula but Keynote gives an error when rendering it.
Too hard: big Matrix
Ok, this definitively seems to be too hard for the little app - MathPix bails.
A really neat tool that stays in my menubar for sure!
Share onTwitter Facebook Google+ LinkedIn
Leave a Comment
Your email address will not be published. Required fields are marked *