diff options
| author | Sebastian Kuhnert | 2009-06-02 14:51:19 +0000 |
|---|---|---|
| committer | Sebastian Kuhnert | 2009-06-02 14:51:19 +0000 |
| commit | 13e30a050c500c515031a586daf4aa1ced8f0d78 (patch) | |
| tree | 45c48be4ba4d5427f1adbe7d2efc22f46ccca47f /texall | |
| parent | 676242329ec5f59a109c5d1e233b86aee3cae6a1 (diff) | |
| download | exercisesheets-13e30a050c500c515031a586daf4aa1ced8f0d78.tar.gz exercisesheets-13e30a050c500c515031a586daf4aa1ced8f0d78.tar.bz2 exercisesheets-13e30a050c500c515031a586daf4aa1ced8f0d78.zip | |
texall script: work around a bug in auctex's error parser
Diffstat (limited to 'texall')
| -rwxr-xr-x | texall | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -813,6 +813,7 @@ def runtex(tex, texname, realname, dirname, reason=""): outf = None else: def outf(d): + d = re_fixemacserrorshowing.sub("", d) return re_rmligsfile.sub("\\1.tex", d) if texname != realname: run([tex, "-interaction", opts.interactionmode, "-jobname", texname[:-4], realname], dirname, outf=outf, reason=reason) @@ -920,7 +921,7 @@ try: re_graphics = re.compile('\\\\includegraphics(\\[.*?\\])?\\{([^}]*)\\}') re_DTLdep = re.compile('\\\\DTLload(rawdb|db)\\{.*?\\}\\{([^}]*)\\}') - re_bibliography = re.compile('\\\\bibliography\\{([^}]*)\\}') + re_bibliography = re.compile('^[^%\n\r]*\\\\bibliography\\{([^}]*)\\}', re.M) re_commawhitespace = re.compile('\\s*,\\s*') @@ -932,6 +933,7 @@ try: re_error = re.compile('^! ', re.M) re_rmligsfile = re.compile("([^/ ]+)-rmligs\\.tex") + re_fixemacserrorshowing = re.compile(" \(Web2C [0-9.]*\)") if __name__ == "__main__": #import cProfile |
