nti.contentfragments.latex module
Implementations of content fragment transformers for latex.
-
nti.contentfragments.latex.
PlainTextToLatexFragmentConverter
(plain_text, text_scaper=u'')[source]
Attempt to convert plain-text strings into LaTeX strings
by detecting equations/expressions that could be rendered in
latex markup.
-
nti.contentfragments.latex.
cleanup_equation_tokens
(tokens)[source]
Perform cleanups on the individual tokens that make up an
equation before converting it to string form.
Returns: | A 3-tuple: (before string, tokens, after_string) |
-
nti.contentfragments.latex.
escape_tex
(text, name=u'')[source]
-
nti.contentfragments.latex.
is_equation_component
(token)[source]