# HG changeset patch
# User J. H. Palmieri <palmieri@math.washington.edu>
# Date 1324429568 28800
# Node ID 8f7bfe31c9dbce64102fc70526a8062d9a906f9a
# Parent 3fcf20d4cc7711b795be39b19e2688be2b2b3076
#12156: reword a few docstrings
diff --git a/sage/misc/latex.py b/sage/misc/latex.py
a
|
b
|
class LatexExpr(str): |
377 | 377 | Normally, objects of this class are created by a :func:`latex` call. It is |
378 | 378 | also possible to generate :class:`LatexExpr` directly from a string, which |
379 | 379 | must contain valid LaTeX code for typesetting in math mode (without dollar |
380 | | signs). In the Sage Notebook, use :func:`pretty_print` or the "Typeset" |
381 | | checkbox to actually see the typeset LaTeX code. |
| 380 | signs). In the Sage notebook, use :func:`pretty_print` or the "Typeset" |
| 381 | checkbox to actually see the typeset LaTeX code; alternatively, from |
| 382 | either the command-line or the notebook, use the :func:`view` function. |
382 | 383 | |
383 | 384 | INPUT: |
384 | 385 | |
… |
… |
class Latex: |
815 | 816 | ``%latex_debug`` to get debugging output. |
816 | 817 | |
817 | 818 | Use ``latex(...)`` to typeset a Sage object. Use :class:`LatexExpr` |
818 | | to typeset LaTeX code that you created by hand. |
| 819 | to typeset LaTeX code that you create by hand. |
819 | 820 | |
820 | 821 | Use ``%slide`` instead to typeset slides. |
821 | 822 | |
… |
… |
class Latex: |
835 | 836 | sage: LatexExpr(r"\frac{x^2 - 1}{x + 1} = x - 1") |
836 | 837 | \frac{x^2 - 1}{x + 1} = x - 1 |
837 | 838 | |
838 | | LaTeX expressions can be added, note that a space is automatically |
839 | | added:: |
| 839 | LaTeX expressions can be added; note that a space is automatically |
| 840 | inserted:: |
840 | 841 | |
841 | 842 | sage: LatexExpr(r"y \neq") + latex(x^20 + 1) |
842 | 843 | y \neq x^{20} + 1 |