in2lambda.katex_convert.katex_convert.replace_functionsΒΆ

in2lambda.katex_convert.katex_convert.replace_functions(latex_string: str) str[source]ΒΆ

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

Parameters:

latex_string – A LaTeX string to be converted into valid KaTeX.

Returns:

The same LaTeX string with some commands replaced where necessary.