Skip to content

Commit

Permalink
Run pdflatex three times during PDF build
Browse files Browse the repository at this point in the history
We had a report in #1557 that creating the index for the PDF does not work and
that it might be related to how often we run `pdflatex` during the build.

Related #1557.
  • Loading branch information
gregmuellegger committed Aug 22, 2015
1 parent f70e4a5 commit a6c7fc7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions readthedocs/doc_builder/backends/sphinx.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,10 @@ def build(self, **kwargs):
cmd_ret = self.build_env.run_command_class(
cls=LatexBuildCommand, cmd=cmd, cwd=latex_cwd, warn_only=True)
pdf_commands.append(cmd_ret)
for cmd in pdflatex_cmds:
cmd_ret = self.build_env.run_command_class(
cls=LatexBuildCommand, cmd=cmd, cwd=latex_cwd, warn_only=True)
pdf_commands.append(cmd_ret)
for cmd in pdflatex_cmds:
cmd_ret = self.build_env.run_command_class(
cls=LatexBuildCommand, cmd=cmd, cwd=latex_cwd, warn_only=True)
Expand Down

0 comments on commit a6c7fc7

Please sign in to comment.