Commit 1f712ba4 authored by Glenn Walbran's avatar Glenn Walbran

Generate pdf files twice to ensure table of contents is populated

parent 96d7063a
......@@ -149,10 +149,12 @@ latex: fetchtranslations
"(use \`make latexpdf' here to do that automatically)."
# build the pdf twice to ensure the table of contents is generated
latexpdf: latex
@$(foreach TRANSLATION,$(TRANSLATIONS), \
echo "Translation [$(TRANSLATION)]..."; \
sed -i s/,dvipdfmx// $(BUILDDIR)/latex/$(TRANSLATION)/$(MAHARA)/Mahara.tex; \
$(MAKE) PDFLATEX="xelatex -halt-on-error -file-line-error" -C $(BUILDDIR)/latex/$(TRANSLATION)/$(MAHARA) all-pdf|grep -P -A2 ":[0-9]+:\ .*|Error:"; \
$(MAKE) PDFLATEX="xelatex -halt-on-error -file-line-error" -C $(BUILDDIR)/latex/$(TRANSLATION)/$(MAHARA) all-pdf|grep -P -A2 ":[0-9]+:\ .*|Error:"; \
echo "---------------"; \
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment