간격 없이 다중 정렬

간격 없이 다중 정렬

이와 같은 방정식을 입력하는 가장 좋은 방법은 무엇입니까? 여기에 이미지 설명을 입력하세요

(빨간색 수직선은 세 가지 다른 정렬 축을 나타냅니다.)

나는 다음을 시도했습니다 :

\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} 

여기에 이미지 설명을 입력하세요

관련 정보