Live data from Hacker News

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

latex.now.sh

51–60 of 113 posts

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

#51

So then if you use a html2pdf tool you can generate a pdf people will think was done with LaTeX! Here I wasted all that time learning LaTeX to impress people.

I write solely in markdown and use pandoc with other tools to generate the best file-type for the audience. Business folks get .doc or .pdf. For technical folks it varies on the situation: anything from the raw markdown, to LaTeX styled pdf, to HTML pages with various css applied (I often use github's).

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

#52
post #13
post #2

What so it just styles your site to look like a dry academic paper? What use case does this have? I imagine someone out there really needs this and the target audience is small.

I don't know about everyone but for me there is this weird effect style has on how serious I think the text is. When I read something written in the style of a medium post I sub-consciously think of the material as being shallow. While reading this type of LaTeX style I would start taking it more seriously. But the texts with most serious look to me are non-formatted pages, like the ones on danluu.com or even plain t…

Me too. Your comment perfectly nails it. I'd guess with a wet finger that it is learned: our brains probably look for clues to quickly assess the quality / trustworthiness of a document. This is why style is pretty important: it certainly affects a lot many people's perceptions.

By the way, this is also why I used serious words like "brain" and "assess" and avoided typos: to make my comment look trustworthy. I had to put a front warning in terms of "wet finger" to lower that a bit though. The Hacker News style and context already make it feel far too scientific already.

For texts like in your link, I automatically expect they are written in the 90s by some very clever person and when I find some that are from the 2000s or later, I think "wow, this is actually new!".

What would be your impression with such a text written in Comic Sans? I would probably be completely lost I think.

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

#53
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-linebreak

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

#54
post #6

I hated the look of LaTeX documents when I first started university, especially the font. I don't know what happened, but I eventually fell in love Computer Modern. Something about it just looks great. Maybe it's just Stockholm Syndrome.

The font looks god awful on my screen. Changing everything to Roboto in the linked page made it 100x more pleasant to read.

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

#55
Nicely done - it instantly reminded me of that feeling of deep dreading when coming across a latex document so it looks like this is fairly spot on :)

Not sure what it is, perhaps PTSD from uni but something about latex docs bring on really bad feelings...

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

#56
I noticed two big omissions:

1. No automatic numbering (and no automatic table of contents generation).

2. Latex will indent the first line of each paragraph (except the first one in a run). This is the reason why it gets away with very little padding between paragraphs.

Having written my share of Latex, I have always wondered why people are focusing on math and formulas. That is the least of what Latex brings to the table. Most documents have no need for formulas but are massively underserved in the "proper typesetting" department.

I remember hacking a Latex CSS many years ago when CSS was only half as powerful as it is now. I had to use some Javascript for the table of contents generation though.

Personally, I find the Computer Modern font the least attractive thing about TeX. I always substitute either Times Roman if the size of the resulting PDF is important, or Linux Libertine or so if not.

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

#57
post #6

I hated the look of LaTeX documents when I first started university, especially the font. I don't know what happened, but I eventually fell in love Computer Modern. Something about it just looks great. Maybe it's just Stockholm Syndrome.

The problem is that it's much too thin and therefore hard to read on computer screens. I'm sure it looks great on paper printed with the old Xerox laser printers that were around when it was made, but in its current form it's just way too thin to be read on a screen. Someone on a German forum made a wider version of it which (imo) looks much better [1]. [1] https://www.typografie.info/3/topic/22238-ist-die-computer-m…

My recollection is that Computer Modern didn't look very good on old laser printers, as their resolution just wasn't high enough to handle the detail of the glyphs. It was crafted for digital phototypesetting systems with a resolution of 1200dpi or more, and 300dpi laser printers couldn't do it justice.

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

#58
post #56

I noticed two big omissions: 1. No automatic numbering (and no automatic table of contents generation). 2. Latex will indent the first line of each paragraph (except the first one in a run). This is the reason why it gets away with very little padding between paragraphs. Having written my share of Latex, I have always wondered why people are focusing on math and formulas. That is the least of what Latex brings to the…

My fave is New Century Schoolbook :)
Post reply on HN