Skip to content

Instantly share code, notes, and snippets.

@sstirlin
Last active August 29, 2015 13:56
Show Gist options
  • Save sstirlin/9203441 to your computer and use it in GitHub Desktop.
Save sstirlin/9203441 to your computer and use it in GitHub Desktop.

How to remove blank pages from Sphinx LaTex output

Sphinx assumes that you will be duplex printing, hence it adds several blank pages in its LaTex output.

To avoid these blank pages, edit the file source/conf.py and add the following lines to the latex_elements dict:

latex_elements = {
    'classoptions': ',openany,oneside',
    'babel': '\\usepackage[english]{babel}',
    # more stuff below
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment