Live data from Hacker News

Web Publications – LaTeX Style – HTML View

goessner.github.io

1–10 of 20 posts

Re: Web Publications – LaTeX Style – HTML View

#3

I found it hard to understand the point of this. It talks about imitating the “look and feel” of LaTeX documents in HTML, but fails to do so. If the article itself is an example, it’s the familiar low-quality browser-rendered HTML typography.

Also "LaTeX look and feel" doesn't mean anything to start from: Latex documents look vastly different depending on which template they use. A lot of conferences and journals allow for both Word and Latex files to be sent, and it's impossible to guess in the output which tool was used to author a given paper.

Re: Web Publications – LaTeX Style – HTML View

#4

I found it hard to understand the point of this. It talks about imitating the “look and feel” of LaTeX documents in HTML, but fails to do so. If the article itself is an example, it’s the familiar low-quality browser-rendered HTML typography.

From the abstract:

> The resulting HTML document already contains prerendered math formulas, so browsers won't have the burden of math rendering via scripting.

It wants the math support of latex in an html document generated from the markdown source file.

Re: Web Publications – LaTeX Style – HTML View

#6

Use Katex

> Use Katex

This does use KaTeX for rendering the TeX:

> Math support is the core functionality of mdmath. Inline math $r = \sqrt{x^2 + y^2}$ and display math expressions $$e^{ix}=\cos x + i\sin x$$ are supported, due to markdown-it extension markdown-it-texmath [8] and the fast math renderer KaTeX [9].

> [8] markdown-it-texmath, (https://github.com/goessner/markdown-it-texmath).

> [9] KaTeX, (https://katex.org/)

Re: Web Publications – LaTeX Style – HTML View

#8
This is maybe the third time I've seen the concept of a LaTeX styled html page and it never seems like a good idea to me. I'm all for math typesetting in HTML, but I no longer "believe" in justification, especially not browser's dissatisfying one-paragraph based techniques. But even with knuth-plass I have reasons to suspect ragged right text is better, see https://news.ycombinator.com/item?id=27189306 I'm willing to change my mind with more evidence, justified text is pretty.

Re: Web Publications – LaTeX Style – HTML View

#9
post #8

This is maybe the third time I've seen the concept of a LaTeX styled html page and it never seems like a good idea to me. I'm all for math typesetting in HTML, but I no longer "believe" in justification, especially not browser's dissatisfying one-paragraph based techniques. But even with knuth-plass I have reasons to suspect ragged right text is better, see https://news.ycombinator.com/item?id=27189306 I'm willing to…

I also forgot to mention that for most people at low dpi (I would say 300dpi and lower, but I personally wouldn't use a serif till ~1500dpi) sans-serifs are more legible. This blog post has some good information: https://geniusee.com/single-blog/font-readability-research-f...

I had better sources at some point but I'll have to dig them up.

Re: Web Publications – LaTeX Style – HTML View

#10
post #4

I found it hard to understand the point of this. It talks about imitating the “look and feel” of LaTeX documents in HTML, but fails to do so. If the article itself is an example, it’s the familiar low-quality browser-rendered HTML typography.

From the abstract: > The resulting HTML document already contains prerendered math formulas, so browsers won't have the burden of math rendering via scripting. It wants the math support of latex in an html document generated from the markdown source file.

KaTeX already provides pre-rendering of math. If you want to start with Markdown you can use Pandoc. Then you can get TeX, HTML, and even Word formats from the same source. This project seems to only work with one particular editor, as well.
Post reply on HN