ó ½z]c@sfddlZdZdd„Zdd„Zedd„ZedkrbdZeeƒj dƒGHndS( iÿÿÿÿNsP\documentclass{article} \usepackage{amsmath} \begin{document} %s \end{document} c CsÉtjdddgdtjdtjdtjdtƒ}|jjt|jdƒƒ|jjƒ|j j ƒ}|j j ƒj dƒ}|r¼|j d ƒd ks¬| r¼|j|ƒntjd dd d dgdtjdtjdtjdtƒ}|jj|ƒ|jjƒ|j j ƒj dƒ}|j j ƒj dƒ}|rz|j d ƒd ksj| rz|j|ƒn|j dƒ|j dƒd}} ||| !}d|krÅt|ƒ‚n|S(sdConvert LaTeX math code to MathML with LaTeXML_ .. _LaTeXML: http://dlmf.nist.gov/LaTeXML/ tlatexmlt-s--inputencoding=utf8tstdintstdouttstderrt close_fdstutf8tErrorit latexmlposts--nonumbersectionss--format=xhtmls--sisclass="ltx_ERROR(t subprocesstPopentPIPEtTrueRtwritetdocument_templatetencodetcloseRtreadRtdecodetfindterrort SyntaxError( t math_codetreportertpt latexml_codet latexml_errtpost_ptresultt post_p_errtstarttend((sG/tmp/pip-build-kBFYxq/docutils/docutils/utils/math/tex2mathml_extern.pyRsB       "       "#  c CsOtjdddgdtjdtjdtjdtƒ}|jjt|jdƒƒ|jjƒ|j j ƒ}|j j ƒj dƒ}|j d ƒd kréd jg|jƒD]}|jd ƒr²|^q²ƒ}td |ƒ‚n|r|j dƒd ks | r|j|ƒn|j dƒ|j dƒd}}|||!}|S(sgConvert LaTeX math code to MathML with TtM_ .. _TtM: http://hutchinson.belmont.ma.us/tth/mml/ tttms-us-rRRRRRs **** Unknownis s****s& Message from external converter TtM: s **** Errorsi(R R R R RR RRRRRRRRtjoint splitlinest startswithRR( RRRRterrtlinetmsgRR((sG/tmp/pip-build-kBFYxq/docutils/docutils/utils/math/tex2mathml_extern.pyR Is(       "# c Csˆdddddddddd g }|r3d }nd }|jd ƒtjd g|dtjdtjdtjdtƒ}|jj|jdƒƒ|jjƒ|j j ƒj dƒ}|j j ƒj dƒ}|j dƒdkrtd||j dƒd|j dƒ!ƒ‚n|rJ|j dƒdks:| rJ|j|ƒn|j dƒd|j dƒ}} d|||| !f}|S(slConvert LaTeX math code to MathML with blahtexml_ .. _blahtexml: http://gva.noekeon.org/blahtexml/ s--mathmls --indenteds --spacingtmoderates--mathml-encodingtraws--other-encodings--doctype-xhtml+mathmls--annotate-TeXtsmode="display"s --displaymatht blahtexmlRRRRRsis, Message from external converter blahtexml: s i s s **** Errorss s> %s (tappendR R R R RR RRRRRRRRR( RtinlineRtoptionst mathmode_argRRR$RR((sG/tmp/pip-build-kBFYxq/docutils/docutils/utils/math/tex2mathml_extern.pyR*es:        *"#t__main__uH\frac{\partial \sin^2(\alpha)}{\partial \vec r} \varpi \, \text{Grüße}R( R RtNoneRR R R*t__name__texampleR(((sG/tmp/pip-build-kBFYxq/docutils/docutils/utils/math/tex2mathml_extern.pyts  . )