Skip to content

Commit a864b26

Browse files
committed
Add fontenc into incompatible packages
1 parent 5ac7995 commit a864b26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mathtranslate/process_latex.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -492,8 +492,8 @@ def replace_function(match):
492492
return pattern.sub(replace_function, latex)
493493

494494
def remove_incompatible_packages(text):
495-
incompatible_list=['axessibility']
496-
#axessibility is incompatible with xeCJK and can be removed savely
495+
incompatible_list=['axessibility','fontenc']
496+
#axessibility,fontenc is incompatible with xeCJK and can be removed safely
497497
#maybe more will be added
498498
for package in incompatible_list:
499499
pattern = re.compile(r'\\usepackage(\[[A-Za-z]*?\])?\{'+package+r'\}')

0 commit comments

Comments
 (0)