1
$\begingroup$

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

$\endgroup$
  • 3
    $\begingroup$ What would make display-mode preferable to math-mode at the beginning of a line/paragraph? $\endgroup$ – hardmath Feb 6 '16 at 5:52
  • $\begingroup$ @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. $\endgroup$ – Senex Ægypti Parvi Feb 7 '16 at 16:56
  • 1
    $\begingroup$ Unfortunately, the userscript will not help you on the phone: mobile browsers still don't support them. $\endgroup$ – user147263 Feb 7 '16 at 20:36
5
$\begingroup$

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}$

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .