Features for testing the presence of latex
and equivalent programs#
- class sage.features.latex.LaTeX(*args, **kwds)#
Bases:
Executable
A
Feature
describing the presence oflatex
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.LaTeXPackage(*args, **kwds)#
Bases:
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 - latex FeatureTestResult('latex_package_graphics', True)
- class sage.features.latex.TeXFile(*args, **kwds)#
Bases:
StaticFile
A
sage.features.Feature
describing the presence of a TeX fileEXAMPLES:
sage: from sage.features.latex import TeXFile sage: TeXFile('x', 'x.tex').is_present() # optional - latex FeatureTestResult('x', True)
- 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 - latex '.../latex/base/article.cls'
- sage.features.latex.all_features()#
- class sage.features.latex.latex(*args, **kwds)#
Bases:
LaTeX
A
Feature
describing the presence oflatex
EXAMPLES:
sage: from sage.features.latex import latex sage: latex().is_present() # optional - latex FeatureTestResult('latex', True)
- class sage.features.latex.lualatex(*args, **kwds)#
Bases:
LaTeX
A
Feature
describing the presence oflualatex
EXAMPLES:
sage: from sage.features.latex import lualatex sage: lualatex().is_present() # optional - lualatex FeatureTestResult('lualatex', True)