LaTeX.css – Make your website look like a LaTeX document
latex.vercel.app
latex.vercel.app
Yikes!
I've never had to use it, so I don't know how it works at all (besides understanding that it's a marked-up file processing pipeline), so I'll ask: is there something deeply problematic with its font rendering tech that it has been like this for soooo long?
I mean, I can spot one of its PDFs from a mile away.
I think it might also be because many things like browsers or MS Word have to use crude, fast algorithms for typesetting, but Latex uses complicated and slow, but much more accurate algorithms for that.
It's like if you compare a printed Word document vs. a printed Latex document it becomes very obvious. Latex looks like a newspaper or magazine, because that's just how printed text is actually supposed to look like.
You need different parameters for different display/printing mechanisms
No it's not. Computer Modern is way to thin to be considered readable. This is because it was originally designed with print in mind, which used to have ink bleeding, making thin lines thicker on paper.
Here are some scans by Raph Levien showing the vector design vs. the offset printing in Knuth’s Digital Typography vs. laser printing:
https://levien.com/type/cmr/gain.html
Presumably, the middle version is how Knuth wanted the font to appear on the page. But the bottom version is what we get when we take the digital outlines and render them on a laser printer.
Fortunately for us, several people have used the adjustable-blackness feature to make blacker renditions of Computer Modern that are designed to look good when laser printed.
MLModern is the one I prefer:
> MLModern is a text and math font family with (La)TeX support, based on the design of Donald Knuth’s Computer Modern and the Latin Modern project. It avoids the spindliness of most other Type 1 versions of Computer Modern.
For a typeset example of it in use: https://blog.moertel.com/images/public_html/blog/pix-2024060...
Does it include ports of the AMS packages with extra symbols?
Unfortunately, the web wasn't designed that way, which is why every document that you read on a website instead of on paper is illegible.
It's a shame, really. :) /s
On the other hand, the reflowing/small screen readability story of LaTeX is a very sad one, and no typesetting will be able to taper over that for me in 2024. Even scientists use smartphones.
If reviewing e.g. applications from undergraduates for a summer studentship, that signal is a subconscious hint saying 'read this a bit more closely' if nothing else.
But beyond me being conditioned to be bored out of my head reading scientific papers (being an ex-academic who definitely does not miss having to read lots of poorly written papers) written with latex and having that look, I shouldn't have much of an opinion on the matter.
It's like talking about reflowing a physical page.
Instead, you change the document page size and render multiple versions and switch it out based on zoom level.
Texpresso looks promising though, but I haven’t tried it yet.
If you apply it to all paragraphs, yes, you will get pathological performance on some extreme cases—the algorithm is quadratic, if I recall correctly. But there’s nothing preventing you from trying to apply it in general, and giving up if the input is too long. So your five or ten line paragraphs get KP, and longer paragraphs get greedy.
There is absolutely nothing stopping browsers from applying Knuth-Plass. In fact, Firefox has had a bug about implementing it for 14 years <https://bugzilla.mozilla.org/show_bug.cgi?id=630181>, and there’s some useful discussion of things there. And CSS itself is finally actually going ahead with `text-wrap: pretty`, which encourages such things. Long ago, IE apparently even had it via `text-justify: newspaper` <https://news.ycombinator.com/item?id=5189258>.
https://courses.umass.edu/klement/imp/
which is available in a number of sizes _and_ has the LaTeX source available showing how the various sizes are arrived at.
Code: https://github.com/tdjsnelling/microtype Demo: https://tdjsnelling.github.io/microtype/test/from-cdn/
Even better, there is the new CSS `hyphens: auto;`. Browser & language support is not yet 100% though.
C(n) = 0.10000000...
that is: c_1(n) = 1 and c_i(n) = 0 for all other i.
If you let \overline{c}_1(n) = 0 and c_i(n) = 9 for all other i, then we have that c_i(n) != \overline{c}(c)_i(n) for all i but C(n) = x.
This is a common mistake people make. To fix it, one needs to be more careful when defining \overline{c}_i.
I think the usual way to fix it is actually to be more careful when defining C(n) - that is, to specify that the value of C(n) is a sequence of digits, with the sequences in 1:1 correspondence with [0,1], not itself a value that belongs to the interval [0,1]. Then you can just say that trailing zeroes, or trailing nines, aren't allowed, giving you a unique representation for every value in [0,1]. At that point c-bar will work as defined.
It was possible to read on computer screens at the time.
https://style64.org/c64-truetype
https://fontstruct.com/fontstructions/show/675155/amiga_topa...
I still think it is one of the most elegant font out there, although I probably wouldn't recommend using it on a webpage.
https://tex.stackexchange.com/questions/186512/did-knuth-act...
looks excellent
(I'm now thinking of various pop-up book elements, sliders, etc., which could be used as dynamic online elements are in HTML.)