Hi Guys,
I want to write some arrows that are labelled above and below. I'm using the \xrightarrow command, which when used like this:
gives something like
However, I want these to be set within a paragraph of text, not in equation mode, so i want to squash it vertically as much as I can. The best I've managed so far is to use an unwieldy combination of smashing and raising boxes, something like this:
Code: Select all
\newcommand{\progtran}[2][]{%
\xrightarrow%
[\smash{\raisebox{4pt}{$\scriptstyle{\mathbf{#1}}$}}]%
{\smash{\raisebox{-2pt}{$\scriptstyle{#2}$}}}%
}
which yields results like this:

- progtrans.tiff (79.07 KiB) Viewed 3285 times
But I'm not very happy with it -- I'd really like the spacing between the lines to be just normal, not stretched at all. Is there some way that would smash the bit below the arrow upwards in some way, perhaps?
Cheers,
John