Latex to HTML5 Conversion for Scientific Papers
github.com
github.com
It is LaTeX syntax.
That's LateX-enough for me :)
But in all seriousness, thanks for clarifying/confirming. When I posted I didn't want to risk overstating.
(I sometimes think that the user interface of github puts too much emphasis on cloning and not enough on cooperation. Many useful tools ends up in a dozen forks, all with slightly different features, all equally inactive.)
It's possible for HTML+CSS to also provide a good to-print workflow, but I don't think it's there yet, at least using open-source tools. I have heard PrinceXML can produce good results, with sufficient control over the print layout to make HTML+CSS usable as a print-oriented markup language. But between the cost, and the prospect of becoming dependent on a proprietary tool with no obvious alternatives, I haven't tried it.
you may also take a look at make4ht (https://github.com/michal-h21/make4ht), it is a build tool for tex4ht, included in TeX distributions and it also solve some of the problems as your script (ligatures, spurious span elements, image conversion, unicode, etc.). It can execute custom commands on all output files, so your script could be used with it as well
But maybe that's just my ignorance of LaTeX showing, although I did manage to write two theses in it.
Also like Pandoc and Markdown... if somebody is interested for a workflow to write a scientific paper with it check this project out: https://github.com/tompollard/phd_thesis_markdown
I hope the future will turn out to be Lyx + Asciidoctor export. If Microsoft Word ever improves their math input interface, I think it would just kill off LaTex completely. It's already almost mandatory to use for document interchange.
Markdown is too limited. It has no standard for extensions - Asciidoc does. Markdown IMO is strictly for writing blog posts that are mostly text.
And I have been looking hard for years and haven't found anything to replace TeX that fulfills even half my needs (as a person who does math typesetting in large documents almost daily). LaTeX has its issues, but it's the best we've got.
In general, I'd agree with the parent that LaTeX is something of a dead end in terms of translation. LaTeX will happily compile to PS/PDF/DVI, but translation to something like HTML is pretty reliant on using a subset of LaTeX. You can, after all, write LaTeX code to do computation.
In my experience with Pandoc, there are a good number of packages that simply don't work when translating from LaTeX. The more specialized or formatting specific the package--the further you deviate from the standard Article class and simple section headers--the less likely that you'll have a good result.
I've found that pandoc (and every other conversion utility) doesn't even produce useful results for LaTeX even if the LaTeX source doesn't use any complex macros or fringe packages.
The problem seems not to be that LaTeX is too powerful, but rather that the point of HTML and Markdown is to be as lightweight as possible. LaTeX, on the other hand, is meant to be a useful tool for humans to use to minimize the amount of boilerplate needed to write a large technical document (in print or on the web!).
But, there's kind of an informal subset of LaTeX that you can use and not be too bad off with Pandoc.
In general, I'd like to do academic and report writing in Markdown (or Org!), but limitations of Markdown usually make it easier for me to do my writing directly in LaTeX, portability be damned. The biggest impediment for Markdown in academic / report writing I'm my opinion is the lack of internal references (things like "see figure X").
Org-mode can be converted via Pandoc much the same as markdown, but doesn't have the issue with cross-references.
Although it'd be great to see some decent research into readability of different fonts.
[1]http://www.researchgate.net/publication/237229931_The_Influe...
Could anyone be so kind as to compare this with: https://github.com/pyramation/LaTeX2HTML5