我有以下等式
我用過
\begin{equation}
\centering
A_j =
\begin{cases}
0 & N^2 < N_j^2 \\
\text{must have been constrained,} & N^2 > N_j^2 \\
\text{can take any value as long} & N^2 = N_j^2
\end{cases}
\label{eq:10.30}
\end{equation}
寫下方程式(記錄在這裡http://en.wikipedia.org/wiki/Help:Displaying_a_formula#Continuation_and_cases)。在乳膠中添加 j = 2,3,4,6,7.. 的條件的最佳方法是什麼?
先致謝!
答案1
這裡有幾個選項:
將構造設為組合
array
,以便對齊「cases
」的內容和 的值j
:使用
amsmath
的gather
:設定 的值
j
作為上一段的一部分:
請注意方程式標籤(標籤)位置的差異。
\documentclass{article}
\usepackage{amsmath}% http://ctan.org/pkg/amsmath
\begin{document}
\begin{equation}
\renewcommand{\arraystretch}{1.2}
\begin{array}{@{}c@{}}
A_j =
\left\{\begin{array}{@{}ll@{}}
0 & N^2 < N_j^2 \\
\text{must have been constrained,} & N^2 > N_j^2 \\
\text{can take any value as long} & N^2 = N_j^2
\end{array}\right. \\
j = 2, 3, \dots
\end{array}
\label{eqn:myeqn1}
\end{equation}
\begin{gather}
A_j =
\begin{cases}
0 & N^2 < N_j^2 \\
\text{must have been constrained,} & N^2 > N_j^2 \\
\text{can take any value as long} & N^2 = N_j^2
\end{cases} \label{eqn:myeqn2} \\
j = 2, 3, \dots \nonumber
\end{gather}
\noindent
\ldots blah blah blah for $j = 2, 3, \dots$
\begin{equation}
A_j =
\begin{cases}
0 & N^2 < N_j^2 \\
\text{must have been constrained,} & N^2 > N_j^2 \\
\text{can take any value as long} & N^2 = N_j^2
\end{cases} \label{eqn:myeqn2}
\end{equation}
\end{document}