Markdown and LaTeX Editor
tex.s2cms.ru
tex.s2cms.ru
Or for a longer list/discussion: https://hackpad.com/New-scientific-markup-language-utAjFcYuv... (it includes https://stackedit.io/).
```{r}
a = 3
b = 6
c = a / b
```
Did you know that $\frac{`r a`}{`r b`} = `r c`$?
http://i.imgur.com/IpiqDEx.pngThe best part is that you do these kind of:
#+begin_src <lang> <options>
some code
#+end_src
Such that you can cross between R, python, C, whatever you want, and end up with a cohesive, executable document.A python like mathematica clone.
I use Softcover to write and maintain both the code-heavy Ruby on Rails Tutorial (http://railstutorial.org/book) and the math-heavy Tau Manifesto (http://tauday.com/tau-manifesto). (Disclosure: I'm also the principal author of Softcover.)
In the meantime, I was wondering if you ever compose on your iPad? What is your workflow for that?
What your license for the project? If we wanted to use it, we'd porting it to Go and JS with our own stylized CSS.
Had I had something like that some years ago, my workflow for both my BSc and my MSc thesis would have been quite different.
If you do use Markdown regularly, how often does it allow you to do everything you need (i.e. how often do you have to switch to something else)?
Feedback appreciated, thanks.
Vs LaTeX - sometimes I need just to note (a to do list, a draft of a blog post, an outline of workshop), without the boilerplate or visual noise of LaTeX.
(And I wrote more than a dozen of papers in LaTeX - so mine argument isn't "LaTeX is too hard".)
That said, I enjoyed using Overleaf - but mainly for teaching LaTeX (no installation, very nice and readable error messages, nice examples (I use your default page as the first introduction)). But for anything longer it's a pain that everything needs to recompile every few keystrokes (especially on a slow connection); I know it's not you but LaTeX; but for the same reason sometimes (when not requiring full features of LaTeX) it's easier to use Markdown + MathJaX.
It is a text file, but which can use lists, code inclusions, links and images (the later are not available in text mode... unless you want to do ASCII art).
When it comes to notes opinion vary. Some use Markdown (BTW: for notes I only keep them in the plain text mode - so the only difference is some highlighting), some org-mode, some various other tools.
I've used vi/vim since the late 1980s, it's drilled into my finger-memory (I'm composing it now in an external editor).
I also know HTML and LaTeX (having picked up the latter fairly recently), and have used a few other markup languages (nroff/groff, DocBook, etc.).
What's great about Markdown is that it's close to a 99% solution. I'm usually authoring into HTM or PDF, and if necessary, I'll generate HTML or LaTeX and finish up with either for detail work. With a full-featured Markdown parser though, there's little that cannot be accomplished, short of equations. Online implementations have various annoying omissions -- Reddit doesn't support images or subscripts, Ello lacks blockquotes. Neither has footnotes. Otherwise, it's fairly complete.
While LaTeX is actually pretty lightweight for prose (once I grokked it, surprisingly so), Markdown's lighter. And not having to pair up open/close tags makes it much lighter-weight than HTML.
QED.
And I knew I was doing it as I wrote it, forgot to clean it up.
Sigh.
What I'd really prefer is that sites simply said "hey, what's your preferred markup language" and offered the choice....
To turn your question upside down, the reason I don't use TeX and LaTeX any more (despite being quite invested in it) is that I rarely care about the quality of output any more. I'm more interested in the text editor representation.
For the types of documents I write (about software, very rarely doing any math) Markdown's syntax is just simpler and quicker. It produces readable HTML output with code syntax highlighting. That's all I want.
If I need to typeset something, I will go back to TeX/LaTeX. I'm afraid, though, that I'm not a good fit for overleaf as I am already invested in the concept of splitting composition from presentation. When I am writing, I specifically don't care about (and would rather not have) anything showing me what the final output is going to look like.
Typesetting is a completely different process for me. Once I have a good portion of the document written (sometimes all of it), then I will start looking at presentation. I'm also one of the crazy people who writes his own styles in TeX ;-)
What's interesting is that the last time I used LaTeX, I actually wrote my own markup language (similar to markdown) and had a build step that would convert it to LaTeX. This was because I was doing a lot of writing with very weird formatting (non-standard output of furigana in Japanese where I displayed both the Chinese characters, the Japanese reading of the characters, and the romanization of that reading). Doing that with TeX macros would have worn my fingers off.
So I suppose to sum up, since I don't need precise typesetting in most of my documents, Markdown is "good enough" and it is easier to type. When I do need precise typesetting, TeX/LaTeX is what I go for, but even then I would rather write in a markdown style DSL and translate to TeX which I can output. As much as I love TeX, it really does suck compared to any modern macro language. LaTeX gives a semi-nice veneer, but it still isn't optimal. Pushing it off to one side is how I cope ;-)
Strangely enough though for the current paper I have to write (> 20,000 but < 40,000 words) I have decided to see how far I can get with Markdown, Pandoc, and a lightweight custom pipeline. I'm going on a hunch but I have the feeling that this will work out ok. I may be wrong. Pandoc will auto-gen a table of contents from the Markdown headers. I'm going to try and grab citations straight from Zotero. AnnotateJS will give me endnotes but also allow others to make annotations and I should be able to generate HTML5+RDFa for semantic annotation. And yes, PDF because the university requires it -- I think I'll be able to go to PDF via LaTeX with Pandoc. Markdown does blockquotes too. I don't need complex Math, but I will need notation for propositional/predicate calculus. There really aren't that many _elements_ in an academic paper when you break it down to its constituent components and Markdown+extensions seems to have it all covered.
Pollen, which featured here recently, looks interesting too and I'm going to investigate that.
Edit: I've used Overleaf (and love it!) and even demo'd it to others and I think it's a great product. Scrivener is doing interesting things as well.
Be very interested to hear how you get on with your current paper -- it is one you're working on independently or do you have co-authors? If it's the latter, do you have a workflow for handling the collaboration?
Thanks also for the note about Pollen, will take a look at it in the morning!
We've found that by importing our university branded template into Overleaf and getting to our humanities students to think about their work as a structured document we can try to transition them away from MS Word. Unfortunately I think all bar two kept their old workflow.
Do check out the video by Pollen creator and typography nerd "(fourth RacketCon): Matthew Butterick — Like a Blind Squirrel in a Ferrari" linked from http://pollenpub.com/ His argument is that LaTeX has hindered innovation because it is so good. He gives his reasons for re-inventing the wheel with a Racket DSL. In the end we may realise the errors of our ways and come crawling back to LaTeX :)
is completely suboptimal for creating long structured documents
I actually saw many science students work very well with MS Word. They knew how to use it and liked it, whereas I completely despised it as I was never able to fit an image properly for example. To me, LaTeX seemed completely logical and superior to MS Word, but I have seen long documents typeset using Word also.The people who liked MS Word had no programming knowledge, if that's an indicator ;)
Although markdown has its limitations, as well as a barrier to entry for the non-technical user, it enables us to make sure our content is uniform in appearance with minimal style guides. A good markdown table editor would be a real winner, and some f the better open source editors don't have a consistent set of features, so it is often s bit of a trade off determining what is best.
All I want is markdown with orgmode tables. Never gotten around to do it myself, but how hard can it be? I really have to wonder about why the Web2.0+ crowd think tables should never be used for anything, especially not by content editors.
I seldom need to switch to something else or it should be to design diagrams or imagery. Even code - using extensions to highlight stuff - works relatively well. The only thing I dislike is the table stuff which for me always involves some fiddling.
But to be perfectly honest I'm also thinking of looking into latex. I also use pandoc to convert my markdown files to PDF which uses latex templates if I’m not mistaken. For me personally it works and looks great but the company has invested a lot of resources in branding and creating some-kind of corporate identity.
So now they want all the documentation including the fancy headers/footers and I think the only way of inserting it with pandoc involves creating a latex template and using the fancyhdr (off the top of my head so I could be wrong) package. Definitely something that I need to look into.
Works amazing and is offline, I highly recommend it.
For LaTeX, I've used https://www.overleaf.com/ till now.
From my initial interactions with this editor, it just might prove to be a single replacement for both the above sites!
What i'm not quite sure is what is the subset of available latex commands? Can you use only math formulas or there is also something else?
Thanks for sharing geyang, sorry for the downvoters, HN has a problem with downvoting (not the least of which is the inability to undo downvotes).
The link that was submitted has an editor that detects latex formulas, send them to the link I mentioned earlier, get back an svg and insert it on the page.
Atom editor + markdown preview with Katex
iPython notebook with mathjax