From b9065f46230b3808cad853c665d6085622e90a26 Mon Sep 17 00:00:00 2001 From: Tej Chajed Date: Sat, 10 Dec 2016 10:05:14 -0500 Subject: [PATCH 1/2] Pass arguments to runall through to run Allows to customize latexrun and latex cmd by passing flags. --- test/runall | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/runall b/test/runall index d14f030..a765dd9 100755 --- a/test/runall +++ b/test/runall @@ -1,3 +1,3 @@ #!/bin/sh -./run T-*.tex T-*/main.tex T-*.sh +./run "$@" T-*.tex T-*/main.tex T-*.sh From f3f0d4ab0e4cf4c4ed5d3a245c0e666895073f32 Mon Sep 17 00:00:00 2001 From: Tej Chajed Date: Sat, 10 Dec 2016 10:05:59 -0500 Subject: [PATCH 2/2] Fix parsing of xelatex's fatal error message --- latexrun | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/latexrun b/latexrun index b669d9f..a65b64f 100755 --- a/latexrun +++ b/latexrun @@ -967,7 +967,8 @@ class LaTeX(Task): """Make some standard log messages more user-friendly.""" have_undefined_reference = False for msg in msgs: - if msg.msg == '==> Fatal error occurred, no output PDF file produced!': + if (msg.msg == '==> Fatal error occurred, no output PDF file produced!' or + msg.msg == 'No pages of output.'): msg = msg._replace(typ='info', msg='Fatal error (no output file produced)') if msg.msg.startswith('[LaTeX] '): @@ -1205,6 +1206,10 @@ class LaTeXFilter: # The following messages are always preceded by a newline if lookingat('! '): return self.__errmessage() + # xelatex does not prefix this error with !. + if lookingat('No pages of output.'): + self.__consume_line() + return self.__message('error', None, 'No pages of output.') if lookingat('!pdfTeX error: '): return self.__pdftex_fail() if lookingat('Runaway '):