Skip to content

Commit 2c3fb21

Browse files
committed
Run pdflatex twice. Refs #749
1 parent a3f2b62 commit 2c3fb21

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

readthedocs/doc_builder/backends/sphinx.py

+2
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,8 @@ def build(self, **kwargs):
196196
# Run LaTeX -> PDF conversions
197197
pdflatex_cmds = [('pdflatex -interaction=nonstopmode %s'
198198
% tex_file) for tex_file in tex_files]
199+
# Run twice because of https://github.com/rtfd/readthedocs.org/issues/749
200+
pdf_results = run(*pdflatex_cmds)
199201
pdf_results = run(*pdflatex_cmds)
200202
else:
201203
pdf_results = (0, "No tex files found", "No tex files found")

0 commit comments

Comments
 (0)