我正在使用 revtex4-2 在 Overleaf 中撰写文章。表格方面我遇到了问题。我收到一条错误消息,提示额外的对齐标签已更改为 \cr。我认为列数是正确的。
我该如何纠正这个问题?这是我的代码。
\documentclass[%
reprint,
%superscriptaddress,
%groupedaddress,
%unsortedaddress,
%runinaddress,
%frontmatterverbose,
%preprint,
%preprintnumbers,
%nofootinbib,
%nobibnotes,
%bibnotes,
amsmath,amssymb,
aps,
%pra,
%prb,
%rmp,
%prstab,
%prstper,
%floatfix,
]{revtex4-2}
\usepackage{graphicx}% Include figure files
\usepackage{dcolumn}% Align table columns on decimal point
\usepackage{bm}% bold math
\usepackage{romannum}
%\usepackage{hyperref}% add hypertext capabilities
%\usepackage[mathlines]{lineno}% Enable numbering of text and display math
%\linenumbers\relax % Commence numbering lines
%\usepackage[showframe,%Uncomment any one of the following lines to test
%%scale=0.7, marginratio={1:1, 2:3}, ignoreall,% default settings
%%text={7in,10in},centering,
%%margin=1.5in,
%%total={6.5in,8.75in}, top=1.2in, left=0.9in, includefoot,
%%height=10in,a5paper,hmargin={3cm,0.8in},
%]{geometry}
\begin{document}
\begin{table*}
\caption{\label{table2} Spatial parts.%
}
\begin{ruledtabular}
\begin{tabular}{cccc
}
\textrm{IR}&
\textrm{fun}&
\textrm{\Romannum{1} type\footnote{Nodes due to the cancellation of function of one row of IR}}&
\textrm{\Romannum{2} type\footnote{Nodes due to the cancellation of functions of two rows of IR}}&
\hline
$\Psi _{1}\left( E_{g}\right) $ & $\psi _{E}-\psi _{C_{2z}}+\psi _{\sigma
_{x}}-\psi _{\sigma _{y}}$ & $(010),(001)$ & $(\bar{1}10)$ \\
$\Psi _{2}\left( E_{g}\right) $ & $\psi _{C_{4z}}-\psi _{C_{4z}^{3}}+\psi
_{\sigma _{a}}-\psi _{\sigma _{b}}$ & $(100),(001)$ & - \\
$\Psi _{1}\left( E_{g}^{A_{2g}}\right) $ & $\psi _{E}-\psi _{C_{2z}}-\psi
_{\sigma _{x}}+\psi _{\sigma _{y}}$ & $(001)$ & $(110)$ \\
$\Psi _{2}\left( E_{g}^{A_{2g}}\right) $ & $+\psi _{\sigma _{b}}-\psi
_{\sigma _{a}}-\psi _{C_{4z}^{3}}+\psi _{C_{4z}}$ & $(001)$ & - \\
$\Psi _{1}\left( \tilde{E}_{g}\right) $ & $\psi _{E}+i\psi _{C_{4z}}-\psi
_{C_{2z}}-i\psi _{C_{4z}^{3}}$ & $(001)$ & $(100)$ \\
$\Psi _{2}\left( \tilde{E}_{g}\right) $ & $\psi _{\sigma _{y}}-i\psi
_{\sigma _{b}}-\psi _{\sigma _{x}}+i\psi _{\sigma _{a}}$ & $(001)$ & $%
(110),(-110)\footnote{Deeps due to partial cancellation of functions of two rows of IR}$ \\
$\Psi _{1}\left( \tilde{E}_{g}^{A_{2g}}\right) $ & $\psi _{E}+i\psi
_{C_{4z}}-\psi _{C_{2z}}-i\psi _{C_{4z}^{3}}$ & $(001)$ & $(010)$ \\
$\Psi _{2}\left( \tilde{E}_{g}^{A_{2g}}\right) $ & $-\psi _{\sigma
_{y}}+i\psi _{\sigma _{b}}+\psi _{\sigma _{x}}-i\psi _{\sigma _{a}}$ & $%
(001) $ & $(110),(-110)$\footnotemark[3] \\
$\Psi (A_{1g})$ & $\psi _{E}+\psi _{C_{2z}}+\psi _{C_{4z}}+\psi
_{C_{4z}^{3}}+\psi _{\sigma _{x}}+\psi _{\sigma _{y}}+\psi _{\sigma
_{b}}+\psi _{\sigma _{a}}$ & - & - \\
$\Psi \left( A_{2g}\right) $ & $\psi _{E}+\psi _{C_{2z}}+\psi _{C_{4z}}+\psi
_{C_{4z}^{3}}-\psi _{\sigma _{x}}-\psi _{\sigma _{y}}-\psi _{\sigma
_{b}}-\psi _{\sigma _{a}}$ & $\ \left( 100\right) $, $\left( 010\right) $, $%
\left( 110\right) ,$ $(-110)$ & -\\
$\Psi \left( B_{1g}\right) $ & $\psi _{E}+\psi _{C_{2z}}-\psi _{C_{4z}}-\psi
_{C_{4z}^{3}}+\psi _{\sigma _{x}}+\psi _{\sigma _{y}}-\psi _{\sigma
_{b}}-\psi _{\sigma _{a}}$ & $\left( 110\right) ,$ $(-110)$ & -\\
$\Psi \left( B_{2g}\right) $ & $\psi _{E}+\psi _{C_{2z}}-\psi _{C_{4z}}-\psi
_{C_{4z}^{3}}-\psi _{\sigma _{x}}-\psi _{\sigma _{y}}+\psi _{\sigma
_{b}}+\psi _{\sigma _{a}}$ & $\left( 100\right) $, $\left( 010\right) $ & - \\
\end{tabular}
\end{ruledtabular}
\end{table*}
谢谢你!
答案1
你需要改变
\textrm{\Romannum{2} type\footnote{Nodes due ... two rows of IR}}&
到
\textrm{\Romannum{2} type\footnote{Nodes due ... two rows of IR}}\\
即将终端&
字符替换为\\
。
答案2
离题了,只是为了好玩:
我将按如下方式设计您的表格:
- 对于表来说它是用来包装
talltblr
的tabularray
。 - 对于表格使用注释
TblrNote{<label>}
(注释文本列在表格序言中,请参阅下面的 MWE) - 由于
{revtex4-2}
覆盖了注释的默认定位,因此使用了技巧来延长其长度(通过在\hfill~
注释文本末尾插入)
\documentclass[reprint,
amssymb,
aps,
]{revtex4-2}
\usepackage{graphicx}% Include figure files
\usepackage{dcolumn}% Align table columns on decimal point
\usepackage{bm}% bold math
\usepackage{romannum}
% new
\usepackage{tabularray}
\UseTblrLibrary{amsmath, booktabs}
\begin{document}
\begin{table*}
%
\begin{talltblr}[
caption = {Spatial parts.},
label = {table2},
%
note{a} = {Nodes due to the cancellation of function of one row of IR\hfill~}, % <---
note{b} = {Nodes due to the cancellation of functions of two rows of IR\hfill~},
note{c} = {Deeps due to partial cancellation of functions of two rows of IR\hfill~},
note{d} = {unknown text\hfill~},
]{colspec = {@{} Q[l, mode=math]
X[l, mode=math]
*{2}{Q[l, mode=math]}
@{}},
row{1} = {mode=text}
}
\toprule
IR & fun
& \Romannum{1} type \TblrNote{a}
& \Romannum{2} type \TblrNote{b} \\
\midrule
\Psi_{1} (E_{g})
& \psi_{E}-\psi_{C_{2z}}+\psi_{\sigma_{x}}-\psi_{\sigma_{y}}
& (010),\ (001)
& (\bar{1}10) \\
\Psi_{2}(E_{g})
& \psi_{C_{4z}}-\psi_{C_{4z}^{3}}+\psi_{\sigma_{a}}-\psi_{\sigma_{b}}
& (100),(001) \\
\Psi_{1}(E_{g}^{A_{2g}})
& \psi_{E}-\psi_{C_{2z}}-\psi_{\sigma_{x}}+\psi_{\sigma_{y}}
& (001)
& (110) \\
\Psi_{2}(E_{g}^{A_{2g}})
& +\psi_{\sigma_{b}}-\psi_{\sigma_{a}}-\psi_{C_{4z}^{3}}+\psi_{C_{4z}}
& (001)
& \textendash \\
\Psi_{1}(\tilde{E}_{g})
& \psi_{E}+i\psi_{C_{4z}}-\psi_{C_{2z}}-i\psi_{C_{4z}^{3}}
& (001)
& (100) \\
\Psi_{2}(\tilde{E}_{g})
& \psi_{\sigma_{y}}-i\psi_{\sigma_{b}}-\psi_{\sigma_{x}}+i\psi_{\sigma_{a}}
& (001)
& (110),\; (-110) \TblrNote{c} \\
\Psi_{1}(\tilde{E}_{g}^{A_{2g}})
& \psi_{E}+i\psi_{C_{4z}}-\psi_{C_{2z}}-i\psi_{C_{4z}^{3}}
& (001)
& (010) \\
\Psi_{2}(\tilde{E}_{g}^{A_{2g}})
& -\psi_{\sigma_{y}}+i\psi_{\sigma_{b}}+\psi_{\sigma_{x}}-i\psi_{\sigma_{a}}
& (001)
& (110),\; (-110) \TblrNote{d} \\
\Psi (A_{1g})
& \psi_{E}+\psi_{C_{2z}}+\psi_{C_{4z}}+\psi_{C_{4z}^{3}} +
\psi_{\sigma_{x}}+\psi_{\sigma_{y}} +
\psi_{\sigma_{b}}+\psi_{\sigma_{a}}
& \textendash
& \textendash \\
\Psi(A_{2g})
& \psi_{E}+\psi_{C_{2z}}+\psi_{C_{4z}} +
\psi_{C_{4z}^{3}}-\psi_{\sigma_{x}}-\psi_{\sigma_{y}} -
\psi_{\sigma_{b}}-\psi_{\sigma_{a}}
& (100),\; (010),\; (110),\; (-110)
& \textendash \\
\Psi (B_{1g})
& \psi_{E}+\psi_{C_{2z}}-\psi_{C_{4z}}-\psi_{C_{4z}^{3}} +
\psi_{\sigma_{x}}+\psi_{\sigma_{y}} -
\psi_{\sigma_{b}}-\psi_{\sigma_{a}}
& (110), (-110)
& \textendash \\
\Psi (B_{2g})
& \psi_{E}+\psi_{C_{2z}} - \psi_{C_{4z}}-\psi_{C_{4z}^{3}} -
\psi_{\sigma_{x}}-\psi_{\sigma_{y}} +
\psi_{\sigma_{b}}+\psi_{\sigma_{a}}
& (100) , (010)
& \textendash \\
\bottomrule
\end{talltblr}
\end{table*}
\end{document}