logoalt Hacker News

sillysaurusxyesterday at 11:03 PM1 replyview on HN

Question: The author makes this article available on the web as a series of posts, a PDF (https://aphyr.com/data/posts/411/the-future-of-everything-is...) and an EPUB. What do you suppose their tooling looks like?

Is there a single "document containing all the words," and it updates the website, pdf, and epub whenever you change it?

What struck me was that the presentation is beautiful. It seems worth emulating. But that raises the question of what format you'd write your original words in. Do you suppose they just use Markdown files, or something more elaborate?


Replies

tmoertelyesterday at 11:24 PM

I am not the author of the site in question, but I suspect that your guess is right, and that Pandoc is the hub between the spokes.

For my blog, I write posts in Markdown. Then the build process uses Pandoc to convert the posts into web pages and, for certain pages, PDF files typeset with TeX. For example, here is a post in both web and PDF versions:

(Web) https://blog.moertel.com/posts/2024-08-23-sampling-with-sql....

(Typeset PDF) https://blog.moertel.com/images/public_html/blog/pix-2024060...

show 1 reply