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)