Menu

Building the Book

Steven F. Lott

The book requires Sphinx version 1.0.7 at the very least. http://sphinx,pocoo.org

Python 2.6 or Python 2.7 should both work.

For PDF, I'm a fan of TexShopLive distributions.
I used http://www.tug.org/mactex/2011/ There are others, and they should all be reasonably compatible.

HTML

This is all that's required.

sphinx-build -b html source build/html

PDF

sphinx-build -b latex source build/latex

python fix_latex.py build/latex/ProgrammingforNon-Programmers.tex

Once that's done, then the TexShop Live XeLaTex should create the PDF. Sphinx creates a Makefile, but I've never used it and don't know if it works.

The preamble in the config.py references the the BiauKai Macintosh fonts for the Chinese characters, This may have to be changed, depending on the installed fonts on your computer.


Related

Wiki: Building Skills in Programming