Is there a way to align MathJax display-mode expressions on the left margin?
- 3$\begingroup$ What would make display-mode preferable to math-mode at the beginning of a line/paragraph? $\endgroup$hardmath– hardmath2016-02-06 05:52:34 +00:00Commented Feb 6, 2016 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– Senex Ægypti Parvi2016-02-07 16:56:53 +00:00Commented Feb 7, 2016 at 16:56
- 1$\begingroup$ Unfortunately, the userscript will not help you on the phone: mobile browsers still don't support them. $\endgroup$user147263– user1472632016-02-07 20:36:39 +00:00Commented Feb 7, 2016 at 20:36
1 Answer
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}$