summaryrefslogtreecommitdiff
path: root/Master/texmf-doc/doc/german/latex-tipps-und-tricks/textarr.tex
blob: 44fe61e0f851e31d6e1fa07fb2af57af5d85dfaf (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}