Hacker News new | ask | show | jobs
by black_knight 3889 days ago
I write my own research journal using pandoc[0] and a simple mkfile[1]. My requirements are a bit different from yours, though. I don't need embeded multimedia, but I rather use a lot of Unicode characters for mathematics.

Maybe you could use write markdown and convert to HTML5 using Pandoc? Your multimedia could be included with some embedded HTML. If you automate the compilation process suitably, you can have your journal open in your browser while writing in Vim, and see the result almost real-time.

[0] http://pandoc.org/

[1] http://doc.cat-v.org/plan_9/4th_edition/papers/mk

2 comments

There are some sweet extensions for Atom + pandoc, notably https://atom.io/packages/preview-inline and https://atom.io/packages/markdown-preview-plus (convert with pandoc, fast & smooth preview update via DOM diffing/patching). See https://discuss.atom.io/t/using-atom-for-academic-writing/19... for more goodies.

With non-Atom (e.g. Vim), https://github.com/yyjhao/markmon does fast DOM-diffing preview (I think it inspired markdown-preview-plus).

Different direction: instead of multimedia inside markdown, consider something that mixes markdown, multimedia and other fragments. I'm specifically thinking IPython or Sage notebook. Not sure it's a win in itself but there are many other benefits for research notes...

Finally, for those comfortable with latex writing, Overleaf in rich text mode is a quite good middle road — not markdown but less noise than raw latex: https://www.overleaf.com/blog/81-having-a-hard-time-convinci... (overleaf also has git access for offline)

For math in markdown, https://github.com/cben/mathdown/wiki/math-in-markdown lists all tools I'm aware off.

---

> I don't need embedded multimedia, but I rather use a lot of Unicode characters for mathematics.

Do you mean you use unicode as poor man's math support, or that you do render via pandoc/mathjax/etc but prefer to have $β^2$ rather than $\beta^2$ in the source? I'm curious, does in-place whole-formula rendering solve your need or do you actually care about unicode symbols in source?

And how would you ideally want to type them? "\be" offering autocompletion to β? http://kasperpeulen.github.io/PressAndHold/ ?

Yeah, I had something like that in mind. I even thought using latex (with Texmaker) but haven't quite managed to pull all the pieces together yet.
Pandoc can include LaTeX math, and render it in HTML in a few different ways.