# Is there any way to get LaTeX in OneNote?

Any thoughts on how to get LaTeX in OneNote?

-
What is »OneNote«? – Thorsten Donig Mar 11 '11 at 9:12
@Thorsten: Microsoft OneNote, the note-taking application that is part of Microsoft Office. – Martin Tapankov Mar 11 '11 at 9:48
@Martin: Thanks for clarification. Should perhaps be mentioned in the question itself since not everybody is running a Wind0ws machine. – Thorsten Donig Mar 11 '11 at 10:42
OneNote – Seamus Mar 11 '11 at 11:00
What is »LaTeX«? – Philipp Mar 11 '11 at 13:26

[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.

1. Install the MathType Equation editor (Wikipedia description). It's commercial, but you can continue to use the evaluation version sans LaTeX editing and other goodies for free after the trial period is over.
2. 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 a 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.

sin(kx)|_0^2\pi


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.

-
Another nice thing about this setup is that you can copy the resulting typeset equations in OneNote and paste them directly into Microsoft Math and hit enter to solve. It is a nice quick way to check things when desired. – Joe Jun 6 '13 at 18:15
This is a great feature, horribly documented. The best documentation is this pdf (I also put the link in a separate answer): office.microsoft.com/en-us/word-help/redir/XT101864188.aspx – user21952-is-a-great-name Apr 14 '14 at 16:54
@Joe I did not understand this part: after first selecting the type tool and entering math mode via cmd-=. How do you enter those commands. When I enter them in onenote itself they won't change to LaTeX. – MOON May 19 at 10:56
@MOON, I haven't used this in a long time, but I just booted up OneNote 2013 and I had to select to insert an equation from the Insert menu. I haven't tried this again in OneNote 2010 recently. Hope this helps. – Joe May 19 at 15:58

Go here:

http://www.codecogs.com/latex/eqneditor.php

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):

 <Alt-=> [\matrix<space>(\doubleZ<space>&\scriptC<space>@\alpha_(0,1)<space>&1/(2\pi)<space>)<space>]<space>


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" (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.

-