複数列の方程式セットの上部配置

複数列の方程式セットの上部配置

次の方程式セットを上に揃える必要があります:

\begin{equation}
\begin{aligned}
    S_{1} &= \frac{11.0}{24.1} &= 0.46 \text{ пкФ}/{\%}; \\[1em]
    S_{2} &= \frac{25.6}{32.3} &= 0.79 \text{ пкФ}/{\%}; \\[1em]
    S_{3} &= \frac{34.3}{42.0} &= 0.82 \text{ пкФ}/{\%}; \\[1em]
    S_{4} &= \frac{45.2}{53.1} &= 0.85 \text{ пкФ}/{\%}; \\[1em]
    S_{5} &= \frac{60.0}{67.0} &= 0.90 \text{ пкФ}/{\%}; \\[1em]
    S_{6} &= \frac{72.2}{82.3} &= 0.88 \text{ пкФ}/{\%};
\end{aligned}
\qquad \qquad
\begin{aligned}
    S_{7} &= \frac{59.4}{65.9} &= 0.90 \text{ пкФ}/{\%}; \\[1em]
    S_{8} &= \frac{45.0}{51.6} &= 0.87 \text{ пкФ}/{\%}; \\[1em]
    S_{9} &= \frac{34.7}{42.4} &= 0.82 \text{ пкФ}/{\%}; \\[1em]
    S_{10} &= \frac{25.5}{33.2} &= 0.77 \text{ пкФ}/{\%}; \\[1em]
    S_{11} &= \frac{10.6}{24.0} &= 0.44 \text{ пкФ}/{\%};
\end{aligned}
\end{equation}

配置プレビュー 何か案は?

答え1

両方の環境で使用します( Unicode エラーのため、ステートメント\begin{aligned}[t]を削除する必要がありました)\text{..}

ただし、欠点もあります。方程式の番号が間違っています。

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{mathtools}
\usepackage{siunitx}



\begin{document}

\begin{equation}
\begin{aligned}[t]
    S_{1} &= \frac{11.0}{24.1} &= 0.46 {\si{\percent}}; \\[1em]
    S_{2} &= \frac{25.6}{32.3} &= 0.79 {\si{\percent}}; \\[1em]
    S_{3} &= \frac{34.3}{42.0} &= 0.82 {\si{\percent}}; \\[1em]
    S_{4} &= \frac{45.2}{53.1} &= 0.85 {\si{\percent}}; \\[1em]
    S_{5} &= \frac{60.0}{67.0} &= 0.90 {\si{\percent}}; \\[1em]
    S_{6} &= \frac{72.2}{82.3} &= 0.88 {\si{\percent}};
\end{aligned}
\qquad \qquad
\begin{aligned}[t]
    S_{7} &= \frac{59.4}{65.9} &= 0.90  {\si{\percent}}; \\[1em]
    S_{8} &= \frac{45.0}{51.6} &= 0.87  {\si{\percent}}; \\[1em]
    S_{9} &= \frac{34.7}{42.4} &= 0.82  {\si{\percent}}; \\[1em]
    S_{10} &= \frac{25.5}{33.2} &= 0.77 {\si{\percent}}; \\[1em]
    S_{11} &= \frac{10.6}{24.0} &= 0.44 {\si{\percent}};
\end{aligned}
\end{equation}
\end{document}

ここに画像の説明を入力してください

答え2

別の方法: 2 番目の列にダミーの行を追加し、他の行と同じ高さになるようにします。これにより、数式の番号が垂直方向に中央揃えされます。

線の高さが異なる場合、これはうまく機能しません。

私にとっては Unicode 文字をうまく処理できない pdflatex を使用する方が簡単なので、ギリシャ文字を「xxx」に置き換えました。

&2 番目の等号の前の 2番目の は実際には必要ありませんが、等号が揃っていることを確認したい場合や、一部の分数が他の分数よりも少し広くなる可能性がある場合は、 を使用し{alignedat}{2}て 2 番目の を 2 倍にする ことができます&。これにより、2 番目の等号の周りの間隔が最初の等号と同じ幅に保たれます。

\documentclass{article}
\usepackage{amsmath}

\begin{document}

\begin{equation}
\begin{aligned}
    S_{1} &= \frac{11.0}{24.1} &= 0.46 \text{ xxx}/{\%}; \\[1em]
    S_{2} &= \frac{25.6}{32.3} &= 0.79 \text{ xxx}/{\%}; \\[1em]
    S_{3} &= \frac{34.3}{42.0} &= 0.82 \text{ xxx}/{\%}; \\[1em]
    S_{4} &= \frac{45.2}{53.1} &= 0.85 \text{ xxx}/{\%}; \\[1em]
    S_{5} &= \frac{60.0}{67.0} &= 0.90 \text{ xxx}/{\%}; \\[1em]
    S_{6} &= \frac{72.2}{82.3} &= 0.88 \text{ xxx}/{\%};
\end{aligned}
\qquad \qquad
\begin{aligned}
    S_{7} &= \frac{59.4}{65.9} &= 0.90 \text{ xxx}/{\%}; \\[1em]
    S_{8} &= \frac{45.0}{51.6} &= 0.87 \text{ xxx}/{\%}; \\[1em]
    S_{9} &= \frac{34.7}{42.4} &= 0.82 \text{ xxx}/{\%}; \\[1em]
    S_{10} &= \frac{25.5}{33.2} &= 0.77 \text{ xxx}/{\%}; \\[1em]
    S_{11} &= \frac{10.6}{24.0} &= 0.44 \text{ xxx}/{\%}; \\[1em]
    \phantom{ \frac{10.6}{24.0}}
\end{aligned}
\end{equation}

\end{document}

サンプルコードの出力

関連情報