Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
32650: fixing two doctests now that we latex().require() it when we u…
Browse files Browse the repository at this point in the history
…se it
  • Loading branch information
seblabbe committed Nov 4, 2021
1 parent c8330fe commit 2ea4d9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sage/misc/latex.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 2ea4d9e

Please sign in to comment.