|
|
|
@ -54,7 +54,7 @@ public class LatexService {
|
|
|
|
|
|
|
|
|
|
private boolean generate(String filename, File dir) throws IOException, InterruptedException {
|
|
|
|
|
startProcess(new String[]{"pdflatex", filename, "--interaction=nonstopmode"}, dir, pdfLatexError);
|
|
|
|
|
startProcess(new String[]{"bibtex", filename, "--interaction=nonstopmode"}, dir, bibtexError);
|
|
|
|
|
startProcess(new String[]{"bibtex", filename}, dir, bibtexError);
|
|
|
|
|
if (startProcess(new String[]{"pdflatex", filename, "--interaction=nonstopmode"}, dir, pdfLatexError) != 0)
|
|
|
|
|
return false;
|
|
|
|
|
return checkPdf(filename, dir);
|
|
|
|
|