Text Formatting¶
This module provides formatters to perform basic text formatting.
-
class
simpletex.formatting.text.
Bold
(inline: bool = False)¶ Bases:
simpletex.formatting.text.SimpleFormatter
Applies bold formatting to text.
Create a new bold formatter.
- inline : bool
- If true, the inline (
\bfshape
) version of the formatter is used. Otherwise, use the default (\textbf{}
) version.
-
class
simpletex.formatting.text.
Italics
(inline: bool = False)¶ Bases:
simpletex.formatting.text.SimpleFormatter
Applies italic formatting to text.
Create a new italics formatter.
- inline : bool
- If true, the inline (
\itshape
) version of the formatter is used. Otherwise, use the default (\textit{}
) version.
-
class
simpletex.formatting.text.
Underline
¶ Bases:
simpletex.formatting.text.SimpleFormatter
Applies underline formatting to text.
Create a new underline formatter.
Note that inline formatting is not supported for underlines.
-
class
simpletex.formatting.text.
SmallCaps
(inline: bool = False)¶ Bases:
simpletex.formatting.text.SimpleFormatter
Applies small capital formatting to text.
Create a new small capital formatter.
- inline : bool
- If true, the inline (
\scshape
) version of the formatter is used. Otherwise, use the default (\textsc{}
) version.
-
class
simpletex.formatting.text.
Emphasis
(inline: bool = False)¶ Bases:
simpletex.formatting.text.SimpleFormatter
Applies emphasis formatting to text.
Create a new emphasis formatter.
- inline : bool
- If true, the inline (
\em
) version of the formatter is used. Otherwise, use the default (\emph{}
) version.