
함수의 화살표에 맵을 정렬하려고 하는데 라텍스가 화살표를 정렬하고 숫자 공간을 엉망으로 만들거나 숫자만 정렬하지만 화살표는 정렬하지 않는 것 같습니다. 코드는 다음과 같습니다.
\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}