moved to latexmk for proper toc generation
This commit is contained in:
parent
ea68b3204b
commit
483f168ae9
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue