How can you extend arrow to match the width of text in the above line?
I want to get a result like this.
X -> Y -> Z
------->
And the best way I could think of was:
X
\begin{array}{c}
\stackrel{f}{\longrightarrow} Y \stackrel{g}{\longrightarrow} \\
\xrightarrow{\hfill h \hfill}
\end{array}
Z
But the arrow is short. I want to extend the width of the
\xrightarrow{\hfill h \hfill}
to match the width of
\stackrel{f}{\longrightarrow} Y \stackrel{g}{\longrightarrow}
Please give me some advice.