Document Layout

This module provides formatters to control document and text layout.

class simpletex.formatting.layout.Centering(inline: bool = False)

Bases: simpletex.base.Environment

Centers all contents.

Equivalent to the LaTeX center environment.

Create a new centering formatter.

inline : bool
If true, the inline (\centering) version of the formatter is used. Otherwise, use the default (\begin{center}) version.
class simpletex.formatting.layout.Columns(number: int = 2)

Bases: simpletex.base.Environment

Formats contents into columns.

Equivalent to the LaTeX multicols environment.

Create a new multicols environment.

Automatically imports the required multicol package.

number : int
The number of columns to use.