One bookdown user seemed to be very unhappy with the HTML output format.1 Although I don’t quite understand how difficult it is to generate a PDF from bookdown (sounds like two mouse clicks to me in RStudio), this tweet did remind me of a broader topic that I wanted to write about: PDF/LaTeX vs HTML.
In short, I believe LaTeX is dead (long live LaTeX). It will definitely survive for a few more years (maybe twenty or thirty years), but I believe HTML has much more potential to prosper. The fittest will survive, and HTML is the fittest. If you choose LaTeX, you are pretty much tied to PDF. If you choose HTML, you will have much more freedom and fun (e.g., interactivity). In terms of typesetting, HTML cannot beat LaTeX, but it all depends on how good you want the typesetting to be. On one extreme, you could spend an infinite amount of time on improving the appearance of your work, but I’m sure most people won’t do that. Getting things done is often more important than making things extremely beautiful or fancy. There has to be a point where you stop investing time in styling and typesetting. The question is when to stop. I tend to stop a little earlier myself, and I understand some people want to stop later.

One project that made me believe even more in HTML is ReLaXed. The typesetting quality of web pages will surely catch up with LaTeX, but on the other hand, LaTeX will probably never be able to catch up with HTML in other aspects.
On a related note, last week I tweeted about my dream of liberating authors from the typesetting tasks. I was envisioning that in the (far) future, it would be the readers instead of authors or journal editors who would decide how an article or a publication should look like. The authors should only take care of the content, and the editors only take care of the review. There could be a recommended style, but is not enforced. If an article is published in HTML, styling it with CSS will be much easier than LaTeX. Readers can even choose to do so in their own web browsers. Web designers could also contribute and share themes and styles. Choosing the style that makes you, the reader, the most comfortable when reading the document. Changing the style on the fly. Think about it. Why should we spend time on inventing a style and then blindly hope all readers will like it? People can argue to death on things like serif vs sans-serif fonts, line-heights, colors, white vs dark themes, and so on. What introduced these bikeshedding wars? I think it is our belief that what looks good in our own eyes must look good in other people’s eyes, too. Look! I’m using this beautiful font! How can it possibly look ugly in your eyes?!
My blog post is relatively short, and I strongly recommend that you read the full article “LaTeX is dead” above.
-
And two months later, I heard another similar complaint. ↩︎
Donate
As a freelancer (currently working as a contractor) and a dad of three kids, I truly appreciate your donation to support my writing and open-source software development! Your contribution helps me cope with financial uncertainty better, so I can spend more time on producing high-quality content and software. You can make a donation through methods below.
-
Venmo:
@yihui_xie, or Zelle:xie@yihui.name -
Paypal
-
If you have a Paypal account, you can follow the link https://paypal.me/YihuiXie or find me on Paypal via my email
xie@yihui.name. Please choose the payment type as “Family and Friends” (instead of “Goods and Services”) to avoid extra fees. -
If you don’t have Paypal, you may donate through this link via your debit or credit card. Paypal will charge a fee on my side.
-
-
Other ways:
WeChat Pay (微信支付:谢益辉) Alipay (支付宝:谢益辉) 

When sending money, please be sure to add a note “gift” or “donation” if possible, so it won’t be treated as my taxable income but a genuine gift. Needless to say, donation is completely voluntary and I appreciate any amount you can give.
Please feel free to email me if you prefer a different way to give. Thank you very much!
I’ll give back a significant portion of the donations to the open-source community and charities. For the record, I received about $30,000 in total (before tax) in 2024-25, and gave back about $15,000 (after tax).