我在教科书和网页上看到过各种各样的例子(比如这里) 两列方程块,其中左列包含一些方程,右列包含一些关于变量含义和/或其他内容的解释。我希望将如下所示的方程分成两列,中间有一个垂直分隔符,而不涉及 minipage、Tikz 和其他类似的花哨东西。这似乎是普遍需求的东西。但我找不到它的例子。任何帮助都将不胜感激。
\begin{flalign}
z &= \frac{R\left(S_2 − S_1\right)}{2\left(S_1 + S_2\right)} + \frac{R}{2}\\
text{\scriptsize{where}}
&\text{\scriptsize{ $R$ is the camera range,}} \nonumber\\
&\text{\scriptsize{$S_1$ is the amount of the light pulse received, and}} \nonumber\\
&\text{\scriptsize{$S_2$ is the amount of the light pulse blocked \cite{medina1992three} \nonumber.
}}
\end{flalign}
我正在使用scrbook
文档类。
答案1
您可以使用|
分隔符和数组
% arara: pdflatex
\documentclass{scrbook}
\usepackage{blindtext}
\usepackage{mathtools}
\usepackage{array}
\begin{document}
\blindtext
\begin{equation}
z = \frac{R(S_2 − S_1)}{2(S_1 + S_2)} + \frac{R}{2} \quad \left|\quad\begin{array}{r@{\ }>$l<$}
R & is the amount of the light pulse received, and\\
S_1 & is the amount of the light pulse received, and\\
S_2 & is the amount of the light pulse blocked [MED92]\\
\end{array}\right.
\end{equation}
\begin{equation}
z = \frac{R(S_2 − S_1)}{2(S_1 + S_2)} + \frac{R}{2} \quad \left|\quad\begin{array}{>$l<$}
$R$ is the amount of the light pulse received, and\\
$S_1$ is the amount of the light pulse received, and\\
$S_2$ is the amount of the light pulse blocked [MED92]\\
\end{array}\right.
\end{equation}
\blindtext
\end{document}