diff --git a/mathtranslate/process_latex.py b/mathtranslate/process_latex.py index e2c0637..3d14b8a 100644 --- a/mathtranslate/process_latex.py +++ b/mathtranslate/process_latex.py @@ -492,8 +492,8 @@ def replace_function(match): return pattern.sub(replace_function, latex) def remove_incompatible_packages(text): - incompatible_list=['axessibility'] - #axessibility is incompatible with xeCJK and can be removed savely + incompatible_list=['axessibility','fontenc'] + #axessibility,fontenc is incompatible with xeCJK and can be removed savely #maybe more will be added for package in incompatible_list: pattern = re.compile(r'\\usepackage(\[[A-Za-z]*?\])?\{'+package+r'\}')