| Server IP : 127.0.0.1 / Your IP : 216.73.216.109 Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10 System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64 User : SERVERWEB ( 0) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/cygwin64/lib/python3.9/site-packages/docutils/utils/math/__pycache__/ |
Upload File : |
a
OԼa" � @ s d Z dd� Zddd�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 C s | � d�}d�dd� |D ��S )zAReturn string (LaTeX math) `code` with environments stripped out.z\begin{c S s g | ]}|� d �d �qS )z\end{���)�split)�.0�chunk� r �@/usr/lib/python3.9/site-packages/docutils/utils/math/__init__.py�
<listcomp> s �z!toplevel_code.<locals>.<listcomp>)r �join)�code�chunksr r r �
toplevel_code s
�r Fc C s, t | ��d�dkrd}nd}|s(|d7 }|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\\� ZalignZequation�*)r �find)r Znumbered�envr r r �pick_math_environment"