4 ms·
(I'm a co-founder at Overleaf.com, which does collaborative 'LaTeX in the browser' in a different sense.) I like the idea of a 'sane' subset of LaTeX that is e
by jdleesmiller 9y ago
(I'm a co-founder at Overleaf.com, which does collaborative 'LaTeX in the browser' in a different sense.)
I like the idea of a 'sane' subset of LaTeX that is easy to publish to the web. There are tools like LaTeXML and TeX4ht that try to convert general LaTeX documents to (X)HTML, but it's a very hard problem.
Some difficulties arise from the fact that TeX is just very hard to parse in general. Even the first stage of parsing TeX is Turing complete [1]. This makes it hard to write tooling e.g. for linting (though tools exist, e.g. chktex) or creating a WYSIWYG editor backed by LaTeX [2]. (edit: or creating a good LaTeX auto-complete [4])
Others arise from TeX's extensibility --- there are many thousands of packages that define their own commands and environments for different types of documents and different disciplines. This extensibility is on the one hand one of the main reasons that TeX and LaTeX are still actively used some 40 years after TeX's initial release, but on the other hand a major challenge for conversion to HTML. The LaTeXML project has many custom bindings [3] for these packages, but it's far from complete.
I guess the main question is whether we can find the right subset, and this project looks like a great start.
[1] https://tex.stackexchange.com/questions/4201/is-there-a-bnf-grammar-of-the-tex-language https://tex.stackexchange.com/questions/4201/is-there-a-bnf-...
[2] https://www.overleaf.com/blog/81 https://www.overleaf.com/blog/81 --- my first attempt at rich text on Overleaf, many years ago
[3] http://dlmf.nist.gov/LaTeXML/manual/customization/customization.latexml.html http://dlmf.nist.gov/LaTeXML/manual/customization/customizat...
[4] https://www.overleaf.com/blog/523-a-data-driven-approach-to-latex-autocomplete https://www.overleaf.com/blog/523-a-data-driven-approach-to-...
- jxxcarlson 9y agoHi, I am the developer of MiniLatex. Overleaf looks like a fantastic tool.
- bhrgunatha 9y ago> I like the idea of a 'sane' subset of LaTeX that is easy to publish to the web. That's probably the only approach that really makes sense: During the past decade I was surprised to learn that the writing of programs for TeX and Metafont proved to be much more difficult than all the other things I had done (like proving theorems or writing books). The creation of good software demand a significiantly higher standard of accuracy than those other things do, and it requires a longer attention span than other intellectual tasks.
- moultano 9y agoI really like the idea of adding math support to Unicode via combining characters. It's more complicated than anything Unicode currently deals with, but not that much more complicated, and the idea of being able to put math into anything that currently accepts strings is just so enticing. We should treat math as it's own language, and rendering it as we would any other human language with an unusual way of laying out characters.
- cryptonector 9y agoHmmm, certainly Unicode ought to be able to represent mathematics as a script like any other. However, the complexity involved is non-trivial. To make things easier, whatever Unicode might do for math should have a mapping to and from TeX or MathAJAX. In any case, Unicode is rather complex as it is; I'm not sure I look forward to this extra level of complexity :(
- Bromskloss 9y agoIt's an interesting idea. At what point, though, do we draw the line between what a character set (like Unicode) should handle, and what should be handled by a higher-level layer? I'm thinking that things like boldness, italicisation, and super script aren't really the job for a character set.
- yorwba 9y agoUnicode already has 𝐛𝐨𝐥𝐝, 𝘪𝘵𝘢𝘭𝘪𝘤 and ˢᵘᵖᵉʳˢᶜʳⁱᵖᵗ variants of the Latin alphabet.
- colejohnson66 9y agoMaybe it’s just iOS, but the “bold” characters are serifed and the “superscript” one’s aren’t a consistent size between each other.
- yorwba 9y agoUnicode only defines the codepoints for characters, it doesn't require anyone to actually make them look good. Since those characters were specifically only included to represent mathematical texts where formatting needs to be preserved, it's unlikely anyone is spending much effort on making them look good as text. Regarding serifs: there are actually two variants of both bold and italic (and bold italic), one serifed and one not. Wikipedia has a chart of the different options here: https://en.wikipedia.org/wiki/Mathematical_Alphanumeric_Symbols https://en.wikipedia.org/wiki/Mathematical_Alphanumeric_Symb...