| Server IP : 167.99.254.82 / Your IP : 216.73.216.229 Web Server : Apache System : Linux host.techisquad.com 5.15.0-190-generic #200-Ubuntu SMP Fri Aug 7 15:06:04 UTC 2026 x86_64 User : pawluxera ( 1011) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3/dist-packages/docutils/utils/math/__pycache__/ |
Upload File : |
o
n��_� � @ s d Z ddd�ZdS )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�dd� |D ��}|�d�dkrd}nd}|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 �qS )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