py2latex.formatting

Functions:

bold(val)

Make the given value bold.

italic(val)

Make the given value italic.

latex_subscript(val)

Returns the LaTeX subscript of the given value.

latex_superscript(val)

Returns the LaTeX superscript of the given value.

underline(val)

Underline the given value.

bold(val)[source]

Make the given value bold.

Akin to textbf{string}

Parameters

val (Union[str, float])

Return type

str

Returns

The formatted string.

italic(val)[source]

Make the given value italic.

Akin to textit{string}

Parameters

val (Union[str, float])

Return type

str

Returns

The formatted string.

latex_subscript(val)[source]

Returns the LaTeX subscript of the given value.

Parameters

val (Union[str, float]) – The value to superscript.

Return type

str

latex_superscript(val)[source]

Returns the LaTeX superscript of the given value.

Parameters

val (Union[str, float]) – The value to subscript.

Return type

str

underline(val)[source]

Underline the given value.

Akin to underline{string}

Parameters

val (Union[str, float])

Return type

str

Returns

The formatted string.