Why can't I use \begin{verbatim} inside \texttt?
\texttt{ \small \begin{verbatim}
iab <key> <expansion>
<key> is the string which should be expanded to <expansion>
\end{verbatim}}
This throws an error.
I can do this without any problem,
{\tt \small \begin{verbatim}
iab <key> <expansion>
<key> is the string which should be expanded to <expansion>
\end{verbatim}}
but I read, \tt is gone now.

verbatimprints the contents in typewriter text anyways. – Torbjørn T. Feb 5 at 8:41verbatimenvironment does, nothing to with\texttt. If you remove\ttor\textttand recompile, does that give you what you want? – Torbjørn T. Feb 5 at 9:07\ttand\smalldoing there? Oops, I know I should know, but I can't remember. – ATOzTOA Feb 5 at 9:10\smallreduces the font size a little, but the use of\ttis just a misunderstanding I guess, it is unnecessary. – Torbjørn T. Feb 5 at 9:12