我必须对齐多个方程和案例。我可以对齐左括号,但无法对齐不同方程之间的右侧案例。我设法仅对齐单个方程的案例。我尝试使用对齐和数组环境,例如:
\begin{equation}
\begin{aligned}
\alpha^{S / C} & =\left\{\begin{array}{lr}
0 & \lambda_c \leq-1.95 \\
0.3+0.4\left(\lambda_c+1.2\right) & -1.95<\lambda_c<0.55 \\
1 & \lambda_c \geq 0.55
\end{array}\right. \\
\mu_1^{S / C} & =\left\{\begin{array}{lr}
-0.6 & \lambda_c \leq-1.1 \\
-0.6-0.318\left(\lambda_c+1.1\right) & -1.1<\lambda_c<0 \\
-0.95 & \lambda_c \geq 0
\end{array}\right. \\
\sigma_1^{S / C} & =\left\{\begin{array}{lr}
0.1 & \lambda_c \leq-1.3 \\
0.1+0.2\left(\lambda_c+1.3\right) & -1.3<\lambda_c<-0.3 \\
0.3 & \lambda_c \geq-0.3
\end{array}\right. \\
\mu_2^{S / C} & =\left\{\begin{array}{lr}
-1.2 & \lambda_c \leq-0.7 \\
-1.2-1.333\left(\lambda_c+0.7\right) & -0.7<\lambda_c<-0.1 \\
-2.0 & \lambda_c \geq-0.1 \\
\end{array}\right. \\
\sigma_2^{S / C} & =\left\{\begin{array}{lr}
0.5 &\lambda_c \leq-0.5 \\
0.5-\left(\lambda_c+0.5\right) & -0.5<\lambda_c<-0.3\\
0.3 & \lambda_c \geq-0.3
\end{array}\right.
\end{aligned}
\end{equation}
或者使用对齐和案例环境,例如:
\begin{equation}
\begin{aligned}
\alpha^{S / C} & = \begin{cases}
0 & \lambda_c \leq-1.95 \\
0.3+0.4\left(\lambda_c+1.2\right) & -1.95<\lambda_c<0.55 \\
1 & \lambda_c \geq 0.55 \\
\end{cases}\\
\mu_1^{S / C} & =\begin{cases}
-0.6 & \lambda_c \leq-1.1 \\
-0.6-0.318\left(\lambda_c+1.1\right) & -1.1<\lambda_c<0 \\
-0.95 & \lambda_c \geq 0
\end{cases}\\
\sigma_1^{S / C} & =\begin{cases}
0.1 & \lambda_c \leq-1.3 \\
0.1+0.2\left(\lambda_c+1.3\right) & -1.3<\lambda_c<-0.3 \\
0.3 & \lambda_c \geq-0.3
\end{cases}\\
\mu_2^{S / C} & =\begin{cases}
-1.2 & \lambda_c \leq-0.7 \\
-1.2-1.333\left(\lambda_c+0.7\right) & -0.7<\lambda_c<-0.1 \\
-2.0 & \lambda_c \geq-0.1 \\
\end{cases}\\
\sigma_2^{S / C} & =\begin{cases}
0.5 &\lambda_c \leq-0.5 \\
0.5-\left(\lambda_c+0.5\right) & -0.5<\lambda_c<-0.3\\
0.3 & \lambda_c \geq-0.3
\end{cases}
\end{aligned}
\end{equation}
答案1
作为起点:
我认为您的 MWE(最小工作示例)中只有前两个cases
,其他的您可以按照展示的方式自己重写。通过使用array
“split˙”内的环境:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}
\begin{split}
\alpha^{S/C} & = \left\{%
\begin{array}{l @{\qquad} rl}
0 & \lambda_c & \leq - 1.95 \\
0.3+0.4\left(\lambda_c+1.2\right) & -1.95<\lambda_c & <0.55 \\
1 & \lambda_c & \geq 0.55 \\
\end{array}\right. \\[1ex]
\mu_1^{S / C} & = \left\{%
\begin{array}{l @{\qquad} rl}
-0.6 & \lambda_c & \leq-1.1 \\
-0.6-0.318\left(\lambda_c+1.1\right) & -1.1 & <\lambda_c<0 \\
-0.95 & \lambda_c & \geq 0
\end{array}\right. \\[1ex]
\end{split}
\end{equation}
\end{document}
答案2
您可以定义一个合适的环境。在这里我定义cases+
它以它定义的两列的宽度作为参数。需要一些视觉格式(它可能会自动设置,但是……)。
\documentclass{article}
\usepackage{amsmath}
\usepackage{array}
\newenvironment{cases+}[1]{%
\left\{
\renewcommand{\arraystretch}{1.2}% like cases does
\begin{array}{@{}w{l}{#1}@{}w{r}{#1}@{}}
}{\end{array}\right.\kern-\nulldelimiterspace}
\newlength{\mytemplen}
\begin{document}
\begin{equation}
\setlength{\mytemplen}{10em}% adjust to suit
\begin{aligned}
\alpha^{S / C} &=
\begin{cases+}{\mytemplen}
0 & \lambda_c \leq-1.95 \\
0.3+0.4(\lambda_c+1.2) & -1.95<\lambda_c<0.55 \\
1 & \lambda_c \geq 0.55
\end{cases+} \\
\mu_1^{S / C} &=
\begin{cases+}{\mytemplen}
-0.6 & \lambda_c \leq-1.1 \\
-0.6-0.318(\lambda_c+1.1) & -1.1<\lambda_c<0 \\
-0.95 & \lambda_c \geq 0
\end{cases+} \\
\sigma_1^{S / C} &=
\begin{cases+}{\mytemplen}
0.1 & \lambda_c \leq-1.3 \\
0.1+0.2(\lambda_c+1.3) & -1.3<\lambda_c<-0.3 \\
0.3 & \lambda_c \geq-0.3
\end{cases+} \\
\mu_2^{S / C} &=
\begin{cases+}{\mytemplen}
-1.2 & \lambda_c \leq-0.7 \\
-1.2-1.333(\lambda_c+0.7) & -0.7<\lambda_c<-0.1 \\
-2.0 & \lambda_c \geq-0.1 \\
\end{cases+} \\
\sigma_2^{S / C} &=
\begin{cases+}{\mytemplen}
0.5 &\lambda_c \leq-0.5 \\
0.5-(\lambda_c+0.5) & -0.5<\lambda_c<-0.3\\
0.3 & \lambda_c \geq-0.3
\end{cases+}
\end{aligned}
\end{equation}
\end{document}
笔记。\left
我把所有不必要的东西都去掉了\right
。不要随意使用它们。