summaryrefslogtreecommitdiff
path: root/info/examples/ltt/textarr.tex
blob: e655b9d2dd33facba562e0437445a0ce80c88d8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
\documentclass[a4paper,12pt]{report}
\makeatletter
\newcommand{\textarrow}[2][1]
  { \settowidth{\@tempdima}{#2}
    \stackrel{#2}
             {\makebox[#1\@tempdima][l]{\rightarrowfill}}
  }
\makeatother

\begin{document}


\begin{eqnarray*}
 y = f(x) & \textarrow[1.5]{Transformation} & Y = F(X)\\
 y = f(x) & \textarrow{\ensuremath{x\mapsto X}} & Y = F(X)
\end{eqnarray*}

\end{document}