Ticket #7117: trac_7117-rif.patch

File trac_7117-rif.patch, 2.2 KB (added by mhansen, 12 years ago)
  • sage/misc/latex.py

    # HG changeset patch
    # User J. H. Palmieri <palmieri@math.washington.edu>
    # Date 1254689905 25200
    # Node ID 8dd97cb338f345b553868a24935d7877eb538250
    # Parent  db80f9f3ce7eaa9c82cf7212de49eb88ea049442
    latex fix for RIF
    
    diff --git a/sage/misc/latex.py b/sage/misc/latex.py
    a b  
    343343
    344344        sage: from sage.misc.latex import latex_extra_preamble
    345345        sage: latex_extra_preamble()
    346         '\n\\newcommand{\\ZZ}{\\Bold{Z}}\n\\newcommand{\\RR}{\\Bold{R}}\n\\newcommand{\\CC}{\\Bold{C}}\n\\newcommand{\\QQ}{\\Bold{Q}}\n\\newcommand{\\QQbar}{\\overline{\\QQ}}\n\\newcommand{\\GF}[1]{\\Bold{F}_{#1}}\n\\newcommand{\\Zp}[1]{\\ZZ_{#1}}\n\\newcommand{\\Qp}[1]{\\QQ_{#1}}\n\\newcommand{\\Zmod}[1]{\\ZZ/#1\\ZZ}\n\\newcommand{\\CDF}{\\text{Complex Double Field}}\n\\newcommand{\\CIF}{\\Bold{C}}\n\\newcommand{\\CLF}{\\Bold{C}}\n\\newcommand{\\RDF}{\\Bold{R}}\n\\newcommand{\\RIF}{\\I \\R}\n\\newcommand{\\RLF}{\\Bold{R}}\n\\newcommand{\\CFF}{\\Bold{CFF}}\n\\newcommand{\\Bold}[1]{\\mathbf{#1}}\n'
     346        '\n\\newcommand{\\ZZ}{\\Bold{Z}}\n\\newcommand{\\RR}{\\Bold{R}}\n\\newcommand{\\CC}{\\Bold{C}}\n\\newcommand{\\QQ}{\\Bold{Q}}\n\\newcommand{\\QQbar}{\\overline{\\QQ}}\n\\newcommand{\\GF}[1]{\\Bold{F}_{#1}}\n\\newcommand{\\Zp}[1]{\\ZZ_{#1}}\n\\newcommand{\\Qp}[1]{\\QQ_{#1}}\n\\newcommand{\\Zmod}[1]{\\ZZ/#1\\ZZ}\n\\newcommand{\\CDF}{\\text{Complex Double Field}}\n\\newcommand{\\CIF}{\\Bold{C}}\n\\newcommand{\\CLF}{\\Bold{C}}\n\\newcommand{\\RDF}{\\Bold{R}}\n\\newcommand{\\RIF}{\\Bold{I} \\Bold{R}}\n\\newcommand{\\RLF}{\\Bold{R}}\n\\newcommand{\\CFF}{\\Bold{CFF}}\n\\newcommand{\\Bold}[1]{\\mathbf{#1}}\n'
    347347    """
    348348    from sage.misc.latex_macros import sage_latex_macros
    349349    return (_Latex_prefs._option['preamble'] + "\n"
  • sage/rings/real_mpfi.pyx

    diff --git a/sage/rings/real_mpfi.pyx b/sage/rings/real_mpfi.pyx
    a b  
    480480        return s
    481481
    482482    def _latex_(self):
    483         return "\\I \\R"
     483        r"""
     484        LaTeX representation for Real Interval Field.
     485
     486        EXAMPLES::
     487
     488            sage: RIF._latex_()
     489            '\\Bold{I} \\Bold{R}'
     490        """
     491        return "\\Bold{I} \\Bold{R}"
    484492
    485493    def _sage_input_(self, sib, coerce):
    486494        r"""