From a105b90493c1da713659ce7a135db31e2d0c53fb Mon Sep 17 00:00:00 2001 From: Maeve Andrews Date: Mon, 10 Jan 2022 15:19:30 -0500 Subject: [PATCH] Run latexpdf twice to fix TOC --- deploy/build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deploy/build b/deploy/build index 49330024e..676cfb6c5 100755 --- a/deploy/build +++ b/deploy/build @@ -16,7 +16,9 @@ do_build() { make html # Due to remote SVG includes not working (they didn't work on RTD either), # the LaTeX build will pause and wait for the user to press enter. It will - # also exit with an error status. + # also exit with an error status. Because of this failure, the TOC will + # not be correctly generated on the first run, and we must do it twice. + yes '' | make latexpdf || : yes '' | make latexpdf || : mkdir -p build