DEV Community

Cover image for Omfg books have tech stacks now: how I used web technologies to layout and print a book

Omfg books have tech stacks now: how I used web technologies to layout and print a book

Manuel Bieh on August 10, 2019

Sorry for the title, I just had to quote Kitze here: Kitze @thekitze ...
Collapse
 
learnbyexample profile image
Sundeep • Edited

The legacy gitbook actually did what the name meant, it gives an option to download the book in pdf/epub/mobi format (though imo only pdf is readable for technical books with figures and code snippets)

For my books, I use pandoc+xelatex to convert Github style markdown to pdf, I searched stackoverflow sites for tex settings and I've now settled into a flow that works for me. I wrote an article too, if you'd like to compare with your flow:

Collapse
 
manuelbieh profile image
Manuel Bieh • Edited

I was not happy with the layout/design of the generated PDF, that’s why I decided to build my own converter 😉

Collapse
 
learnbyexample profile image
Sundeep

yeah agree, legacy gitbook still works, but isn't good enough for publishing

Collapse
 
ahferroin7 profile image
Austin S. Hemmelgarn

Yeah, CSS support for print media tends to get forgotten about by a lot of web developers. It's a whole lot easier to use than TeX (which was originally designed for this type of thing) though unless you need really complicated typesetting functionality.

Collapse
 
hexrcs profile image
Xiaoru Li • Edited

True that TeX is designed specifically for typesetting printed media, but it's just too complex to use if you simply want to get things done and don't plan to invest time into learning it systematically. Debugging TeX is a nightmare thanks to its cryptic error messages.

Collapse
 
vimmer9 profile image
Damir Franusic

LaTeX is not so complex and you should consider investing some time in it if you intend to keep writing books.

It may be harder to debug its output, but it all depends on numerous variables and sheer number of plugins being used. I am not an expert but have written technical documentation in LaTeX and used Tikz scripting language for drawing schematics.

It was a steep learning curve, but it really is the most powerful publishing tool you can find.

If you ever decide to write another book, give LaTeX a try.

Congratulations on Your book, it's an admirable achievement.

Collapse
 
andrewdavis2 profile image
AndrewDavis2 • Edited

Interesting enough. I think it will be worth reading in the future. I've always liked technical books. The author's respect for such an article design is a higher level when you want to read and express your emotions. By the way regarding emotions, I recommend edusson legit - an analysis of an essay writing site is provided. essayservicescanner resource reviews many essay writing sites. After reading the general information and criteria, features and reviews, I chose edusson and regularly use and recommend it!