A recent post here described a process using Markdown, InDesign, and some custom build scripts:
http://journal.stuffwithstuff.com/2021/07/29/640-pages-in-15-months/
In particular, it introduced some interesting workflows around scripting InDesign that I'd not heard of.
I'm guessing that the typesetting for each book is as unique the book itself! What tools have you found success with? Markdown? AsciiDoc? Microsoft Word? LaTeX? Something else entirely?
I'd probably try templates [1] already available if I needed printable version.
It's easy to render PDF and EPUB, and Asciidoc syntax is not much of a jump from Markdown either. The biggest challenge is learning the correct name of the typesetting feature that you need, so you know what to look for in the Asciidoctor reference. :-)
So my process was as follows:
1. 1 "parent" Asciidoc manuscript, with individual chapters written in separate files and included with "include::"
2. Write sample code, marking each code block with Asciidoctor fencing, and then reference each code block from the manuscript. Asciidoctor will then include the code and add syntax highlighting etc. I also try to write the example code inside unit tests, so it can be tested every time the book is built.
3. Wrap the process in some sort of build tool. I chose Maven (there's an Asciidoctor plugin for Maven). The process builds the book PDF/EPUB, tests the book sample code, and builds any associated artifacts (like an example .zip file).
Now I'm writing a new short book, and this time I'm trying out Pandoc->PDF (via LaTeX). The learning curve is pretty steep, and the LaTeX errors are a bit WTF, but the eisvogel template (as also recommended by asicsp in this thread) is a great way to have something presentable very quickly.
We generated the book through Leanpub, so we relied on their typesetting choices entirely.
In terms of the writing process we (three co-authors) used "feature" branches on GitHub and pull requests for each chapter, i.e., once a chapter was considered done, the other two authors reviewed and edited the result.
Didn't have a publisher to deal with
Wasted 3months of my time with Apress who really wanted to publish my python book through them and then backed out after 3 months saying "OMG your book is similar to some of our books"
Ans their choice of formatting was strictly Word and they'd even given a word file template and I actually had liked that template!!
On another unrelated note, the pay they were going to give me was low. My Go book earned me much more than they were going to pay me upfront+royalty over 5yrs within 5yrs.
It's a hard problem.