
このような方程式を入力する最適な方法は何ですか?
(赤い縦線は 3 つの異なる配置軸を示しています。)
私は次のことを試しました:
\begin{alignat*}{3}
\phi: Z^{X \times Y} &\to (Z^Y)^X\\
f &\mapsto \phi(f): X &&\to Z^Y\\
x &&\mapsto \phi(f)(x): Y &&&\to Z\\
y &&&\mapsto \phi(f)(x)(y) = f(x,y)
\end{alignat*}
しかし、うまく機能しません。
答え1
ここで、alignat
と の小さなトリックを示しますmathtools
。 上のマップの共域は広すぎるため、配置を維持するために幅を抑制します。
\documentclass{article}
\usepackage{amsmath,mathtools}
\begin{document}
\begin{alignat*}{3}
\phi\colon Z^{X \times Y} &\to \mathrlap{(Z^Y)^X}\\
f &\mapsto \phi(f)\colon &X &\to Z^Y\\
& &x &\mapsto \phi(f)(x)\colon &Y &\to Z\\
& & & &y &\mapsto \phi(f)(x)(y) = f(x,y)
\end{alignat*}
\end{document}
答え2
力ずくでも許されるなら…
\documentclass{article}
\begin{document}
\[\arraycolsep0.1667em
\begin{array}{rlll}
\phi: Z^{X \times Y} &\to (Z^Y)^X&&\\
f &\mapsto \phi(f): X &\to Z^Y&\\
&\multicolumn{1}{r}{x} &\mapsto \phi(f)(x): Y &\to Z\\
&&\multicolumn{1}{r}{y} &\mapsto \phi(f)(x)(y) = f(x,y)
\end{array}
\]
\end{document}