- Thread starter
- #1

- Mar 10, 2012

- 835

Suppose I have a function $f:X\to Y$ which sends $a$ to $b$.

I want to express this as:

Consider a function $\frac{f:X\to Y}{a\xrightarrow{h}b}$.

OR

Consider a function $\frac{f:X\to Y}{f:a\mapsto b}$.

Only thing, I don't want the 'horizontal bar' which separates $f:X\to Y$ from $a\xrightarrow{h}b$ (or $f:a\mapsto b$).

Does anybody know how to do this?

Also, is there a way to write $h$ on top of $\mapsto$ just as I can right $h$ on top of $\rightarrow$?