403Webshell
Server IP : 167.99.254.82  /  Your IP : 216.73.216.229
Web Server : Apache
System : Linux host.techisquad.com 5.15.0-190-generic #200-Ubuntu SMP Fri Aug 7 15:06:04 UTC 2026 x86_64
User : pawluxera ( 1011)
PHP Version : 8.1.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python3/dist-packages/docutils/utils/math/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3/dist-packages/docutils/utils/math/__pycache__/tex2mathml_extern.cpython-310.pyc
o

n��_�@s\ddlmZddlZdZddd�Zddd�Zdd	d
�Zedkr,dZe	ee��
d
��dSdS)�)�print_functionNzP\documentclass{article}
\usepackage{amsmath}
\begin{document}
%s
\end{document}
c
Cs&tjgd�tjtjtjdd�}|j�t|�d��|j��|j�	�}|j
�	��d�}|r<|�d�dks7|s<|�
|�tjgd�tjtjtjdd�}|j�|�|j��|j�	��d�}|j
�	��d�}|rv|�d�dksq|sv|�
|�|�d�|�d	�d
}}	|||	�}d|vr�t|��|S)zdConvert LaTeX math code to MathML with LaTeXML_

    .. _LaTeXML: http://dlmf.nist.gov/LaTeXML/
    )�latexml�-z--inputencoding=utf8T��stdin�stdout�stderr�	close_fds�utf8�Errorr)�latexmlpostrz--nonumbersectionsz--format=xhtmlz--�<math�</math>�zclass="ltx_ERROR)�
subprocess�Popen�PIPEr�write�document_template�encode�closer�readr�decode�find�error�SyntaxError)
�	math_code�reporter�p�latexml_code�latexml_err�post_p�result�
post_p_err�start�end�r&�G/usr/lib/python3/dist-packages/docutils/utils/math/tex2mathml_extern.pyrs:
�	



�

rcCs�tjgd�tjtjtjdd�}|j�t|�d��|j��|j�	�}|j
�	��d�}|�d�dkrEd�
dd	�|��D��}td
|��|rN|�d�dksP|sU|�|�|�d�|�d
�d}}|||�}|S)zgConvert LaTeX math code to MathML with TtM_

    .. _TtM: http://hutchinson.belmont.ma.us/tth/mml/
    )�ttmz-uz-rTrr
z**** Unknownr�
cSsg|]	}|�d�r|�qS)z****)�
startswith)�.0�liner&r&r'�
<listcomp>]s
�zttm.<locals>.<listcomp>z&
Message from external converter TtM:
�
**** Errorr
rr)rrrrrrrrrrrrr�join�
splitlinesrr)rrrr"�err�msgr$r%r&r&r'r(Js$
�	


r(Tc
Csgd�}|r	d}nd}|�d�tjdg|tjtjtjdd�}|j�|�d��|j��|j�	��
d�}|j�	��
d�}|�d	�d
krWt
d||�d�d
|�d����|rg|�d�d
ksb|sg|�|�|�d�d
|�d�}}	d||||	�f}|S)zlConvert LaTeX math code to MathML with blahtexml_

    .. _blahtexml: http://gva.noekeon.org/blahtexml/
    )
z--mathmlz
--indentedz	--spacing�moderatez--mathml-encoding�rawz--other-encodingr4z--doctype-xhtml+mathmlz--annotate-TeX�zmode="display"z
--displaymath�	blahtexmlTrr
z<error>rz,
Message from external converter blahtexml:
z	<message>�	z
</message>r.z<markup>z	</markup>z><math xmlns="http://www.w3.org/1998/Math/MathML"%s>
%s</math>
)�appendrrrrrrrrrrrrrr)
r�inliner�options�mathmode_argrr"r1r$r%r&r&r'r6fs4
�
�
�r6�__main__uG\frac{\partial \sin^2(\alpha)}{\partial \vec r}\varpi \, \text{Grüße}r
)N)TN)�
__future__rrrrr(r6�__name__�example�printrr&r&r&r'�<module>s

.
)�

Youez - 2016 - github.com/yon3zu
LinuXploit