Hacker News new | ask | show | jobs
by haberman 3811 days ago
On a somewhat related note, does anyone have any particularly nice ways of writing math-related notes?

Part of me wants to just hand-write them and then maybe scan them, but that's not searchable/indexable, and doesn't lend itself well to version control.

Writing in TeX or LaTeX would make them searchable/indexable, but this seems a little heavyweight for just notes (like answers to exercises). I don't use TeX/LaTeX that often, so I feel like I'd be spending half of my mental energy figuring out how to format things, figuring out how to invoke the tools, what packages to install, etc.

Are there any nice solutions out there for this sort of thing?

11 comments

Here's a video [1] by a math grad student showing how he uses a Surface Pro with OneNote for his math note taking, annotating papers, and stuff like that.

It can search in handwritten notes, and can convert them to text (including converting handwritten math).

I don't do enough math writing or note taking to justify the cost of a Surface Pro, so don't personally know if it really works as well as it appears to in the video.

[1] https://www.youtube.com/watch?v=C7OROShRVzQ

When I was an undergrad, I would take hand written notes in class, which helped the material sink in better I think. Then I would go home and write the notes up neatly using LyX. This re-enforced the material and let me worry about presentation in the second stage, so I could just worry about getting it on paper in the first stage. It also made me very fluid at writing mathematics in LyX, which has a strong advantage over latex in my opinion in that you can actually see what you are writing out.
Don't kill me, but I actually took notes during math lectures using Word [1]. Since 2007 it has math support which you can either enter from the ribbon with lots of clicks (not recommended) or by typing something that for the most part resembles math in TeX, except that you use parentheses instead of curly braces and there are some smarts built-in that make typing much easier, simply because you're typing less, e.g. x^2y is equivalent to x^{2y} and a/b is equivalent to \frac{a}{b}.

Symbols are for the most part the same as in TeX, e.g. \alpha, etc.

The nicest thing of all that for interactive note-taking (at least for me) is that you see what you're entering. While you're typing you always get to see how it looks. This avoided (again, for me) many situations where I'd leave syntax errors in an equation just to get home and not remember where I'd forgot a closing brace.

The worst thing to enter via the plain-text format are large matrices, though that's no different from TeX, IMHO. In this case using the GUI facilities to enter them can actually be faster.

A (preliminary) description of the format they use can be found in Unicode Technical Note #28 [2], although that's not in all cases still the current implementation.

Fun thing is, there is even a Math Input Panel in Windows which does pretty much the same as that web app: Convert hand-written math into MathML. You can then insert it into various applications (Word works fine, Mathematica too, I think – I guess anything that can handle Presentation MathML on paste or drag/drop). [3]

[1] Sample: http://hypftier.de/files/uni/04/math/Vorlesungsmitschriften....

[2] http://unicode.org/notes/tn28/

[3] Excuse my horrible writing, but I have no pen on this machine: http://hypftier.de/temp/2016-01-13_080128.jpg – Clicking "Insert" while Word is focused, will then yield this: http://hypftier.de/temp/2016-01-13_080219.jpg (it even used the correct d (\dd) which has a small gap in the front and, depending on the font, can be upright)

Again, insert enthusiastic Pandoc evangelism. I write first drafts of technical reports (for work) in Markdown + LaTeX equations (and you already know most of it, it seems) and then render to Word; in parallel, I write LaTeX from classes in the very same way.

Hopefully my research will converge with work duties at some point and I'll be writing a single alpha source for the very technical stuff.

One disadvantage of Word is that future versions may change the math formatting and kill your notes. I have old powerpoint slides that are effectively unusable, for example.
Well, I use (Lua)LaTeX for exactly that kind of thing (for the notes I want to be searchable and archived in a repo; for other stuff just writing by hand on paper is usually the best solution, because I don't actually need that much notes to be stored as nifty .tex / .pdf files -- and for less math-heavy stuff, .md / pandoc toolchain is often enough).

To make LaTeX writing a bit less 'heavyweight', I maintain a .sty file for packages I use often + a template where I can just start writing + vim setup for editing the files + compile with latexmk.

When it comes to syntax and stuff like that, after writing my math B.Sc. thesis and who-knows-how-many homework reports with more or less same combo of packages and tools, I already know it and learning to use LaTeX no longer feels like an obstacle (..it's a cost I've already paid).

Whether a similar solution would be worth the effort for you depends on how much things LaTeX is good at you anticipate writing in the future. Academic papers, homework, stuff like that? Yes, it might be useful. Some random notes? Maybe not.

Quip: I type notes in a Quip document on my laptop and also open the same document on my Android phone. Quip syncs the notes automatically. When I want to note down a math equation, I write it on a piece of paper, take a photo and append it to the Quip doc using the app.

Later, I export the Quip doc to Markdown and make it searchable by adding it to Algolia.

Part of me wants to just hand-write them and then maybe scan them, but that's not searchable/indexable, and doesn't lend itself well to version control.

I'll comment as someone who does hand-write and scan my notes. I date and number every page, then put a pile through a sheet-feeding scanner every so often. Sometimes I put date and page numbers in my code comments, so I can find my notes on where the code came from. I also enter a line of text (or more if necessary) about each scanned page so I can search that. Something I do in a brain-dead moment every month or two. It can be interesting to look back through the notes and see if I've forgotten about anything interesting.

Often I'll write out the math for something multiple times before I really understand it, and using a pen works much better for me. Only a small fraction of what I write out is worth TeXing up.

I handwrite them then type them.

Use Pandoc; it basically abstracts all of the pain of LaTeX and allows you to write Markdown with equations. Writing macros is also useful to save typing cramps and clarify meaning -- a typical example is

    \newcommand{\implies}{\Rightarrow}
Pandoc if you like markdown -- it allows LaTeX math and equations. Emacs org mode if you like emacs and not markdown.

Lately I've just found it easiest to use a text editor that has good keyboard support for entering unicode and just type everything in plain text. Vim's digraphs or Emacs's TeX input method are what I have in mind. It works fine for most personal notes (with a few unevaluated LaTeX macros on occasion) and it's not hard to go back later and convert it into a pandoc markdown document for nicer formatting.

Yep. For notes there is little justification for the full complexity of LaTeX, the most one needs is islands of LaTeX math. And you don't even need TeX installed — html with mathjax/katex is more flexible most of the time (but Pandoc will easily convert to latex/beamer when you need them).

I'm cataloguing math support in markdown tools at https://github.com/cben/mathdown/wiki/math-in-markdown (help welcome). If you don't know where to start, the first to check out are probably StackEdit, Atom + https://discuss.atom.io/t/using-atom-for-academic-writing/19....

I have a theory that a single pane styled in-place is nicer for quick writing than 2 source+preview pane. Typora, Texts.io, and my own https://mathdown.net do that.

If you do want full latex, try Overleaf.com, which has "rich text" mode where many constructs (sections, lists, math) are styled in-place (you could even hide the PDF pane).

I'm developing Writelive

(sample)

http://write-live.com/d/2aa4a21f-7bb0-4e02-929f-484dc8b7af10

(also check my other comment)

LyX is a LaTeX editor which has a very good visual math entry panel.
Libreoffice formula format is simple