There are ways to set global style. But how about add user define code?
If the use of the following summation notation is expected to appear for countless times:
\sum_{i=1}^n \lim\limits_{t\rightarrow -\infty}
Is there any way to user-define this string into a certain code at the very beginning of the document such as "SUM" and later on when I type something like:
$SUM$
I can get the result analogous to
$\sum_{i=1}^n \lim\limits_{t\rightarrow -\infty}$
And when I type:
$\displaystyle SUM a_i(x_ty_t)+SUM b_i(y_t)^2$
I will have:
$\displaystyle \sum_{i=1}^n \lim\limits_{t\rightarrow -\infty} a_i(x_ty_t)+\sum_{i=1}^n \lim\limits_{t\rightarrow -\infty} b_i(y_t)^2$

SUMbut\newcommand{\MYSUM}{\sum_{i=1}^n \lim\limits_{t\rightarrow -\infty}will do with\MYSUM. That's the purpose of macro definitions ;-) ...\tois perhaps better than\rightarrow– Feb 05 '16 at 01:12\displaystylein inline math?` – David Carlisle Feb 05 '16 at 01:15}in my comment above. See my answer – Feb 05 '16 at 01:24\sum\limits(as you have for\int),\displaystylechanges the whole formula but the whole point of inline math is to use a compressed style that fits in the line spacing of a paragraph and that defeats it, better to use a display\[\sum....\]in that case. – David Carlisle Feb 05 '16 at 01:24