My question is a short one: I would like \lim to always be displayed inline using the \displaystyle mode.
Asked
Active
Viewed 4,462 times
10
1 Answers
13
You don't want \displaystyle, but \limits after \lim.
\documentclass{article}
\usepackage{amsmath}
\usepackage{etoolbox}
\apptocmd{\lim}{\limits}{}{}
\begin{document}
Here's a limit: $\lim_{x\to0}\sin x=0$.
\end{document}

On the other hand, students can learn how to properly read symbols; I feel it wrong to attach too much to symbols, which are mainly conventions and not laws cast in stone.
egreg
- 1,121,712
-
We sometimes see teachers using
$\sum\limits...$because apparently their students does not recognize a sum unless the limits are above and below. In a similar category they do not use\expas their students does not know it is the same ate^{...}, so we'll see stuff likee^{\int ....}... – daleif Feb 18 '14 at 14:35 -
@egreg Thanks a lot for this solution that uses less vertical space. :-) You're totally right for the conventions but my bachelor student are not corrected by me so I have to follow some recommandations. – projetmbc Feb 18 '14 at 20:11
\let\svlim\lim\def\lim{\displaystyle\svlim}– Steven B. Segletes Feb 18 '14 at 13:50\displaystyleformat. – projetmbc Feb 18 '14 at 13:52\displaystyle, I too would select egreg's answer – Steven B. Segletes Feb 18 '14 at 14:33usepackage{setspace} \setstretch{1.06}in the preamble. The value 1.06 foor the stretch is of course a matter of taste. – Bernard Feb 18 '14 at 15:06x \to a, it's OK. I use it rather commonly, e.g. for medium sized fraction fromnccmath. Generally speaking, I find the default line spacing is too tight any way, and I use a stretcj between 1.05 and 1.1, depending on the font.@daleif – Bernard Feb 18 '14 at 16:47