pyexlatex.letter package¶
Submodules¶
pyexlatex.letter.closing module¶
- class pyexlatex.letter.closing.Closing(closing)[source]¶
Bases:
pyexlatex.models.section.base.TextAreaMixin
,pyexlatex.models.item.SimpleItem
- name = 'closing'¶
pyexlatex.letter.enclosures module¶
- class pyexlatex.letter.enclosures.Enclosures(encl)[source]¶
Bases:
pyexlatex.models.section.base.TextAreaMixin
,pyexlatex.models.item.SimpleItem
- name = 'encl'¶
pyexlatex.letter.letter module¶
pyexlatex.letter.letterdocument module¶
- class pyexlatex.letter.letterdocument.LetterDocument(content, contact_info=None, to_contact_info='', signer_name=None, closing_indent='0pt', salutation='Dear Sir or Madam:', closing='Sincerely,', ps=None, enclosures=None, packages=None, pre_env_contents=None, font_size=None, doc_class_options=None, pre_output_func=None)[source]¶
Bases:
pyexlatex.models.document.DocumentBase
The main high-level document class for creating letters.
- __init__(content, contact_info=None, to_contact_info='', signer_name=None, closing_indent='0pt', salutation='Dear Sir or Madam:', closing='Sincerely,', ps=None, enclosures=None, packages=None, pre_env_contents=None, font_size=None, doc_class_options=None, pre_output_func=None)[source]¶
- Parameters
content¶ (
Union
[IsLatexItemMixin
,str
,Sequence
[Union
[IsLatexItemMixin
,str
]]]) –data_cleanup_func¶ – should accept DocumentSetupData and modify it in place. This is called just before using the data.
pre_output_func¶ (
Optional
[Callable
]) – function which modifies the latex string before outputting it. The function should accepts a single argument which is a string of the entire latex contents, and it should return a string which will be used as the latex contents for output.
- name = 'document'¶
pyexlatex.letter.opening module¶
- class pyexlatex.letter.opening.Opening(opening)[source]¶
Bases:
pyexlatex.models.section.base.TextAreaMixin
,pyexlatex.models.item.SimpleItem
- name = 'opening'¶
pyexlatex.letter.ps module¶
- class pyexlatex.letter.ps.PS(ps)[source]¶
Bases:
pyexlatex.models.section.base.TextAreaMixin
,pyexlatex.models.item.SimpleItem
- name = 'ps'¶
pyexlatex.letter.signature module¶
- class pyexlatex.letter.signature.Signature(signer)[source]¶
Bases:
pyexlatex.models.section.base.TextAreaMixin
,pyexlatex.models.item.SimpleItem
- name = 'signature'¶