pylatex.section

This module implements the section type classes.

class Section(title, numbering=None, **kwargs)[source]

Bases: pylatex.base_classes.containers.Container

A class that represents a section.

Parameters:
  • title (str) – The section title.
  • numbering (bool) – Add a number before the section title.
numbering = True[source]

Number the sections, by changing the Section class default all subclasses will also have the new default.

class Subsection(title, numbering=None, **kwargs)[source]

Bases: pylatex.section.Section

A class that represents a subsection.

Parameters:
  • title (str) – The section title.
  • numbering (bool) – Add a number before the section title.
numbering = True
class Subsubsection(title, numbering=None, **kwargs)[source]

Bases: pylatex.section.Section

A class that represents a subsubsection.

Parameters:
  • title (str) – The section title.
  • numbering (bool) – Add a number before the section title.
numbering = True