Hey Latex users, I have an idea for you
maymounkov.org
maymounkov.org
To oversimplify: LaTeX is not perfect but is much smarter than the author is giving it credit for. This is that stereotypical Unix learning experience ("feature X is enormously frustrating, why can't we do something simpler" -> time passes -> "oh, feature X is actually spectacularly useful when viewed through the right lens") going on.
Actually I've been wondering why we have to make academic papers "publishable". Majority of researchers read papers on computer. Even they read on paper, it's printed out from a downloaded PDF. If everything is transferred as electronic format, I'm not sure traditional typesetting is still necessary.
HTML based articles have option to be interactive and visually better. This enables better communication, which is the purpose of publishing papers. HTML is also more structured than close sourced PDF, and structured data is more machine friendly. I'm not only talking about SEO, but also citations/indexing/etc.. HTML is also easier to be embedded into other content. This makes, e.g. peer-review, easier.
If any, I think the main obstacle of HTML formatted technical papers is traditional publishers. They make a lot of money out of publishing and this would potentially squeeze their profit.
EDIT: typo
I did not tackle the bibliography problem: Import bibtex into HTML and correctly link citations into bibliography. That will be some work.
Maybe PrinceXML can do it, but it is not Free Software.
My proof-of-concept HTML version: http://beza1e1.tuxen.de/acm_html/test.html You can spot a few LaTeX commands, which got copy&pasted. ;)
My conclusion: HTML is useable for pdf generation, but is not sufficient to replace LaTeX.
The HTML standard, which expressly makes room for foreign technologies, when viewed as a standard is immensely more powerful than good old Latex. And in fact, if typesetting is your concern, you will already find JS libraries addressing this.
The big thing is: the HTML standard allows for future technologies to be embedded in your docs. The Latex linguistic ecosystem does not.
This point is only made clearer when one realizes that the end goal "to have a paper in my hand" is an artifact of past technologies. Going forward, "having a paper in your hands" will not stand as the end-goal of intellectual effort. Most certainly, intellectual work will have to be presented in a (a) standardized and (b) highly accessible and (c) highly interactive manner. Only HTML fits the bill.
It is clear that academia will switch to HTML. I am just saying: Get on with it. Why wait.
It reminds me of the people who want to "fix email", without realizing that the only problem is that email doesn't cover certain use case that affects them, but it's fine for a lot of purposes.
I think that's false. The author's claim is that "inertia is why we still use LaTeX"; I think the strongest force that keeps the publishing community in LaTeX is that it does a hell of a lot more than HTML.
For people who are reading papers all day, typesetting matters. If I need to digest a difficult concept, I don't want to spend any brain cycles at all on bad formatting, because I want to spend all of them on the content. The HTML experience today isn't capable of producing something readable when I'm at full capacity with the paper's content, and I suspect that reviewers feel the same way.
So, no, "a simple alternative" doesn't exist, sadly.
You can embed LaTeX into your Markdown, and still have it render to many targets (HTML, PDF, etc.) with full linking and fidelity.
When I had written the book, I just used tex4ht and it spit out HTML that was decent, I could just apply a minimal amount of work and apply some CSS and then I had the epub and mobi.
I'm happy with LaTeX but I'm probably never writing another book (or I might..)!
Add to that that TeX is the only user friendly portable markup of math available.
1. Templates, so you don't have to control how everything looks: If you're writing a paper, you usually target a specific journal (and retarget later if rejected). If you download that journal's templates you can work on a version of the paper that looks very close to how it will be published. You can also submit a preprint to arxiv so it will be available to others in a close-to-final form while it goes through the (sometimes lengthy) peer-review process.
2. Fine control when you need it: While templates allow latex users to primarily worry about content rather than fiddling with appearances, there are still very fine controls in Latex for sweating the fine-details, and believe me, there are plenty of those that academics sweat over. There are a lot of little things that make your text robust against the tyrannies of the template. For example, say you write "For blah blah blah, see Figure 1." in your text. Latex might decide to start a new line after "Figure", leaving "1." starting the next line. Awkward! Rewrite this as "Figure~1" and Latex will not insert a newline there. If you get into the habit of doing that all the time, and many other things, you will spend a lot less time playing whack-a-mole with things that wind up looking funny. When you get good, you truly only have to worry about content.
This war between not having to control appearance and controlling it utterly when it matters makes Latex both very powerful and very frustrating to newcomers. Proficiency delivers freedom to worry only about content, which is what academics really want.
If HTML+etc is to be an alternative to latex, those templates need to be out there. Otherwise it's a chicken and the egg problem. Nobody has time to use HTML because it would mean developing a new template to meet their target journal's spec's and convincing them to accept that format, so nobody ever develops a template. Journals won't waste time developing templates or altering their system to accept HTML documents unless submitters are interested in submitting via that route. If you truly think you've found a superior alternative to Latex, it is up to you to pick a journal, develop templates that match their format, and get them out there so people can try them.
For my current book project, I've decided to go with LyX as my editor instead, and it comes with Elyxir, which converts LaTeX to HTML
A HTML-like templating language, provided with an ACM-style CSS stylesheet and math/graphic/wtv Javascript libraries does seem appealing but simple problems arise from this.
Different browsers render different results, and that's not even remotely acceptable for a to-be-published paper; this lack of consistency is, to me, the greatest obstacle to that reality. Even considering _very_ similar results on every browser, PDF export would still be incoherent, resulting in mis-pagination (empty pages), "read-while-selected" text and the usual PDF-export-from-format-X bugs.
Using Javascript libraries to provide extensability is a clever design, but the same problems apply. I often find textual bugs (hidden text, text above/bellow flow) on websites that rely too much on web fonts, and that shouldn't happen by now (as some are reporting, even on the author's website).
Too many factors come to play for this to go wrong, but it all comes down to different browser implementations of every single technology in this HTML/CSS/JS stack (and that's a lot to go wrong).
So while it does seem appealing (give the form and I'll sign it!), I don't think HTML+CSS+JS is even near of getting that experience consistency that typesetting-heavy documents need.
They have a few glitches here and there but convenient enough to draft some papers in the browser
Academic papers are intended to be static, finalized content so I don't see the need for anything more than hyperlinks, and even hyperlinks are problematic because the content they link to disappears so often. Because of this PDF makes a great export format because it is nearly as old as HTML, standardized and you know your paper will always look the same. And for generating academic paper PDFs there is nothing that produces better looking papers than LaTeX.
As for standardization, TeX is older (1978), more standard (a single definitive reference implementation), and more stable (no feature changes since 1989). LaTeX is not quite as stable (last release was in 1994 with a new version planned for some time in the future) but I would argue it is still more stable than HTML.
See this talk on "Media for Thinking the Unthinkable" by Brett Victor: http://vimeo.com/67076984
There still have to be a bunch of changes before we get there.
We do not know how to use interactive documents well.
That's because Latex is supposed to be used for printed documents. Printed documents don't care about clickable links.
> It is incompatible with almost all but the most advanced information crawling and organizing technologies, for its lack of meaningful meta information.
So is my C code, word documents and those macos stickies. PDF document generated from a latex file can fullfill all your meta information needs though.
> It is grossly non-interoperable with other modern scientific tools, and mainly it is unable to embed interactive (i.e. “non-dead”) content generated by other tools.
I'll try to remember that next time I am embedding lua and R code to generate lab reports.
http://www.stat.uni-muenchen.de/~leisch/Sweave/
http://orgmode.org/worg/org-contrib/babel/
These don't fix all the problems mentioned, but they definitely fix this one "It is grossly non-interoperable with other modern scientific tools, and mainly it is unable to embed interactive (i.e. “non-dead”) content generated by other tools.".
But why prefer Latex to HTML? Latex makes a beautiful, well-structured document every time. I don't think I've ever made something beautiful in HTML.
It allows people to generate the required markup from their favourite mark(down)up.
Focusing on scientific academia, the workflow of data to paper is already solved with ipython+pandoc (ipython notebook).
We have started using ipython notebook 2 months ago, and never looked back. The ipython notebook allows us to do our postprocessing with report write up, making beautiful graphs in matplotlib export it to single file HTML to share with supervisors and collaborators, and then save the entire thing as latex as a starting point for a high quality latex article. When the images are being overhauled we go back to the notebook, save as pdf/svg/png.
Not only hasn’t there any advance since 2010, no! It even worsened: With Opera switching to Blink, Chrome dragged it with it into the dark “We need no MathML” hole. Huge step backwards.
*and related technologies such as CSS
http://www.ctan.org/tex-archive/macros/latex/contrib/hyperxm...
What I do when I have to produce documents: Markdown if it doesn't require much formatting, otherwise move to LaTeX to have more customization power (without having to pull my hair off).
I've had some luck with ConTeXt personally
What I need:
* High quality fonts and images
* Single file
* Cross platform
* Simple to create using LaTeX
* Excellent support for math
* LaTeX style readability considerations
* Massive user base
* Many extensions
1. (kinda.. if I want to use Google's font API and the browser renders it well)
2. Not a single file.
3. Not cross-platform - it will render differently on my linux desktop and mac laptop.
4. I don't know how to convert all of my LaTeX macros and workflows to HTML so I'd need something like htmltex (doesn't exist, I want it).
5. MathJax is good, but it ain't great. Too many compromises.
6. No typesetting and words per lining heuristics like LaTeX - again, need htmltex.
7. and 8. were a bit unclear, sorry. I mean in writing mathematical papers. HTML has a huge community but signal to noise for writing readable papers is pretty high. Mapping what I do in LaTeX to HTML requires many more lines of code.
Still I 100% agree that even HTML is too primitive and too inconsistently implemented for scientific writing.