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.
Show HN: LaTeX.css – Make your website look like a LaTeX document
91–100 of 113 posts
Re: Show HN: LaTeX.css – Make your website look like a LaTeX document
#92Sadly, 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…
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
#93Earlier 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.
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
#94Earlier 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.
Re: Show HN: LaTeX.css – Make your website look like a LaTeX document
#95One brief note on the markup: please specify the width and height attributes on the , especially if you want to use the loading=lazy attribute, so that the browser gets its aspect ratio right.
Re: Show HN: LaTeX.css – Make your website look like a LaTeX document
#96Re: Show HN: LaTeX.css – Make your website look like a LaTeX document
#97Re: Show HN: LaTeX.css – Make your website look like a LaTeX document
#98Earlier 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
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
#99The 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
#100In 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.