I am trying to make a pair of angle brackets of variable height enclosing a main box along with a box beneath each bracket and an arrow of variable length between these lower boxes. Since I'm sure that's extremely unclear, here are two hand-drawn (and a little crooked) examples of what I mean:
With my limited skills, here is the code I managed to produce:
\newcommand{\imfun}[3]{\underset{#1 \;-\hspace{-.1in} \hfill \rightarrow \; #3}{\sbox0{$#2$}
\mathopen{\resizebox{1.2\width}{\ht0}{$\Bigg\langle$}}
\usebox{0}
\mathclose{\resizebox{1.2\width}{\ht0}{$\Bigg\rangle$}}
}}
The three arguments are the three content boxes: lower left, main, and lower right. In this implementation, the angle brackets do not change height gracefully and no attempt has been made to connect the head of the arrow to the tail.
I certainly appreciate any help you can offer!
$\left\langle$
and$\right\rangle$
instead of the respective variants with\Bigg
, then the brackets should scale with the content inside of them. The LaTeX Wikibook entry on delimiters might be helpful.