ó
j¹Nc           @   s   d  Z  e d „ Z d S(   s¡  
This is the Docutils (Python Documentation Utilities) "math" sub-package.

It contains various modules for conversion between different math formats
(LaTeX, MathML, HTML).

:math2html:    LaTeX math -> HTML conversion from eLyXer
:latex2mathml: LaTeX math -> presentational MathML
:unichar2tex: Unicode character to LaTeX math translation table
:tex2unichar: LaTeX math to Unicode character translation dictionaries
c         C   sy   |  j  d ƒ } d j g  | D] } | j  d ƒ d ^ q ƒ } | j d ƒ d k r\ d } n d } | su | d	 7} n  | S(
   s:  Return the right math environment to display `code`.

    The test simply looks for line-breaks (``\``) outside environments.
    Multi-line formulae are set with ``align``, one-liners with
    ``equation``.

    If `numbered` evaluates to ``False``, the "starred" versions are used
    to suppress numbering.
    s   \begin{t    s   \end{iÿÿÿÿs   \\i    t   alignt   equationt   *(   t   splitt   joint   find(   t   codet   numberedt   chunkst   chunkt   toplevel_codet   env(    (    s@   /usr/lib/python2.7/dist-packages/docutils/utils/math/__init__.pyt   pick_math_environment   s    	&	N(   t   __doc__t   FalseR   (    (    (    s@   /usr/lib/python2.7/dist-packages/docutils/utils/math/__init__.pyt   <module>   s   