Any thoughts on how to get LaTeX in OneNote?
[Not quite the answer you are expecting]
No, there's no way to include LaTeX (and I assume you mean the mathematics typeset with it) in OneNote.
One workaround that is sort-of-kinda-working (with severe caveats), so go ahead, if you absolutely need to. This applies to OneNote 2007, so if you have more recent version, it could be somewhat different.
- Install the MathType Equation editor (Wikipedia description). It's commercial, but you can continue to use the evaluation version without LaTeX editing and other goodies for free after the trial period is over.
- Typeset your mathematics with it (with the registered version, it understands TeX mathmode), and drag-and-drop your equations to your OneNote notebooks.
Now, the caveats:
- Formulas are read-only and appear as images. You cannot edit them once they are in place. At least they scale properly.
- The expressions are not lined with the text, so if you want to include them in a free-running text, be prepared for a major pain.
That being said, if you'd like to have a note-taking application together with LaTeX mathematics, I suggest turning to a wiki software that supports advanced typeset mathematics. I personally use Confluence, but free alternatives are available (the example that first comes to mind is MediaWiki, which powers Wikipedia, and it has comprehensive LaTeX support).
You will need to set up and administer a web server (and most likely a database server as well) in order to use wiki software, but in the long term, and especially if you are serious about having a space to collect your stuff, this is the superior solution.
In OneNote 2010, at least (which is the only version I have), you can enter at least some LaTeX directly in math mode. I say at least some because I am discovering it by experimentation rather than reading about it in OneNote documentation (if any such documentation exists).
Here are a few examples (after first selecting the type tool and entering math mode via cmd-=):
\int_0^2\pi x cos(kx)dx
The trick with actually getting it to typeset is to hit the space bar at certain places. For instance, above, I'd hit the space bar after the
\pi a few times, each time you'll see your equation so far getting typeset incrementally, first the integral sign then the integration bounds.
There is a lot more to discover (and I am only showing a few things I have found, but I am very pleased with what I have found so far. Oh, one other item that is helpful is that you can get textbook style fraction formatting and paren or bracket resizing by hitting space after them.
then type your equation and hit the Enter key. Right click on the automatically generated image and copy it into my OneNote file.
To expand on Joe's answer, while there is no support for actual LaTeX, the LaTeX like language Joe describes is very powerful and convenient. It supports most things you'd want: matrices, subscripts, superscripts, blackboard bold, etc. The only thing I haven't been able to do are commutative diagrams with too many arrows.
Try typing this while editing text (what you'll see happening might feel confusing the first time):
It is pretty quick to learn, but does suffer from very obscure documentation and configuration. The best documentation I found is the pdf titled "Unicode Nearly Plain-Text Encoding of Mathematics" (formerly linked to from a somewhat helpful OneNote help page). The name Microsoft uses is "Math AutoCorrect", and the (limited) configuration is in Options -> Proofing -> AutoCorrect Options -> Math AutoCorrect tab.
Unfortunately, this type of equations is not at all supported by the online, Android or iOS OneNote.
OneNote seems to have evolved quite a bit since the question was asked. At least OneNote 2016 is somewhat capable of understanding LaTeX-like equations. It is nowhere near something like Texmaker, but its somewhere in between Microsoft Word's equation editor and Texmaker.
Click Insert->Equation or just use the shortcut (Alt+=) to type out an equation.
The somewhat new OneNote for Windows 10 (the OneNote app) has built-in LaTeX support. To use it, write your formula out, select it, and click on Maths in the Insert tab. OneNote will then convert the formula and you will also be able to directly edit the formula.
Technically, this feature is only available if you have an Office 365 subscription, but if you disconnect your PC from the internet and start OneNote in offline mode, you will have access to the Maths feature. You can then also reconnect your PC and it won't disappear unless you restart OneNote.
This feature can also solve an equation.
If you're looking for speed while typing up notes, the fastest I've found is the add-on OneNote Gem (Gem for OneNote 2016). It's paid, some $33 when I purchased a year or two back. Gem has other features but that's the only thing I bought it for.
As others have mentioned, you use Alt + to go into math mode, so I used an AutoHotkey snippet to make this shortcut the hamburger menu button on my keyboard:
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. ; onenote set appskey/hamburger button to alt= which opens equation editor for latex input AppsKey::!= return
Once you're at the grey box that indicates you're in the equation editor, use
\TeX followed by a space to go into Latex mode after you've got Gem installed. That makes the commands almost the same as your Latex ones, although I also sometimes still use Word's syntax for speed, e.g.
That gets me most of the way. The main thing I haven't figured out yet is cases with a piecewise function, because
\TeX mode breaks some things in Microsoft's native equation format.
Matrices are also a little different. I haven't gotten that to work with Word in Latex's usual commands, so I just use for instance
but most other things follow Latex syntax rather than Word syntax.
I haven't read all this page yet, but it seems that full LaTeX support is available in Word, PowerPoint and OneNote now: https://blogs.msdn.microsoft.com/murrays/2017/07/30/latex-math-in-office/