o
    n§¥_Þ  ã                   @   s   d Z ddd„ZdS )aé  
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
:tex2mathml_extern: Wrapper for TeX -> MathML command line converters
Fc                 C   sF   |   d¡}d dd„ |D ƒ¡}| d¡dkrd}nd}|s!|d	7 }|S )
a:  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.
    z\begin{Ú c                 S   s   g | ]	}|  d ¡d ‘qS )z\end{éÿÿÿÿ)Úsplit)Ú.0Úchunk© r   ú>/usr/lib/python3/dist-packages/docutils/utils/math/__init__.pyÚ
<listcomp>(   s    ÿz)pick_math_environment.<locals>.<listcomp>z\\é    ÚalignÚequationÚ*)r   ÚjoinÚfind)ÚcodeÚnumberedÚchunksÚtoplevel_codeÚenvr   r   r   Úpick_math_environment   s   

ÿr   N)F)Ú__doc__r   r   r   r   r   Ú<module>   s   