pylatex.math¶
This module implements the classes that deal with math.
-
class
Alignat(aligns=2, numbering=True, escape=None)[source]¶ Bases:
pylatex.base_classes.containers.EnvironmentClass that represents a aligned equation environment.
Parameters:
-
class
Math(*, inline=False, data=None, escape=None)[source]¶ Bases:
pylatex.base_classes.containers.ContainerA class representing a math environment.
Parameters:
-
class
VectorName(name)[source]¶ Bases:
pylatex.base_classes.command.CommandA class representing a named vector.
Parameters: name (str) – Name of the vector
-
class
Matrix(matrix, *, mtype='p', alignment=None)[source]¶ Bases:
pylatex.base_classes.containers.EnvironmentA class representing a matrix.
Parameters: - matrix (
numpy.ndarrayinstance) – The matrix to display - mtype (str) – What kind of brackets are used around the matrix. The different options and their corresponding brackets are: p = ( ), b = [ ], B = { }, v = | |, V = || ||
- alignment (str) – How to align the content of the cells in the matrix. This is
cby default.
References
-
omit_if_empty= False¶
- matrix (