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

Some issue about setting text color for MathView #66

Open
yishuinanfeng opened this issue Oct 23, 2018 · 1 comment
Open

Some issue about setting text color for MathView #66

yishuinanfeng opened this issue Oct 23, 2018 · 1 comment
Assignees

Comments

@yishuinanfeng
Copy link

yishuinanfeng commented Oct 23, 2018

hello~I want to let the color of my MathView's text become white,according to stackoverflow(The link is : https://stackoverflow.com/questions/41485618/how-can-i-change-the-color-of-text-of-a-mathview-which-is-basically-a-webview) ,I try:

MathView formula = findViewById(R.id.scan_result);
formula.config(
"MathJax.Hub.Config({\n"+
" { TeX: { extensions: ["color.js"] } }\n"+
"});"
);
Then:

formula.setText("\(\color{white}{ax^2 + 7}\)");

it can show text as white.

but if i use some lateX which need symbol "$" like this:
formula.setText("\(\color{white}{$$ax^2 + 7$$}\)");

it dose not work.
Thanks if someone can help me.

@tranleduy2000
Copy link

See pull request #69

@jianzhongli jianzhongli self-assigned this Jul 12, 2019
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

3 participants