我正在将 Word 文件转换为 LateX,但在表格中的子方程式中遇到了一些问题......
以下是我想要重现的 Word 表格:
到目前为止,我已经设法使用了这里的几个答案来创建带有子方程的电子表,但它与 Word 版本并不完全相同(例如,我不能将方程源放在方程编号之后,我的间距和对齐很奇怪,而且我不确定放置一些 \nonumber 是否是正确的方法):
\begin{table}
\caption{Transitions between different powder groups}
\label{tab:transition}
\centering
\rule{\textwidth}{\heavyrulewidth}
\vspace{-\baselineskip}
\begin{subequations}
\begin{flalign}
&\textbf{Transition}
&\textbf{Equation}
\nonumber
&&\\
\hline
&\textbf{C/A}
& \log(d_p) &= 4.014 - 0.725 \log( \rho_s - \rho_g) \label{eq:transitionCA}
&& \text{\cite{B1992A}}\\
&\textbf{A/B}
&\log(d_p) &= 5.958 - 1.17 \log( \rho_s - \rho_g) \label{eq:transitionAB}
&&\\
&\textbf{B/D}
&
\log(d_p) &= 5.425 - 0.807 \log( \rho_s - \rho_g) \label{eq:transitionBD}
&&
\end{flalign}
\end{subequations}
\rule{\textwidth}{\heavyrulewidth}
\end{table}
谢谢 !
答案1
(由于这里不知道参考书目,因此提供了参考编号??
)
\documentclass{article}
\usepackage{amsmath}
\usepackage{booktabs, tabularx}
\newcolumntype{N}{>{\refstepcounter{equation}(\theequation)}r}
\usepackage{lipsum}
\begin{document}
\begin{table}
\caption{Transitions between different powder groups}
\label{tab:transition}
\centering
\begin{subequations}
\begin{tabularx}{\linewidth}{>{\bfseries}c
>{\raggedleft\hsize=0.7\hsize $}X<{=$}@{}
>{\hsize=1.3\hsize $\;}X<{$}
N @{\;}l}
\toprule
Transition & \multicolumn{2}{c}{\textbf{Equation}} & \multicolumn{2}{c}{} \\
\midrule
C/A & \log(d_p) & 4.014 - 0.725 \log(\rho_s - \rho_g) & \label{eq:transitionCA} & \cite{B1992A} \\
A/B & \log(d_p) & 5.958 - 1.17 \log(\rho_s - \rho_g) & \label{eq:transitionAB} & \cite{B1992A} \\
B/D & \log(d_p) & 5.425 - 0.807 \log(\rho_s - \rho_g) & \label{eq:transitionBD} & \cite{B1992A} \\
\bottomrule
\end{tabularx}
\end{subequations}
\vskip-\baselineskip
\end{table}
see equations \eqref{eq:transitionCA}, \eqref{eq:transitionAB} and \eqref{eq:transitionBD}.
\lipsum*[11]
\end{document}