![力方程式編號到案例方程式的同一行](https://rvso.com/image/327807/%E5%8A%9B%E6%96%B9%E7%A8%8B%E5%BC%8F%E7%B7%A8%E8%99%9F%E5%88%B0%E6%A1%88%E4%BE%8B%E6%96%B9%E7%A8%8B%E5%BC%8F%E7%9A%84%E5%90%8C%E4%B8%80%E8%A1%8C.png)
答案1
像這樣的東西嗎?
\documentclass[twocolumn]{article}
\usepackage{amsmath} % for '\text' macro
\newcommand\mcr[1]{\multicolumn{1}{@{}r@{}}{#1}} % handy shortcut macro
\begin{document}
\begin{equation}
\medmuskip=2mu % reduce spacing around binary operators
\thickmuskip=3mu % reduce spacing around relational operators
\renewcommand\arraystretch{1.5}
R(p_i\mid G) =
\left\{\begin{array}{@{}l@{}}
\textit{ep}_{p_i} + (1- \textit{UA}(p_i\mid G)) ({r_G - \textit{ep}_{p_i}})\\
\mcr{\text{if $\textit{ep} \leq r_G$}} \\[1ex]
\textit{ep}_{p_i} + \textit{UA}(p_i\mid G) ({r_G - \textit{ep}_{p_i}}) \\
\mcr{\text{ if $\textit{ep} > r_G$}}
\end{array}\right.
\label{eq:dis}
\end{equation}
\end{document}