複数段組の式の位置合わせで何が欠けているのでしょうか?

複数段組の式の位置合わせで何が欠けているのでしょうか?

これに関連する質問があることは承知していますが、今回の場合はすべてを解決することはできません。

コード:

\documentclass{llncs}

\begin{document}

\begin{multicols}{2}
    \noindent
        \begin{equation}
                  Precision = \frac{TP}{TP + FP} \label{evaluation1}
        \end{equation} \break
         \begin{equation}
      Recall = \frac{TP}{TP + FN}  \label{evaluation2}
        \end{equation} \break
        \begin{equation}
            F_1 =  2  \cdot \frac{precision \cdot recall}{ precision + recall}  \label{evaluation3}
        \end{equation}
    \end{multicols}

\end{document}

出力:

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

編集

最初の行に式 1 と 2 を設定します。次に、2 番目の行に式 3 を設定します。

equation 1           equation 2  

equation 3

答え1

を使用し\columbreakて右の列に切り替え、構築を 2 つに分割できますmulticols

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

\documentclass{llncs}
\usepackage{lipsum}

\begin{document}

\lipsum[1-3]

\begin{multicols}{2}
  \noindent
  \begin{equation}
    \mathrm{precision} = \frac{TP}{TP + FP}
  \end{equation} \columnbreak
  \begin{equation}
    \mathrm{recall} = \frac{TP}{TP + FN}
  \end{equation}
\end{multicols}

\vspace{\dimexpr-\abovedisplayskip-\belowdisplayskip}% Adjust as needed

\begin{multicols}{2}
  \begin{equation}
    F_1 = 2 \cdot \frac{\mathrm{precision} \cdot \mathrm{recall}}{ \mathrm{precision} + \mathrm{recall} }
  \end{equation}
\end{multicols}

\lipsum[4-6]

\end{document}

数式の内容に応じて、 間の間隔を調整する必要がある場合がありますmulticols

答え2

私が使っていることは誰にも言わないでください$$便利なケースもあります。

\documentclass{llncs}

\newenvironment{doubleequations}{%
  $$
  \setlength{\tabcolsep}{0pt}%
  \setlength{\abovedisplayskip}{0pt}%
  \setlength{\belowdisplayskip}{0pt}%
  \setlength{\abovedisplayshortskip}{0pt}%
  \setlength{\belowdisplayshortskip}{0pt}%
  \begin{tabular}{p{0.5\textwidth}p{0.5\textwidth}}%
}{\end{tabular}$$}

\begin{document}

text before the equation
text before the equation
text before the equation
text before the equation
\begin{doubleequations}
  \begin{equation}\label{evaluation1}
  \mathrm{Precision} = \frac{\mathrm{TP}}{\mathrm{TP} + \mathrm{FP}}
  \end{equation}
&
  \begin{equation}\label{evaluation2}
  \mathrm{Recall} = \frac{\mathrm{TP}}{\mathrm{TP} + \mathrm{FN}}
  \end{equation}
\\[-2ex]
  \begin{equation}\label{evaluation3}
  F_1 = 2\cdot \frac{\mathrm{Precision} \cdot \mathrm{Recall}}
                    {\mathrm{Precision} + \mathrm{Recall}}
  \end{equation}
\end{doubleequations}
text after the equation
text after the equation
text after the equation
text after the equation

\end{document}

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

数式モードでは、「単語」を\mathrm(または\mathit、必要に応じて )に分離せずに書き込まないでください。

[-2ex]自分に合わせて間隔を調整してください。

なぜそうなのか$$、そうではないのかmulticols? これは、表示前にページ区切りが許可されないからです。

関連情報