# How to left-adjust display-mode MathJax. Or is it not feasible?

Is there a way to align MathJax display-mode expressions on the left margin?

• What would make display-mode preferable to math-mode at the beginning of a line/paragraph? – hardmath Feb 6 '16 at 5:52
• @hardmath \ In answer to your question: There are certain differences in the way "display" renders certain mathematical notations -- e.g., summation -- in distinction to the same mathematical notation as rendered by "in-line." I do not do internet-related except on my 'phone, and I prefer a narrower field of vision. – Senex Ægypti Parvi Feb 7 '16 at 16:56
• Unfortunately, the userscript will not help you on the phone: mobile browsers still don't support them. – user147263 Feb 7 '16 at 20:36

You can do this with a userscript that I wrote. Assuming you have a script manager (Tampermonkey or Greasemonkey) installed in your browser, clicking Raw button in Github interface will prompt for userscript installation.

The script is very simple:

if (MathJax) {
MathJax.Hub.Config({displayAlign: "left"});
MathJax.Hub.Rerender();
}


If instead of changing the appearance of all formulas on your computer, you want to change the appearance of your formula on all computers, then replace $$...$$ with $\displaystyle ...$ and put the latter into its own paragraph (surrounding with blank lines). For example, $$\sum_{n=1}^\infty \frac{1}{n^2}=\frac{\pi^2}{6}$$ becomes

$\displaystyle \sum_{n=1}^\infty \frac{1}{n^2}=\frac{\pi^2}{6}$