Currently I'm reading one of the books available on http://inventwithpython.com/. How Al is able to produce such beautiful PDFs? What free and open-source software you can recommend (I use windows)?
It's definitely LaTex. You can find some very nice LaTex templates in: <a href="http://www.latextemplates.com/" rel="nofollow">http://www.latextemplates.com/</a>. See this template for example:
<a href="http://www.latextemplates.com/templates/books/2/book_2.pdf" rel="nofollow">http://www.latextemplates.com/templates/books/2/book_2.pdf</a>
I don't know what the author used, but the typical solution to this is LaTeX:
<a href="http://www.latex-project.org/" rel="nofollow">http://www.latex-project.org/</a>
That reminds me of using Docbook to write the book, then using the various transformation engines to turn the docbook into PDF. I setup some docbook documentation that just used xsltproc to generate HTML and PDF from the same source. <a href="http://stackoverflow.com/questions/2615002/how-to-generate-pdf-from-docbook-5-0" rel="nofollow">http://stackoverflow.com/questions/2615002/how-to-generate-p...</a> has some notes about the process.<p>For my part, I enjoyed the semantic markup it gave for something as big as a book, with auto-generating index and glossary as well. It's a lot of work, but the output reflects it. Looking at the HTML in the first chapter there, the spans with "term" and "menuitem" make me think something like docbook is going on behind this too.
I've seen much more beautifully crafted books in Latex, compared to that.<p>Another (free-software) solution, embraced by people like Andrew Tanenbaum, is GNU Troff (<a href="http://www.gnu.org/software/groff/" rel="nofollow">http://www.gnu.org/software/groff/</a>).