+
    VBiQ
                    L    R t ^ RIHt Rt ! R R]4      tR tR
R ltR R ltR	# )a4  
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
:mathalphabet2unichar:  LaTeX math alphabets to Unicode character translation
:tex2mathml_extern: Wrapper for 3rd party TeX -> MathML converters
)annotationsreStructuredTextc                  8   a  ] tR t^"tRt. 3R V 3R llltRtV ;t# )	MathErrorzException for math syntax and math conversion errors.

The additional attribute `details` may hold a list of Docutils
nodes suitable as children for a ``<system_message>``.
c                   V ^8  d   QhRR/# )   returnNone )formats   "A/usr/lib/python3.14/site-packages/docutils/utils/math/__init__.py__annotate__MathError.__annotate__(   s      4     c                	2   < \         SV `  V4       W n        R # )N)super__init__details)selfmsgr   	__class__s   &&&r   r   MathError.__init__(   s    r   )r   )__name__
__module____qualname____firstlineno____doc__r   __static_attributes____classcell__)r   s   @r   r   r   "   s    
 %'   r   r   c                T    V P                  R4      pRP                  R V 4       4      # )zAReturn string (LaTeX math) `code` with environments stripped out.\begin{c              3  R   "   T F  pVP                  R 4      R,          x  K  	  R# 5i)z\end{N)split).0chunks   & r   	<genexpr> toplevel_code.<locals>.<genexpr>0   s(      0(.u !;;x044(.s   %')r#   join)codechunkss   & r   toplevel_coder+   -   s.    ZZ
#F?? 0(.0 0 0r   c                p    \        V 4      P                  R4      ^ 8  d   RpMRpV'       g
   VR,          pV# )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_environmentr3   4   s7     T&!+s
Jr   c                   V ^8  d   QhRR/# )r   r   strr
   )r   s   "r   r   r   G   s      c r   c                X    V'       d   \        V 4      pR V: RV : RV: R2# RV ,          # )r    z}
z
\end{}z$%s$)r3   )r)   as_blockr2   s   && r   wrap_math_coder9   G   s(     #D)/2D#>>D=r   N)F)	r   
__future__r   __docformat__
ValueErrorr   r+   r3   r9   r
   r   r   <module>r=      s/    #"
 0&r   