Merge lp:~mitya57/ubuntu-packaging-guide/lp1095513 into lp:ubuntu-packaging-guide

Proposed by Dmitry Shachnev
Status: Merged
Merged at revision: 263
Proposed branch: lp:~mitya57/ubuntu-packaging-guide/lp1095513
Merge into: lp:ubuntu-packaging-guide
Diff against target: 24 lines (+2/-1)
2 files modified
conf.py (+1/-1)
debian/changelog (+1/-0)
To merge this branch: bzr merge lp:~mitya57/ubuntu-packaging-guide/lp1095513
Reviewer Review Type Date Requested Status
Andrew Starr-Bochicchio Approve
Review via email: mp+145061@code.launchpad.net

Commit message

Add a work-around for the blank pages in PDF bug (LP: #1095513).

Description of the change

I've added a hack that adds "oneside,openany" to the LaTeX documentclass. Since there is no *direct* way to add options there, I've added those to the latex_font_size property.

The idea is taken from http://stackoverflow.com/questions/5422997/sphinx-docs-remove-blank-pages-from-generated-pdfs.

The person who asked that question says that after this workaround, the PDF file "only [had] the odd-numbered pages of my document", so I want other to verify that this is not the case for them (and also that this works with different languages and Sphinx versions.

To post a comment you must log in.
Revision history for this message
Andrew Starr-Bochicchio (andrewsomething) wrote :

Thanks for tracking this down! It looks good to me in both the English and Spanish versions.

review: Approve
Revision history for this message
Dmitry Shachnev (mitya57) wrote :

This is now causing this warning:
Package Fancyhdr Warning: \fancyfoot's `E' option without twoside option is use less on input line 8.

I'll try to look at that later (but seems to be a minor issue).

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'conf.py'
2--- conf.py 2012-05-09 01:46:14 +0000
3+++ conf.py 2013-01-26 11:57:23 +0000
4@@ -185,7 +185,7 @@
5 #latex_paper_size = 'letter'
6
7 # The font size ('10pt', '11pt' or '12pt').
8-#latex_font_size = '10pt'
9+latex_font_size = '10pt,oneside,openany'
10
11 # Grouping the document tree into LaTeX files. List of tuples
12 # (source start file, target name, title, author, documentclass [howto/manual]).
13
14=== modified file 'debian/changelog'
15--- debian/changelog 2013-01-03 02:50:08 +0000
16+++ debian/changelog 2013-01-26 11:57:23 +0000
17@@ -3,6 +3,7 @@
18 [ Dmitry Shachnev ]
19 * Makefile: fix wrong links to some resources in singlehtml builds.
20 * auto-pkg-test.rst: Updated links for raring.
21+ * Add a work-around for the blank pages in PDF bug (LP: #1095513).
22
23 [ Daniel Holbach ]
24 * Document where to find a list of required autopkgtests and where

Subscribers

People subscribed via source and target branches