in2lambda.katex_convert.katex_convertΒΆ

Functions relating to converting LaTeX expressions into valid KaTeX.

Due to custom macros/third-party libraries/etc. it can never be guaranteed to work. It works best with simpler cases.

Functions

brace_remover

Used to remove the arguments + braces of a given LaTeX command.

delete_functions

Helper method of latex_to_katex that deletes any LaTeX expressions with no KaTeX equivalent.

latex_to_katex

Replace incompatible LaTeX functions with KaTeX compatible equivalents.

replace_functions

Helper method of latex_to_katex that replaces some LaTeX expressions with an equivalent KaTeX one.