Skip to content

Commit 779268a

Browse files
authored
Merge pull request #345 from pdebuyl/fix_papersize
fix the sphinx settings for papersize
2 parents d7d7d31 + d1aaccc commit 779268a

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

Makefile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,8 @@
55
PYTHON = python
66
SPHINXOPTS =
77
SPHINXBUILD = $(PYTHON) -m sphinx
8-
PAPER = a4
98

10-
# Internal variables.
11-
PAPEROPT_a4 = -D latex_paper_size=a4
12-
PAPEROPT_letter = -D latex_paper_size=letter
13-
ALLSPHINXOPTS = -d build/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
9+
ALLSPHINXOPTS = -d build/doctrees $(SPHINXOPTS) .
1410

1511

1612
.PHONY: help clean html web pickle htmlhelp latex changes linkcheck zip

conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,7 @@ def __init__(self, **options):
346346
"""
347347

348348
latex_elements = {
349+
'papersize': 'a4paper',
349350
'preamble': preamble,
350351
'fontpkg': '\\usepackage{lmodern}',
351352
'fncychap': r'''%

0 commit comments

Comments
 (0)