
上の図のような数値計算と方程式の形式を実現するにはどうすればよいでしょうか?
このコードを試してみました:
\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}
補遺: 文書のスペースが不足している場合は、最初のスクリーンショットと上記の回答の両方で使用されている 4 行ではなく、各方程式を 3 行で入力することも可能です。
次のソリューションでも、上記の回答の の代わりに\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
別の提案ですが、行数は多いですが短くなっています。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
水平方向の間隔が適切に保たれます。