+
    VBip$              	      ,   R t ^ RIHt Rt^ RIt^ RIHt ^ RIHtH	t	 Rt
. 3R ltR"R R	 lltR"R
 ltR"R ltR"R lt]R8X  d   Rt]! R4       ]! R]! ]4       R24       ]! R]! ]P'                  RR4      4       R24       ]! R]! ]4       R24       ]! R]! ]4       R24       ]! R4       ]! R4       ]! ]! ]RR7      4       ]! R4       ]! ]! ]P'                  RR4      RR7      4       ]! R4       ]! ]! ]RR7      4       ]! R4       ]! ]! ]RR7      4       ]! R4       R t ]! ]! R!] R!24      4       R# R#   ] dO   t]! ]4       ]! ]P,                  4       ]P,                   F  t]! ]P1                  4       4       K  	   RtAR# RtAii ; i)#zWrappers for TeX->MathML conversion by external tools

This module is provisional:
the API is not settled and may change with any minor Docutils version.
)annotationsreStructuredTextN)nodes)	MathErrorwrap_math_codez;\documentclass{article}
\begin{document}
%s
\end{document}
c                   R pV'       g8   V P                   '       d&   \        P                  ! R V P                   R.R7      .pV'       d   RV P                  ^ ,           R2pM`V P                  '       d&   RV P                  ^ ,           RV P                   R2pM)V P
                  '       g   RV P                  ^ ,           R2pV'       d   \        W!R	7      hR
# ) pre-wrapclasseszTeX to MathML converter `z	` failed:zTeX to MathMl converter `z` exited with Errno .z` returned no MathML.detailsN)stderrr   	paragraphargs
returncodestdoutr   )resultr   msgs   && J/usr/lib/python3.14/site-packages/docutils/utils/math/tex2mathml_extern.py_check_resultr   #   s     Cv}}}??2v}}zlKL)&++a.)9C				*6;;q>*: ;$$*$5$5#6a9]]])&++a.)99NO
--     c                   V ^8  d   QhRR/# )   returnstr )formats   "r   __annotate__r   4   s     !) !)C !)r   c                0   . ROpV'       d   RMRp\        W4      pRV9   d   VP                  RR4      p \        P                  ! W RRR7      pRVP                  9   dO   VP                  VP                  P                  R4      ^	,           VP                  P                  R	4       Vn        MMVP                  VP                  P                  R
4      ^	,           VP                  P                  R4       Vn        \        V4       RV RVP                   R2# )zZConvert LaTeX math code to MathML with blahtexml__.

__ http://gva.noekeon.org/blahtexml/
z display="block"r   z{align*}z	{aligned}Tinputcapture_outputtextz<error>z	<message>z
</message>z<markup>z	</markup>z0<math xmlns="http://www.w3.org/1998/Math/MathML"z>
</math>)	blahtexml--mathmlz
--indentedz	--spacingmoderatez--mathml-encodingrawz--other-encodingr)   z--doctype-xhtml+mathmlz--annotate-TeX)r   replace
subprocessrunr   findr   r   )	math_codeas_blockr   mathml_args_wrappedr   s   &&    r   r&   r&   4   s    
D )1$bKi2HX$$Z=	^^D+/d<F FMM!fmm&8&8&Ea&G&,mm&8&8&FH fmm&8&8&DQ&F&,mm&8&8&EG&>{m Lw( )r   c                  a	 . ROp\         \        W4      ,          p Ro	\        P                  ! W RRR7      pVP                  '       d9   RP                  V	3R lVP                  P                  4        4       4      Vn        \        V4       . ROp\        P                  ! WCP                  RRR7      pVP                  P                  R4      pVR8w  dH   VP                  P                  RV4      ^,           pVP                  Wg P                  RR4      Vn        MMVP                  VP                  P                  R	4      VP                  P                  R
4      ^,            Vn        VP                  '       d   VP                  pMVP                  pRP                  V	3R lVP                  4        4       4      Vn        \        V4       VP                  # )zConvert LaTeX math code to MathML with LaTeXML__.

Comprehensive macro support but **very** slow.

__ http://dlmf.nist.gov/LaTeXML/
Tr!   
c              3  Z   <"   T F   pVP                  S4      '       g   K  Vx  K"  	  R # 5iN
startswith.0line
error_tagss   & r   	<genexpr>latexml.<locals>.<genexpr>s   s'      #C4OD&*ooj&A $(44O   +
+z<table class="ltx_equationgroupz</table>ltx_equationgroupzborderless align-center<mathr%   c              3  Z   <"   T F   pVP                  S4      '       g   K  Vx  K"  	  R # 5ir5   r6   r8   s   & r   r<   r=      s&      ?0H"&//*"=  $t0Hr>   )latexml-z--preload=amsmathz--preload=amssymbz--inputencoding=utf8--)zError:zWarning:zFatal:)latexmlpostrC   z--nonumbersectionsz--format=html5z--omitdoctypez--noscanz--nocrossrefz--nographicimagesz--nopictureimagesz--nodefaultresourcesrD   )document_templater   r+   r,   r   join
splitlinesr   r   r-   r*   )
r.   r/   args1result1args2result2startstop_msg_sourcer;   s
   &&       @r   rB   rB   X   s}   E "N9$GGI1JnnU,0t=G~~~ #CGNN4M4M4O #C C'E nnU..,0t=G NN ABE{~~"":u5a7 3;;!:< !(;(;G(D(/(;(;I(Fq(HJ ~~~nnnnYY ?0F0F0H ? ?GN'>>r   c           
     x   . ROp\         P                  ! V\        W4      RRR7      pVP                  VP                  P	                  R4      VP                  P	                  R4      ^,            Vn        . pVP
                  '       d   VP
                  P                  4       pV\        P                  ! RV^ ,          4      \        P                  ! RRP                  VR,          4      4      \        P                  ! RRP                  VR,          4      R	.R
7      .,          p\        W4R7       VP                  # )zIConvert LaTeX math code to MathML with pandoc__.

__ https://pandoc.org/
Tr!   r@   r%   r   r3   :      N:rS   NNr	   r
   r   )pandocr'   z--from=latex)r+   r,   r   r   r-   r   rI   r   r   literal_blockrH   r   )r.   r/   r   r   r   liness   &&    r   rT   rT      s    
D ^^Dy(K+/d<F MM&--"4"4W"="(--"4"4Y"?"ACFM G}}}((*EOOBa1''DIIeCj,ABOOB		%)(<-7L: 	
 &*==r   c                   . ROp\        W4      p  \        P                  ! W RRRR7      pTP
                  TP
                  P                  R4      TP
                  P                  R4      ^,            Tn        T'       d"   TP
                  P                  RR4      Tn        R	P                  R
 TP                  P                  4        4       4      Tn	        \        T4       TP
                  #   \         d   p\	        T4      hRp?ii ; i)zoConvert LaTeX math code to MathML with TtM__.

Aged, limited, but fast.

__ http://silas.psfc.mit.edu/tth/mml/
Tz
ISO-8859-1)r"   r#   r$   encodingNr@   r%   z<math xmlns=z<math display="block" xmlns=r3   c              3  t   "   T F.  pVP                  R 4      '       g   K  VR,          R,           x  K0  	  R# 5i)z**** :   NNr   Nr6   )r9   r:   s   & r   r<   ttm.<locals>.<genexpr>   s/      ;*D$!%!9 -d2hnn*Ds   88)ttmz-Lz-r)r   r+   r,   UnicodeEncodeErrorr   r   r-   r*   rH   r   rI   r   )r.   r/   r   r   errs   &&   r   r\   r\      s    D y3I/3$)57 MM&--"4"4W"="(--"4"4Y"?"ACFM--n.LNII ;*0--*B*B*D; ;FM &==  ns   C- -D8DD__main__uR   \frac{\partial \sin^2(\alpha)}{\partial \vec r}\varpi \mathbb{R} \, \text{Grüße}z<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>test external mathml converters</title>
</head>
<body>
<p>Test external converters</p>
<p>
z	latexml: ,zttm: mathbbmathbfzblahtexml: zpandoc: r   z</p>z<p>latexml:</p>T)r/   z<p>ttm:</p>z<p>blahtexml:</p>z<p>pandoc:</p>z</main>
</body>
</html>z
\sinc \phy$)F)__doc__
__future__r   __docformat__r+   docutilsr   docutils.utils.mathr   r   rG   r   r&   rB   rT   r\   __name__exampleprintr*   buggyr^   r   nodeastextr   r   r   <module>ro      s   #"   9  #% ."!)H?DBF z6G 
   
Igg&'q
)*	E#gooh9:;1
=>	K	'*+1
-.	HVG_%Q
'(	&M	
	''D
)*	-	#gooh1D
AB	
	)Gd
+,	
	&4
()	
%&E	! 	fqq\"#G J  !c
ckkKKD$++-   !s   (D> >FAFF