MWE:
\documentclass[twocolumn,amsmath,amssymb,aps,prb]{revtex4-2}
\usepackage{multirow}
\usepackage{booktabs}
\begin{document}
\begin{table}[htbp]
\caption{Using star * in \texttt{\textbackslash multirow}}
\begin{ruledtabular}
\begin{tabular}{lcc}
\multirow{2}{*}{Layer before ligand attachment\footnote{+CH3 means one methyl group is already attached}} & \multicolumn{2}{c}{-CH3}\\
\cmidrule{2-3}
& RAE & eRAE \\
\midrule
1 Nb +CH3 & 0 & 0
\end{tabular}
\end{ruledtabular}
\end{table}
\begin{table}[htbp]
\caption{Using 3cm in \texttt{\textbackslash multirow}}
\begin{ruledtabular}
\begin{tabular}{lcc}
\multirow{2}{3cm}{Layer before ligand attachment\footnote{+CH3 means one methyl group is already attached}} & \multicolumn{2}{c}{-CH3}\\
\cmidrule{2-3}
& RAE & eRAE \\
\midrule
1 Nb +CH3 & 0 & 0
\end{tabular}
\end{ruledtabular}
\end{table}
\end{document}
각주가 줄 바꿈되지 않은 상태에서 셀의 "Layer before..." 텍스트가 줄 바꿈되기를 원합니다.
답변1
필요하지 않습니다 \multirow
. 대신 Smashed를 중첩하십시오 tabular
.
\documentclass[twocolumn,amsmath,amssymb,aps,prb]{revtex4-2}
\usepackage{booktabs}
\begin{document}
\begin{table}[htbp]
\caption{A caption to the table}
\begin{ruledtabular}
\begin{tabular}{lcc}
\smash{\begin{tabular}[t]{@{}l@{}} Layer before ligand \\ attachment%
\footnote{+CH3 means one methyl group is already attached} \end{tabular}}
& \multicolumn{2}{c}{-CH3}\\
\cmidrule{2-3}
& RAE & eRAE \\
\midrule
1 Nb +CH3 & 0 & 0
\end{tabular}
\end{ruledtabular}
\end{table}
\end{document}
목표 너비를 명시하려면 \footnotemark
및 \footnotetext
메커니즘을 사용할 수 있지만 이중 처리로 인해 비틀림이 발생합니다 ruledtabular
(그래픽상으로는 끔찍하지만 이야기는 다릅니다).
\documentclass[twocolumn,amsmath,amssymb,aps,prb]{revtex4-2}
\usepackage{booktabs,array}
\newcommand{\rultabfnmark}{\footnotemark\addtocounter{mpfootnote}{-1}}
\begin{document}
\begin{table}[htbp]
\caption{A caption to the table}
\begin{ruledtabular}
\begin{tabular}{lcc}
\smash{\parbox[t]{3cm}{\raggedright
Layer before ligand attachment\rultabfnmark}}
& \multicolumn{2}{c}{-CH3}\\
\cmidrule{2-3}
& RAE & eRAE \\
\midrule
1 Nb +CH3 & 0 & 0
\end{tabular}
\footnotetext{+CH3 means one methyl group is already attached}
\end{ruledtabular}
\end{table}
\end{document}
출력은 이전과 동일합니다(물론 특별한 경우).