Skip to content

Commit

Permalink
Add fontenc into incompatible packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Zipper-1 committed Mar 4, 2024
1 parent 5ac7995 commit e2ca7be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mathtranslate/process_latex.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'\}')
Expand Down

0 comments on commit e2ca7be

Please sign in to comment.