in2lambda.katex_convert.katex_convert.brace_removerΒΆ

in2lambda.katex_convert.katex_convert.brace_remover(latex_string: str, brace_start_index: int) str[source]ΒΆ

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

This is used as part of delete_functions to remove any deleted functions arguments.

Parameters:
  • latex_string – A LaTeX string to be converted into KaTeX.

  • brace_start_index – The indes of the start brace following a command.

Returns:

The same string but with the brace at the start index, any arguments and the end brace removed.