aboutsummaryrefslogtreecommitdiff
path: root/texall
diff options
context:
space:
mode:
authorSebastian Kuhnert2009-06-02 14:51:19 +0000
committerSebastian Kuhnert2009-06-02 14:51:19 +0000
commit13e30a050c500c515031a586daf4aa1ced8f0d78 (patch)
tree45c48be4ba4d5427f1adbe7d2efc22f46ccca47f /texall
parent676242329ec5f59a109c5d1e233b86aee3cae6a1 (diff)
downloadexercisesheets-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-xtexall4
1 files changed, 3 insertions, 1 deletions
diff --git a/texall b/texall
index 47ad016..ad7fb04 100755
--- a/texall
+++ b/texall
@@ -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