daquexian / FlexibleRichTextView

A view showing LaTeX, images, codes... You can customize tags as you want
Apache License 2.0
440 stars 73 forks source link

Use MathJax as a fallback when JLaTeXMath fails to render formula #1

Open daquexian opened 7 years ago

daquexian commented 7 years ago

Due to the limitation of JLaTeXMath, some complicated formula cannot be rendered correctly.

I'm considering to use MathJaX instead of JLaTeXMath, but I don't like to use WebView (It's so ugly and hard to control). It's possible to find a web API that render LaTeX formula using MathJaX and if so what we need do is just sending formula to it, and retrieving the image it sends back. Obviously this way relies on the Internet, so I plan to use this way as a fallback when JLaTeXMath fails.

Or maybe I could find a way to use MathJaX locally and avoid WebView?

daquexian commented 7 years ago

Oh I found many ways to capture the content of WebView into a bitmap. So maybe I could do it locally.