我怎样才能做到如上图所示的数字和方程式格式?
我尝试了这个代码:
\documentclass[12pt,a4paper,fleqn, twocolumn]{article}
\usepackage[margin=1.5cm]{geometry}
\usepackage[utf8]{inputenc}
\usepackage[T2A]{fontenc}
\usepackage[russian]{babel}
\usepackage{titlesec}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{esint}
\begin{align}
\begin{array}{l}
P^{TE}_q = Re\frac{j|E_0|^2}{2\eta}\\
\times \oiint\limits_S(A^i_qA^{i*}_q\bar{M}^{(1)}_q \times \bar{N}^{(1)*}_q + A^i_qA^{s*}_q\bar{M}^{(1)}_q \times \bar{N}^{(4)*}_q\\
+ A^s_qA^{i*}_q\bar{M}^{(4)}_q \times \bar{N}^{(1)*}_q + A^s_qA^{s*}_q\bar{M}^{(4)}_q \times \bar{N}^{(4)*}_q)\\
\cdot \hat{r}ds
\end{array}\\
\begin{array}{l}
P^{TM}_q = Re\frac{j|E_0|^2}{2\eta}\\
\times \oiint\limits_S(B^i_qB^{i*}_q\bar{N}^{(1)}_q \times \bar{M}^{(1)*}_q + B^i_qB^{s*}_q\bar{N}^{(1)}_q \times \bar{M}^{(4)*}_q\\
+ B^s_qB^{i*}_q\bar{N}^{(4)}_q \times \bar{M}^{(1)*}_q + B^s_qB^{s*}_q\bar{M}^{(4)}_q \times \bar{M}^{(4)*}_q)\\
\cdot \hat{r}ds
\end{array}
\end{align}
答案1
类似这样的?请注意,我会推荐不是指定选项fleqn
。我建议使用单一align
环境,不使用array
任何环境。
\documentclass[12pt,a4paper,twocolumn]{article} % no 'fleqn' option
\usepackage[margin=1.5cm]{geometry}
\usepackage{mathtools,esint}
\usepackage[utf8]{inputenc}
\usepackage[T2A]{fontenc}
\usepackage[russian]{babel}
\let\Re\relax
\DeclareMathOperator{\Re}{Re} % redefine '\Re'
\DeclarePairedDelimiter{\abs}{\lvert}{\rvert}
\begin{document}
\hrule % just to illustrate width of column
\setcounter{equation}{24} % just for this example
\begingroup
\thickmuskip=0mu
\medmuskip=0mu
\thinmuskip=0mu
\small
\begin{subequations}
\begin{align}
P^{\mathrm{TE}}_q &= \Re \frac{j\abs{E_0}^2}{2\eta} \notag\\
&\quad\times \oiint\limits_S \Bigl(
A^i_qA^{i*}_q\bar{M}^{(1)}_q \times \bar{N}^{(1)*}_q
+ A^i_qA^{s*}_q\bar{M}^{(1)}_q \times \bar{N}^{(4)*}_q \notag\\
&\qquad
+ A^s_qA^{i*}_q\bar{M}^{(4)}_q \times \bar{N}^{(1)*}_q
+ A^s_qA^{s*}_q\bar{M}^{(4)}_q \times \bar{N}^{(4)*}_q \Bigr) \notag\\
&\qquad \cdot \hat{r}\mkern3mu ds \\[1ex]
P^{\mathrm{TM}}_q &= \Re\frac{j\abs{E_0}^2}{2\eta} \notag\\
&\quad\times \oiint\limits_S \Bigl(
B^i_qB^{i*}_q\bar{N}^{(1)}_q \times \bar{M}^{(1)*}_q
+ B^i_qB^{s*}_q\bar{N}^{(1)}_q \times \bar{M}^{(4)*}_q \notag\\
&\qquad
+ B^s_qB^{i*}_q\bar{N}^{(4)}_q \times \bar{M}^{(1)*}_q
+ B^s_qB^{s*}_q\bar{M}^{(4)}_q \times \bar{M}^{(4)*}_q\Bigr) \notag\\
&\qquad\cdot \hat{r}\mkern3mu ds
\end{align}
\end{subequations}
\endgroup
\hrule % just to illustrate width of column
\end{document}
附录:如果您的文档空间有限,实际上可以将每个方程排版为 3 行,而不是初始屏幕截图和上面的答案中使用的 4 行。
以下解决方案也使用\widebar
(软件包提供的宏mathabx
)而不是\bar
上面的答案。使用\widebar
提供的“外观”更接近您发布的屏幕截图的外观。
\documentclass[12pt,a4paper,twocolumn]{article} % no 'fleqn' option
\usepackage[margin=1.5cm]{geometry}
\usepackage{mathtools,mathabx,esint}
\usepackage[utf8]{inputenc}
\usepackage[T2A]{fontenc}
\usepackage[russian]{babel}
\let\Re\relax
\DeclareMathOperator{\Re}{Re} % redefine '\Re'
\DeclarePairedDelimiter{\abs}{\lvert}{\rvert}
\begin{document}
\setcounter{equation}{24} % just for this example
\begin{subequations}
\begin{align}
&P^{\mathrm{TE}}_q = \Re \frac{j\abs{E_0}^2}{2\eta}
\times \oiint\limits_{S} \Bigl\{
A^i_qA^{i*}_q\widebar{M}^{(1)}_q \times \widebar{N}^{(1)*}_q \notag\\
&\quad+ A^i_qA^{s*}_q\widebar{M}^{(1)}_q \times \widebar{N}^{(4)*}_q
+ A^s_qA^{i*}_q\widebar{M}^{(4)}_q \times \widebar{N}^{(1)*}_q \notag\\
&\qquad+ A^s_qA^{s*}_q\widebar{M}^{(4)}_q \times \widebar{N}^{(4)*}_q \Bigr\} \hat{r}\, ds \\[1ex]
&P^{\mathrm{TM}}_q = \Re\frac{j\abs{E_0}^2}{2\eta}
\times \oiint\limits_{S} \Bigl\{
B^i_qB^{i*}_q\widebar{N}^{(1)}_q \times \widebar{M}^{(1)*}_q \notag \\
&\quad+ B^i_qB^{s*}_q\widebar{N}^{(1)}_q \times \widebar{M}^{(4)*}_q
+ B^s_qB^{i*}_q\widebar{N}^{(4)}_q \times \widebar{M}^{(1)*}_q \notag\\
&\qquad+ B^s_qB^{s*}_q\widebar{M}^{(4)}_q \times \widebar{M}^{(4)*}_q\Bigr\} \hat{r}\, ds
\end{align}
\end{subequations}
\end{document}
答案2
一个不同的提议,行数更多但更短;以双列格式排版数学题总是很麻烦。
\documentclass[12pt,a4paper,fleqn,twocolumn]{article}
\usepackage[T2A]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[russian]{babel}
\usepackage[margin=1.5cm]{geometry}
\usepackage{titlesec}
\usepackage{graphicx}
\usepackage{amsmath,mathtools}
\usepackage{esint}
\let\Re\relax
\DeclareMathOperator{\Re}{Re}
\begin{document}
\begin{align}
\begin{split}
P^{TE}_q ={}& \Re\frac{j|E_0|^2}{2\eta} \\
{} \times \mathop{\smash[b]{\oiint\limits_S}}\Bigl(
& A^i_qA^{i*}_q\bar{M}^{(1)}_q \times \bar{N}^{(1)*}_q \\
&+ A^i_qA^{s*}_q\bar{M}^{(1)}_q \times \bar{N}^{(4)*}_q \\
&+ A^s_qA^{i*}_q\bar{M}^{(4)}_q \times \bar{N}^{(1)*}_q \\
&+ A^s_qA^{s*}_q\bar{M}^{(4)}_q \times \bar{N}^{(4)*}_q \Bigr) \cdot \hat{r}\,ds
\end{split}
\\
\begin{split}
P^{TM}_q ={}& \Re\frac{j|E_0|^2}{2\eta} \\
{} \times \mathop{\smash[b]{\oiint\limits_S}}\Bigl(
& B^i_qB^{i*}_q\bar{N}^{(1)}_q \times \bar{M}^{(1)*}_q \\
&+ B^i_qB^{s*}_q\bar{N}^{(1)}_q \times \bar{M}^{(4)*}_q \\
&+ B^s_qB^{i*}_q\bar{N}^{(4)}_q \times \bar{M}^{(1)*}_q \\
&+ B^s_qB^{s*}_q\bar{M}^{(4)}_q \times \bar{M}^{(4)*}_q \Bigr) \cdot \hat{r}\,ds
\end{split}
\end{align}
\end{document}
这种\smash[b]
构造是为了避免大积分将其下方的线推得太低。将其包裹起来\mathop
可确保正确的水平间距。