pyexlatex.models.format.text package

Subpackages

Submodules

pyexlatex.models.format.text.bold module

class pyexlatex.models.format.text.bold.Bold(contents, **kwargs)[source]

Bases: pyexlatex.models.section.base.TextAreaMixin, pyexlatex.models.item.SimpleItem

Makes text bold.

__init__(contents, **kwargs)[source]
name = 'textbf'

pyexlatex.models.format.text.italics module

class pyexlatex.models.format.text.italics.Italics(contents, **kwargs)[source]

Bases: pyexlatex.models.section.base.TextAreaMixin, pyexlatex.models.item.SimpleItem

Italicizes text.

__init__(contents, **kwargs)[source]
name = 'textit'

pyexlatex.models.format.text.linespacing module

class pyexlatex.models.format.text.linespacing.LineSpacing(line_spacing)[source]

Bases: pyexlatex.models.item.ItemBase

__init__(line_spacing)[source]
property name
pyexlatex.models.format.text.linespacing.latex_line_spacing_from_logical_line_spacing(line_spacing)[source]

Latex for some reason has 1.65 as double line spacing, 1.325 as one and a half line spacing, and 1 as single spacing. Take an input on a normal scale (2 is double spaced, 1 is single space, 1.5 is one and a half spacing, and so on), and convert to the latex scale. Args:

line_spacing:

Returns:

Return type

float

pyexlatex.models.format.text.monospace module

class pyexlatex.models.format.text.monospace.Monospace(content, **kwargs)[source]

Bases: pyexlatex.models.item.SimpleItem

Pass text to render it in a monospace font.

__init__(content, **kwargs)[source]
name = 'texttt'

pyexlatex.models.format.text.nohyphens module

class pyexlatex.models.format.text.nohyphens.NoHyphens(contents, **kwargs)[source]

Bases: pyexlatex.models.item.SimpleItem

Prevents a line break within text, where a hyphen would normally be placed. However when it is used alone it will make text run over the margin. Use NoLineBreak to avoid this.

__init__(contents, **kwargs)[source]
name = 'nohyphens'

pyexlatex.models.format.text.smallcaps module

class pyexlatex.models.format.text.smallcaps.SmallCaps(contents, **kwargs)[source]

Bases: pyexlatex.models.section.base.TextAreaMixin, pyexlatex.models.item.SimpleItem

Makes text all caps, but with originally capital letters slightly larger than other letters.

__init__(contents, **kwargs)[source]
name = 'textsc'

pyexlatex.models.format.text.text module

class pyexlatex.models.format.text.text.Text(env, modifiers=None)[source]

Bases: pyexlatex.models.item.SimpleItem

Gets back to raw text, useful to have normal text formatting inside of equations.

__init__(env, modifiers=None)[source]
name = 'text'

pyexlatex.models.format.text.underline module

class pyexlatex.models.format.text.underline.Underline(contents, **kwargs)[source]

Bases: pyexlatex.models.section.base.TextAreaMixin, pyexlatex.models.item.SimpleItem

Adds an underline to text.

__init__(contents, **kwargs)[source]
name = 'underline'