Hacker News new | ask | show | jobs
by tuomosipola 2780 days ago
Self-published books often have horrible layouts and graphical design, all-around. Thankfully basic LaTeX styles are quite decent and do their job.

Casas's Data Science Live Book looks nice with its basic LaTeX style, I think.

1 comments

Thanks! All the magic for the layout is thanks to LaTeX and the use of the R package Bookdown: https://bookdown.org/yihui/bookdown/

Bookdown provides a template to produce the pdf, and you can modify later on (for example customizing the table of contents, image positions, etc)

You write the book once, and it can be exported to html, pdf, epub (and kindle)...

These multiformat outputs have come a long way in the last five years, and it's good to see them working. Thanks for the link! The automated approach works best for technical books, just as in your case. There are still some esoteric layout features that are very difficult to automate.