# HG changeset patch
# User Andrey Novoseltsev <novoselt@gmail.com>
# Date 1323974819 25200
# Node ID 5e66f881f42075673dd1dbc080167e8ff75ec760
# Parent 77905fefe2c4bdca5c49ff9a1a0a9123c729a30c
Small documentation improvement in LaTeXing code.
diff git a/sage/misc/latex.py b/sage/misc/latex.py
a

b


372  372  
373  373  class LatexExpr(str): 
374  374  """ 
375   A class for LaTeX expressions, i.e. the result of a :func:`latex` 
376   call. A ``LatexExpr`` can also be generated directly from a string. 
377   This string is then prettyprinted (see :func:`pretty_print`) asis. 
 375  A class for LaTeX expressions. 
 376  
 377  Normally, objects of this class are created by a :func:`latex` call. It is 
 378  also possible to generate :class:`LatexExpr` directly from a string, which 
 379  must contain a valid LaTeX code for typesetting in math mode. Strings are 
 380  wrapped into verbatim environment for typeset output, while LaTeX 
 381  expressions are left asis (see :func:`pretty_print`). 
 382  
 383  INPUT: 
 384  
 385   anything convertible to a string of valid math mode LaTeX code. 
 386  
 387  OUTPUT: 
 388  
 389   :class:`LatexExpr` wrapping the string representation of the input. 
378  390  
379  391  EXAMPLES:: 
380  392  
… 
… 

1680  1692  sage: JSMath().eval(type(3), mode='inline') 
1681  1693  <html>...\verb<type\phantom{x}\verb'sage.rings.integer.Integer'></span></html> 
1682  1694  """ 
1683   # Now get a regular LaTeX representation of x... 
 1695  # Get a regular LaTeX representation of x... 
1684  1696  x = latex(x) 
1685  1697  # ... and make it suitable for jsMath, which has issues with < and >. 
1686  1698  x = x.replace('<', '<').replace('>', '>') 