Using cog to override conf.py settings on a per-book basis. PDF and LaTeX tweaks