Possible Duplicate:
Setting a single equation in a paragraph in a smaller font
I want to shrink the size of some typeset material inserted in the middle of a paragraph. The following tex file produces the font sizes that I want, but the line spacing in the paragraph prior to \begin{footnotesize} is improperly altered. Why is this happening? How can I change the font size without changing the spacing of the surrounding text?
\documentclass{article}
% Commands to typeset code in a certain style
% Not relevant to the problem
\newcommand{\letE}{\mathbf{let}\;}
\newcommand{\inE}{\mathbf{in}\;}
\newcommand{\qlambda}[1]{\lambda#1\to}
\newcommand{\app}[1]{#1\;}
\newcommand{\putspace}{\mathord{}}
\newcommand{\name}[1]{\mathit{#1}}
\begin{document}
This is an example of a document where paragraph spacing is altered
because the size of some text in the paragraph is changed.
The following expression in the polymorphic lambda calculus is
rendered in a small font so that it can be displayed with fewer line breaks.
\begin{footnotesize}
\begin{tabbing}
$\letE \name{double} = \qlambda{f} \qlambda{x} \app f (\app fx)$ \\
$\inE\putspace$\=
$\letE \name{twohundredfiftysix} = \putspace$\=%
$\letE \name{four} = \app{\name{double}}\name{double}\;%
\inE \app{\name{four}}\name{four}$ \\
\>$\inE \app{\name{twohundredfiftysix}}\name{twohundredfiftysix}$
\end{tabbing}
\end{footnotesize}
Vexingly, the use of \verb+footnotesize+ has altered the
spacing of the preceding lines in the same paragraph.
\end{document}
Edit: Changed to a non-math example.
