moved to latexmk for proper toc generation

This commit is contained in:
s5260822 2025-03-22 22:02:38 +01:00
parent ea68b3204b
commit 483f168ae9

View file

@ -98,7 +98,9 @@ public class TeXUtil {
}
// Run pdflatex to generate the .pdf file
String command = "pdflatex -interaction=nonstopmode -output-directory=" + tempDir.getAbsolutePath() + " " + texFile.getAbsolutePath();
//String command = "pdflatex -interaction=nonstopmode -output-directory=" + tempDir.getAbsolutePath() + " " + texFile.getAbsolutePath();
// using latexmk instead of pdflatex to fix TOC not generating properly
String command = "latexmk -pdf -interaction=nonstopmode -outdir=" + tempDir.getAbsolutePath() + " " + texFile.getAbsolutePath();
Process process = Runtime.getRuntime().exec(command);