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.
- 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.
- name = 'textit'¶
pyexlatex.models.format.text.linespacing module¶
- class pyexlatex.models.format.text.linespacing.LineSpacing(line_spacing)[source]¶
Bases:
pyexlatex.models.item.ItemBase
- 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
pyexlatex.models.format.text.monospace module¶
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.
- 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.
- name = 'textsc'¶
pyexlatex.models.format.text.text module¶
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.
- name = 'underline'¶