From 2ea4d9eaa99477cc248fd10bb049925d32806c1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Labb=C3=A9?= Date: Thu, 4 Nov 2021 22:55:51 +0100 Subject: [PATCH] 32650: fixing two doctests now that we latex().require() it when we use it --- src/sage/misc/latex.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sage/misc/latex.py b/src/sage/misc/latex.py index 2c41565519a..5d5ac4e6fb3 100644 --- a/src/sage/misc/latex.py +++ b/src/sage/misc/latex.py @@ -707,7 +707,7 @@ def _run_latex_(filename, debug=False, density=150, engine=None, png=False, do_i sage: file = os.path.join(SAGE_TMP, "temp.tex") sage: with open(file, 'w') as O: ....: _ = O.write(_latex_file_([ZZ['x'], RR])) - sage: _run_latex_(file) # random - depends on whether latex is installed + sage: _run_latex_(file) # random, optional - latex 'dvi' """ if engine is None: @@ -1965,7 +1965,7 @@ def png(x, filename, density=150, debug=False, EXAMPLES:: sage: from sage.misc.latex import png - sage: png(ZZ[x], os.path.join(SAGE_TMP, "zz.png")) # random - error if no latex + sage: png(ZZ[x], os.path.join(SAGE_TMP, "zz.png")) # random, optional - latex """ if not pdflatex: engine = "latex"