forked from sagemath/sage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
src/sage/misc/latex.py: invoke default_engine() as late as possible
When we try to find the current LaTeX engine, the preferences dict will now have __options["engine"] == None to indicate that we should fall back to the default engine. In each case we check for None, and invoke default_engine() only if necessary. This allows us to query the options dict without triggering the expensive is_functional() method for the LaTeX features.
- Loading branch information
Showing
1 changed file
with
27 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters