| Server IP : 217.160.0.135 / Your IP : 216.73.217.25 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib/python3/dist-packages/docutils/utils/math/__pycache__/ |
Upload File : |
�
N=&b! � � � d Z d� Zdd�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 3rd party TeX -> MathML converters
c �j � | � d� � }d� d� |D � � � � S )zAReturn string (LaTeX math) `code` with environments stripped out.z\begin{c 3 �L K � | ]}|� d � � d V � � dS )z\end{���N)�split)�.0�chunks �>/usr/lib/python3/dist-packages/docutils/utils/math/__init__.py� <genexpr>z toplevel_code.<locals>.<genexpr> sG � � � � 0� 0�$� !�;�;�x�0�0��4� 0� 0� 0� 0� 0� 0� )r �join)�code�chunkss r �
toplevel_coder sE � �
�Z�Z�
�
#�
#�F��?�?� 0� 0�(.�0� 0� 0� 0� 0� 0r
Fc �j � t | � � � d� � dk rd}nd}|s|dz
}|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\\� �align�equation�*)r �find)r �numbered�envs r �pick_math_environmentr $ sG � � �T������&�&�!�+�+������� ��s�
���Jr
N)F)�__doc__r r � r
r �<module>r s<