
関数のマップの矢印を揃えようとしていますが、LaTeX は矢印を揃えるだけで、数字のスペースが台無しになるか、数字は揃えても矢印は揃えないようです。コードは次のとおりです。
\begin{align*}
\sigma= \left\{
\begin{array}{lr}
\sqrt[8]{2} \longmapsto \zeta\sqrt[8]{2}
\\
i \longmapsto i
\end{array}
\right.
&&
\tau= \left\{
\begin{array}{lr}
\sqrt[8]{2} &\longmapsto&\sqrt[8]{2}
\\
{i} &\longmapsto& -i
\end{array}
\right.
\end{align*}
私が望むのは、矢印は揃えて、数字はそのままにすることです。
答え1
aligned
(cases
適切なツールではないというわけではありません)を使用できます。または、 (ただし、私の意見ではこれが最良です)array
の出力が気に入らない場合。aligned
align*
いずれにしても、単一行の表示には使用しないでください。
\documentclass{article}
\usepackage{amsmath}
\begin{document}
Right and left alignment
\begin{equation*}
\sigma=
\left\{
\begin{aligned}
\sqrt[8]{2} & \longmapsto \zeta\sqrt[8]{2} \\
i & \longmapsto i
\end{aligned}
\right.
\qquad
\tau=
\left\{
\begin{aligned}
\sqrt[8]{2} & \longmapsto \sqrt[8]{2} \\
i & \longmapsto -i
\end{aligned}
\right.
\end{equation*}
Center alignment
\begin{equation*}
\setlength{\arraycolsep}{0pt}
\renewcommand{\arraystretch}{1.2}
\sigma=
\left\{
\begin{array}{ c c c }
\sqrt[8]{2} & {} \longmapsto {} & \zeta\sqrt[8]{2} \\
i & {} \longmapsto {} & i
\end{array}
\right.
\qquad
\tau=
\left\{
\begin{array}{ c c c }
\sqrt[8]{2} & {} \longmapsto {} & \sqrt[8]{2} \\
i & {} \longmapsto {} & -i
\end{array}
\right.
\end{equation*}
Left alignment
\begin{equation*}
\setlength{\arraycolsep}{0pt}
\renewcommand{\arraystretch}{1.2}
\sigma=
\left\{
\begin{array}{ l c l }
\sqrt[8]{2} & {} \longmapsto {} & \zeta\sqrt[8]{2} \\
i & {} \longmapsto {} & i
\end{array}
\right.
\qquad
\tau=
\left\{
\begin{array}{ l c l }
\sqrt[8]{2} & {} \longmapsto {} & \sqrt[8]{2} \\
i & {} \longmapsto {} & -i
\end{array}
\right.
\end{equation*}
\end{document}
\mapsto
の代わりにを使用した場合も同様です\longmapsto
。
\longmapsto
なぜかって?あまり良くない気がするから。広すぎるから。
答え2
TeX:SE へようこそ!
パッケージcases
で定義された環境を使用することにより:amsmath
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{align*}
\sigma = \begin{cases}
\sqrt[8]{2} & \longmapsto \zeta\sqrt[8]{2} \\
i & \longmapsto i
\end{cases}
&&
\tau = \begin{cases}
\sqrt[8]{2} & \longmapsto \sqrt[8]{2} \\
i & \longmapsto -i
\end{cases}
\end{align*}
\end{document}