Ticket #12156: 12156_jhp.patch

File 12156_jhp.patch, 1.7 KB (added by jhpalmieri, 10 years ago)
  • sage/misc/latex.py

    # 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): 
    377377    Normally, objects of this class are created by a :func:`latex` call. It is
    378378    also possible to generate :class:`LatexExpr` directly from a string, which
    379379    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.
    382383   
    383384    INPUT:
    384385   
    class Latex: 
    815816    ``%latex_debug`` to get debugging output.
    816817
    817818    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.
    819820
    820821    Use ``%slide`` instead to typeset slides.
    821822
    class Latex: 
    835836        sage: LatexExpr(r"\frac{x^2 - 1}{x + 1} = x - 1")
    836837        \frac{x^2 - 1}{x + 1} = x - 1
    837838
    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::
    840841
    841842        sage: LatexExpr(r"y \neq") + latex(x^20 + 1)
    842843        y \neq x^{20} + 1