Document Layout¶
This module provides formatters to control document and text layout.
-
class
simpletex.formatting.layout.Centering(inline: bool = False)¶ Bases:
simpletex.base.EnvironmentCenters all contents.
Equivalent to the LaTeX
centerenvironment.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.EnvironmentFormats contents into columns.
Equivalent to the LaTeX
multicolsenvironment.Create a new
multicolsenvironment.Automatically imports the required
multicolpackage.- number : int
- The number of columns to use.