Forum Archive

How can i use latex in pyui TextView

akira

I want to wtrie latex(eg. matrix) in TextView(pyui file). How can i do it.
Wish your help. Thanks

mikael

I do not think you can install Latex on Pythonista. Maybe you could send the text to an online service for compilation, either via screen scraping or the Common Latex Service Interface CLSI. Based on a quick Google, screen scraping is probably much easier.

But you will not be able to do this in the UI editor alone.

akira

@mikael
Oh, I see. Thanks a lot.

enceladus

You can use webview and mathjax to display latex. Here is an example to display matrix.
https://gist.github.com/5eee7b48ea86f6ef8edc24c276df9d1a

akira

@enceladus
Thank you very much. I confirmed what can do.
It's a wonderful hint for me.
I am sorry for my poor english and later reply.
Thanks again.