py2latex.core

Core functionality.

Functions:

begin(environment[, options])

Akin to \begin{environment}.

end(environment)

Akin to \end{environment}.

make_caption(caption)

Akin to \caption{}.

make_label(label)

Akin to \label{}.

re_escape(string)

Escape literal backslashes for use with re.

begin(environment, options=None)[source]

Akin to \begin{environment}.

Parameters
Return type

str

end(environment)[source]

Akin to \end{environment}.

Parameters

environment (str)

Return type

str

make_caption(caption)[source]

Akin to \caption{}.

Parameters

caption (str)

Return type

str

make_label(label)[source]

Akin to \label{}.

Parameters

label (str)

Return type

str

re_escape(string)[source]

Escape literal backslashes for use with re.

See also

re.escape(), which escapes all characters treated specially be re.

Parameters

string (str)

Return type

str