答案1
答案2
以下是基于align*
和 的解决方案eqparbox
。我添加了两个变体,在我看来,它们看起来更好。最后一个不需要eqparbox
:
\documentclass{article}
\usepackage{amsmath}
\usepackage{mathrsfs}
\usepackage{eqparbox}
\newcommand{\eqmathbox}[2][M]{\eqmakebox[#1]{$\displaystyle#2$}}
\begin{document}
\begin{align*}
\eqmathbox{\mathscr{A}(B,C)\times\mathscr{A}(A,B)} & \longrightarrow \eqmathbox[R]{\mathscr{A}(A,C)}\;,\\
\eqmathbox{(g,f)} & \longmapsto \eqmathbox[R]{g\circ f}\;,
\end{align*}
\begin{align*}
\mathscr{A}(B,C)\times \eqmathbox[L]{\mathscr{A}(A,B)} & \longrightarrow \eqmathbox[R]{\mathscr{A}(A,C)}\;,\\
\eqmathbox[L]{(g,f)} & \longmapsto \eqmathbox[R]{g\circ f}\;,
\end{align*}
\begin{align*}
\mathscr{A}(B,C)\times\mathscr{A}(A,B) & \longrightarrow \mathscr{A} (A,C)\;,\\
(g,f) & \longmapsto g\circ f\;,
\end{align*}
\end{document}