Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support LaTeX ? #70

Open
phucynwa opened this issue Dec 11, 2021 · 4 comments
Open

Support LaTeX ? #70

phucynwa opened this issue Dec 11, 2021 · 4 comments

Comments

@phucynwa
Copy link

I've just found this awesome library. I love your attempt.

I hope that compose-richtext will support LaTeX soon.

@halilozercan
Copy link
Owner

Rendering LaTeX would be an almost impossible task for any Android library alone. I don't think we will have that kind of ambitious goal anytime soon. If we are talking about a small subset of LaTeX like math equations, that'd be something we can look into. I mean not the parsing of a math syntax but providing necessary builders to write a generic math function.

buildFormula {
  pow(a, 2) + pow(b, 2) eq pow(c,2)
}

would render something like

image

@phucynwa
Copy link
Author

@halilozercan Yes. I wish richtext-commonmark will support LaTeX syntax like Markwon library.
I hope I can use this function soon. Thank you.

@leon2017
Copy link

请问现在支持LaTex了吗

@zayass
Copy link

zayass commented Jun 17, 2024

I am not sure about quality but here some existing libraries for parsing/rendering LaTeX on android

https://github.com/NanoMichael/AndroidLaTeXMath
https://github.com/noties/jlatexmath-android

@halilozercan what do you think about some kind of plugins to parse/render embedded things.

I think it is better than inventing yet another math markup language. Because it is a pretty common and widely used scenario to embed LaTeX into markdown:

f{\left( a \right )} = \frac{1}{2 \pi i} \oint_{\gamma} \frac{f{\left( z \right )}}{z - a} dz

$$f{\left( a \right )} = \frac{1}{2 \pi i} \oint_{\gamma} \frac{f{\left( z \right )}}{z - a} dz$$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants