Live data from Hacker News

Convert hand drawn equations to LaTeX

webdemo.myscript.com

21–30 of 46 posts

Re: Convert hand drawn equations to LaTeX

#21
It works quite well, but I wish there was a way to make small corrections (e.g. erase parts of my input).

The app keeps mistaking my handwritten "n" for "h", and my "k" for various obscure things like "|x:", and it's a bit of a pain to make small adjustments after most of the equation has been written: https://i.imgur.com/KneVGIU.png

Re: Convert hand drawn equations to LaTeX

#22

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…

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.

Re: Convert hand drawn equations to LaTeX

#23

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…

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.

Re: Convert hand drawn equations to LaTeX

#24
post #10

Very neat. One problem is immediate: when I handwrite an "x" for maths, it is as two 'c's touching back-to-back, so as not to confuse with some multiplication/cross-product symbol; such input proves very confusing to this code.

I usually use an italicized x for math variables, a dot for multiplication when not implicit in the formatting of the expression, and an uppercase X for cross product.

Re: Convert hand drawn equations to LaTeX

#25

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…

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)

Re: Convert hand drawn equations to LaTeX

#26
post #6

LaTeX is super cool for mathematics and academic papers. For my book though I had to migrate off to InDesign because it was just much easier/quicker to get it to do what I wanted.

I used LaTeX a few times in anger while at the university.

Afterwards in the outside world, Office became the rule as I never needed to type mathematics again.

When we did a technical documentation project, DITA and Docbook were used instead, with WYSISWYG editors like oXygen.

Re: Convert hand drawn equations to LaTeX

#27

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…

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.

Re: Convert hand drawn equations to LaTeX

#28
post #25

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…

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

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.

Re: Convert hand drawn equations to LaTeX

#29

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…

LyX is a LaTeX editor which has a very good visual math entry panel.

Re: Convert hand drawn equations to LaTeX

#30
post #21

It works quite well, but I wish there was a way to make small corrections (e.g. erase parts of my input). The app keeps mistaking my handwritten "n" for "h", and my "k" for various obscure things like "|x:", and it's a bit of a pain to make small adjustments after most of the equation has been written: https://i.imgur.com/KneVGIU.png

it's n * (n + 1) / 2 :)
Post reply on HN