MathJax
MathJax copied to clipboard
Viewer able to turn on reflow of mathematics rather than set by document
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.
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.