MathJax icon indicating copy to clipboard operation
MathJax copied to clipboard

Viewer able to turn on reflow of mathematics rather than set by document

Open joshualim opened this issue 6 years ago • 1 comments

It would be useful to allow viewers to select whether to make display equations reflow onto a new line (even if in "bad" ways - I'm aware of this old thread about "good" linebreaks), rather than leaving it the choice of the author to select this.

joshualim avatar Jan 24 '20 12:01 joshualim

If you are viewing a page that doesn't have line breaking turned on, you could use the browser console to do

MathJax.Hub.Config({'HTML-CSS': {linebreaks:{automatic:true}}})

(or replace 'HTML-CSS' by CommonHTML or SVG depending on the output renderer you are using, or do all three at once with

MathJax.Hub.Config({'HTML-CSS': {linebreaks:{automatic:true}},CommonHTML:{linebreaks: {automatic:true}},SVG:{linebreaks: {automatic:true}}})

and then

MathJax.Hub.Rerender()

That should reprocess the page with line breaks on.

It would be possible to make a bookmarklet out of this, for convenience.

dpvc avatar Jan 29 '20 17:01 dpvc