MathJax-Android icon indicating copy to clipboard operation
MathJax-Android copied to clipboard

Text alignment within MathJaxView

Open erfz opened this issue 7 years ago • 2 comments

By default, all text and math is centered. Setting android:gravity="start", "left", "end", "right" do not seem to have any effect. However, if I manually change

<div style="text-align: center;"> <span id='math'></span> </div>

to

<div style=""> <span id='math'></span> </div>

in mathjax_android.html, text will be aligned as it typically would in LaTeX.

Is there a way to do this on the fly?

erfz avatar Aug 19 '17 07:08 erfz

This would be possible. Since WebViews are not playing well with wrap_content it would require to modifying the style of the div using the Javascript bridge. I have no plans for implementing something like this at the moment. Pull requests are welcome.

timfreiheit avatar Aug 19 '17 14:08 timfreiheit

the view isn't matching the width parent,even when set, it's always moving if touched slightly is there any suggestion on how to deactivate that on the fly?

ALEXeddy19 avatar May 10 '24 22:05 ALEXeddy19