Skip to content

Commit

Permalink
Latex output file must end in .tex
Browse files Browse the repository at this point in the history
  • Loading branch information
bdarnell committed Aug 11, 2012
1 parent c9f0a90 commit 90617df
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 12 additions & 1 deletion website/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,16 @@ coverage:
sphinx-build -b coverage ${SPHINXOPTS} sphinx/build/coverage
cat sphinx/build/coverage/python.txt

.PHONY: latex
latex:
sphinx-build -b latex $(SPHINXOPTS) sphinx/build/latex

# Building a pdf requires a latex installation. For macports, the needed
# packages are texlive-latex-extra and texlive-fonts-recommended.
# The output is in sphinx/build/latex/tornado.pdf
.PHONY: pdf
pdf: latex
cd sphinx/build/latex && pdflatex -interaction=nonstopmode tornado.tex

clean:
rm -rf sphinx/build
rm -rf sphinx/build
2 changes: 1 addition & 1 deletion website/sphinx/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,5 @@
)

latex_documents = [
('index', 'tornado', 'Tornado Documentation', 'Facebook', 'manual', False),
('index', 'tornado.tex', 'Tornado Documentation', 'Facebook', 'manual', False),
]

0 comments on commit 90617df

Please sign in to comment.