Live data from Hacker News

Show HN: LaTeX.css – Make your website look like a LaTeX document

latex.now.sh

91–100 of 113 posts

Re: Show HN: LaTeX.css – Make your website look like a LaTeX document

#91
post #61
post #48

This is great! Putting anything mathematics-related on the Web and making it look half-decent is such a chore. Thank you for making it easier! MathJax and KaTeX are a great thing, but there's a contrast between formulas and the rest of the document unless you use something like this. The comments here as of now fall into two groups: - "Who needs it and why?" People who want to present or discuss mathematics and proof…

> You know what else TeX does? It takes forever to compile What are you compiling, and what are your expected and actual times? It's certainly fast enough for me, although I mostly compile article-length documents.

Indeed. I remember the first time I ran TeX on an SGI workstation in the 90s. I thought it didn't run because the compilation ran so fast the screen didn't scroll.

Re: Show HN: LaTeX.css – Make your website look like a LaTeX document

#92
post #40

Sadly, css/html hyphenation is still pretty awful. And AFAIK on mobile kerning is pretty far off too. So to me it feels more like a latex parody than homage, unfortunately. Additionally, it took a long time for Chrome to even implement: https://developer.mozilla.org/en-US/docs/Web/CSS/hyphens https://www.chromestatus.com/feature/5642121184804864 Sadly, even with auto, there's way too much ragged right in html, or too…

The problem is that CSS uses greedy line breaks. In theory, this should improve once browsers implement CSS Text Module Level 4, specifically the `pretty` value for the `text-wrap` property [1][2]. Until then, we're stuck with poor-quality typesetting, or JavaScript solutions [3]. [1] https://www.w3.org/TR/css-text-4/#text-wrap [2] https://github.com/w3c/csswg-drafts/issues/672 [3] https://github.com/robertknight/tex…

It’s not that CSS does that, but that browsers (all of them) do that. CSS has no opinion on the matter until text-wrap, where `text-wrap: stable` would dictate the current behaviour.

As an example showing that browsers have long been open to doing things better, this bug was opened against Firefox nine years ago, to implement Knuth-Plass: https://bugzilla.mozilla.org/show_bug.cgi?id=630181 (it hasn’t gone anywhere, of course, because it’s hard; but it shows willingness).

Re: Show HN: LaTeX.css – Make your website look like a LaTeX document

#93
post #84

Earlier quoted context omitted.

Same, except instead of falling in love with Computer Modern, I went "oh hey, XeLaTeX lets me use fonts in a sane way" and started typesetting with modern OpenType fonts instead. So I'd argue there's at least a good chunk of Stockholm syndrome there.

Same. I particularly like Linux Libertine, enough so that I make Firefox use it everywhere, even (especially?) where the page designer wanted sans. Sadly, mobile Firefox does not support that, so HN on Android is relentlessly sans.

Even if the UI is not exposed, it’s all there in about:config and should work:

browser.display.use_document_fonts = 0

font.name.serif.x-western = Linux Libertine

font.name.sans-serif.x-western = Linux Libertine

Re: Show HN: LaTeX.css – Make your website look like a LaTeX document

#94

Earlier quoted context omitted.

I think it's because the font is correlated with higher-than-average quality for random docs one finds on the web.

Very true -- interesting when the barrier to using the tool signifies a certain level of professionalism and investment in wanting the paper to look and read right. However, there is a part of the curve where random failed grad student and retired professors become conspiracy cranks and email you half-baked theories about the shape of the universe, typeset in Latex -- and those get through the filter unfortunately.

Many cryptocurrency “whitepapers” take advantage of the trust for this format

Re: Show HN: LaTeX.css – Make your website look like a LaTeX document

#98
post #84

Earlier quoted context omitted.

Same. I particularly like Linux Libertine, enough so that I make Firefox use it everywhere, even (especially?) where the page designer wanted sans. Sadly, mobile Firefox does not support that, so HN on Android is relentlessly sans.

Even if the UI is not exposed, it’s all there in about:config and should work: browser.display.use_document_fonts = 0 font.name.serif.x-western = Linux Libertine font.name.sans-serif.x-western = Linux Libertine

Thank you, I had already done that. (Well, "Droid Serif".) For some reason it has no visible effect.

I never got the "Linux Libertine O" fonts to work in my phone. I suspect it doesn't like the file format.

Re: Show HN: LaTeX.css – Make your website look like a LaTeX document

#99
Some years ago, I tried to replicate the ACM paper style in LaTeX: http://beza1e1.tuxen.de/acm_html/test.html

The biggest problem is floating figures. ACM papers have a copyright notice on the first page at the bottom of the left column. I have no clue how to do that with CSS.

Re: Show HN: LaTeX.css – Make your website look like a LaTeX document

#100
There is an ocean of CSS that mimic off the shelf LaTeX or journal-specific layouts. They're almost entirely one-off attempts depend on a particular HTML structure to have the CSS work. Introducing new CSS layouts to work on the same HTML generally doesn't work well.

In https://dokie.li/ , HTML is key - semantic and sufficiently "flexible". CSS is secondary. That is why we can generally throw different CSS at it without touching the underlying HTML pattern. Examples:

* https://dokie.li/acm-sigproc-sp (ACM - authoring guidelines)

* https://dokie.li/lncs-splnproc (LNCS - authoring guidelines)

* https://csarven.ca/linked-research-decentralised-web

* https://csarven.ca/dokieli-rww

* https://linkedresearch.org/ldn/

* ...

You can dynamically switch the CSS view from the dokieli menu (top-right) or from your browser's native controls eg. view the ACM authoring guidelines using the LNCS CSS and vice-versa.

Post reply on HN