pyladoc.latex.to_ascii#

pyladoc.latex.to_ascii(text)#

Replaces/escapes often used unicode characters in LaTeX code or text with its LaTeX ascii equivalents.

Parameters:

text (str) – The text to convert.

Return type:

str

Returns:

The escaped text.