Features for testing the presence of latex and equivalent programs

class sage.features.latex.LaTeXPackage(name, filename, **kwds)

Bases: sage.features.latex.TeXFile

A sage.features.Feature describing the presence of a LaTeX package (.sty file).

EXAMPLES:

sage: from sage.features.latex import LaTeXPackage
sage: LaTeXPackage('graphics').is_present()  # optional - pdflatex
FeatureTestResult('latex_package_graphics', True)
class sage.features.latex.TeXFile(name, filename, **kwds)

Bases: sage.features.StaticFile

A sage.features.Feature describing the presence of a TeX file

EXAMPLES:

sage: from sage.features.latex import TeXFile
sage: TeXFile('x', 'x.tex').is_present()  # optional: pdflatex
FeatureTestResult('x', True)
sage: TeXFile('nonexisting', 'xxxxxx-nonexisting-file.tex').is_present()  # optional - pdflatex
FeatureTestResult('nonexisting', False)
absolute_filename()

The absolute path of the file.

EXAMPLES:

sage: from sage.features.latex import TeXFile
sage: feature = TeXFile('latex_class_article', 'article.cls')
sage: feature.absolute_filename()  # optional - pdflatex
'.../latex/base/article.cls'
sage.features.latex.all_features()
class sage.features.latex.latex

Bases: sage.features.Executable

A Feature describing the presence of latex

EXAMPLES:

sage: from sage.features.latex import latex
sage: latex().is_present()             # optional - latex
FeatureTestResult('latex', True)
is_functional()

Return whether latex in the path is functional.

EXAMPLES:

sage: from sage.features.latex import latex
sage: latex().is_functional()             # optional - latex
FeatureTestResult('latex', True)
class sage.features.latex.lualatex

Bases: sage.features.Executable

A Feature describing the presence of lualatex

EXAMPLES:

sage: from sage.features.latex import lualatex
sage: lualatex().is_present()             # optional - lualatex
FeatureTestResult('lualatex', True)
class sage.features.latex.pdflatex

Bases: sage.features.Executable

A Feature describing the presence of pdflatex

EXAMPLES:

sage: from sage.features.latex import pdflatex
sage: pdflatex().is_present()             # optional - pdflatex
FeatureTestResult('pdflatex', True)
class sage.features.latex.xelatex

Bases: sage.features.Executable

A Feature describing the presence of xelatex

EXAMPLES:

sage: from sage.features.latex import xelatex
sage: xelatex().is_present()             # optional - xelatex
FeatureTestResult('xelatex', True)