Converting Unicode to LaTeX notation (pwkit.unicode_to_latex
)¶
unicode_to_latex - what it says
Provides unicode_to_latex(u)
, unicode_to_latex_bytes(u)
, and
unicode_to_latex_string(u)
.
unicode_to_latex_bytes
returns ASCII bytes that can be fed to LaTeX to
reproduce the Unicode string ‘u’ as closely as possible.
unicode_to_latex_string
returns a Unicode string rather than bytes.
unicode_to_latex
returns the str
type: bytes on Python 2, Unicode on
Python 3.