From 49146d0dbd45a811a6b6f409d31bb222bfaaeafa Mon Sep 17 00:00:00 2001 From: Klaus Thoden Date: Thu, 31 May 2018 15:29:00 +0200 Subject: [PATCH] A small math fix --- eoatex2imxml.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/eoatex2imxml.py b/eoatex2imxml.py index eb6a80e..ac0475a 100755 --- a/eoatex2imxml.py +++ b/eoatex2imxml.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 # -*- coding: utf-8; mode: python -*- -# Time-stamp: <2018-05-31 12:25:32 (kthoden)> +# Time-stamp: <2018-05-31 15:40:12 (kthoden)> # license? __version__= "1.0" @@ -762,6 +762,10 @@ def cleanup(): progress(intEOAineqnumber, len(xmlEOAineqs),"Processing EOAineq %s of %s." % (intEOAineqnumber, len(xmlEOAineqs))) strSourceCode = os.linesep.join([s for s in strSourceCode.splitlines() if s]) + + # this occurred once in sources 11 + strSourceCode = strSourceCode.replace(r"\@root", r"\root") + strTeXEquations = strTeXEquations + "$" + strSourceCode + "$\n\\newpage\n" # Add intEOAineqRunningOrder : Filename to dictionary strFilename = "EOAineq_" + str(intChapterNumber) + "_" + str(intEOAineqnumber)