双列表格 IEEE 和表格中的一个“不可见”列

双列表格 IEEE 和表格中的一个“不可见”列

我正在尝试为 IEEE 的论文创建一个表格,该表格应分布在两列上,因此我尝试使用“*”命令,但它只是悬停在中间的第三页上,而不是分布在两列上。我真的不知道所有的“C{#}”是什么,我只是从我在网上看到的一个示例中复制了它。

另外,我想合并或拆分“Term”列,这样,符号将位于第一列,其描述将位于第二列,但两者都位于“Term”下(我不知道此操作的英文术语是什么,抱歉)。

这是我的桌子

\documentclass[10pt,journal,final]{IEEEtran}
\usepackage[cmex10]{amsmath}
\interdisplaylinepenalty=2500
\usepackage{float}
\usepackage{tabularx,ragged2e,booktabs,caption}
\newcolumntype{C}[1]{>{\Centering}m{#1}}
\renewcommand\tabularxcolumn[1]{C{#1}}


\markboth{JOURNAL OF LIGHTWAVE TECHNOLOGY,~Vol.~???, No.~???, September~????}%
{Shell \MakeLowercase{\textit{et al.}}: Bare Demo of IEEEtran.cls for Journals}
\begin{document}
\begin{table*}[!htbp]
\centering
\captionof{table}{Link budget parameters} 
\begin{tabular}{ C{1.25in} C{.85in} C{.75in}C{.75in}C{.75in}C{.75in}}\toprule[1.5pt]
\bf Term & \bf Formula &\bf Parameter \\\midrule
$P_{tr}$  Transmitted power      &  According to Eq.\ref{linkbudget} &Calculated     \\
\midrule
$G_{tr}$ Transmitting antenna gain & $\left(\frac{\pi D_tr}{\lambda}\right)^2$ & $D_{tr = 5[cm]}$, transmitter aperture diameter;$\lambda=800[nm]$ \\
\midrule
$G_{MRR}$  MRR gain & $\left(\frac{\pi D_{MRR}}{\lambda}\right)^4$&$D_{MRR}=1[cm]$,MRR aperture diameter\\
\midrule
$G_r$  Receiving antenna gain & $\left(\frac{\pi D_{rec}}{\lambda}\right)^2$ & $D_{rec}=5[cm]$, receiver aperture diameter \\
\midrule
$M$  Modulation efficiency & $e^{-\sum\limits_{N}^{}\alpha_{off}^N} \prod\limits_{N}^{}\left(C_m^N-1\right)$&$\alpha_{off}^N$ absorption in off state of layer N; $C_m^N$ optical contrast ration of layer N\\
\midrule
$L_{fs}^2$ Free space loss & $\left(\frac{\lambda}{4\pi R}\right)^2$ & R, distance from MRR to base station \\
\midrule
$L_r$  Receiving antenna loss & & $-1.5[dB]$ assumed\\
\midrule
$L_{MRR}$ MRR loss & Due to anti-reflection & $-0.5[dB]$ assumed\\
\midrule
$P_r$ Received signal power & & Assumed\\
\bottomrule[1.25pt]
\end {tabular}\par
\bigskip
%caption
\label{tab:linkbudget_table} 
\end{table*}


\end{document}

我不知道是否要为下一个问题打开另一个线程,因为它与同一张表相关,现在我正尝试将该表放入我的论文中,该论文定义为:

\RequirePackage[l2tabu, orthodox]{nag}
\documentclass[a4paper,onecolumn,12pt,twoside,openright,bibliography=totoc]{scrreprt}

但是最右边一列的文本超出了页面,而它应该分布在两行或更多行,我该如何适应我的论文?

答案1

你的意思是这样的吗:

在此处输入图片描述

我只显示了表格的前几行,其他行可以很容易地通过推拉方式添加。此表格不能出现在文章的第一页,但可以出现在第二页或之后的页面的顶部或底部。

对于表格,我使用tabularx环境,将列类型重新定义为左对齐,删除不必要的列,并根据需要在表格开头添加一个。我还将带有指数的公式更改为更易读的形式。

如果您愿意,您可以更改单元格列的对齐方式。例如,在第一列中,用居中对齐代替右对齐可能会更好(只需更改cr)。

编辑: 我用稍微简化的版本替换了所提议代码的第一个版本,它给出了相同的结果:

\documentclass[10pt,journal,final]{IEEEtran}
\usepackage[cmex10]{amsmath}
\interdisplaylinepenalty=2500
\usepackage{float}
\usepackage{tabularx,ragged2e,booktabs,caption}
\newcolumntype{L}{>{\RaggedRight\arraybackslash}X}

\usepackage{lipsum}

\markboth{JOURNAL OF LIGHTWAVE TECHNOLOGY,~Vol.~???, No.~???, September~????}%
{Shell \MakeLowercase{\textit{et al.}}: Bare Demo of IEEEtran.cls for Journals}

\begin{document}
    \lipsum[1-5]
    \begin{table*}[t]
\centering
\setlength{\tabcolsep}{3pt}
\caption{Link budget parameters}
    \label{tab:linkbudget_table}
\begin{tabularx}{\hsize}{@{}>{$}r<{$:}l 
                            >{$\displaystyle}c<{$} 
                            L @{}}
    \toprule[1.5pt]
\multicolumn{2}{c}{\textbf{Term}} 
            & \textbf{Formula} &\textbf{Parameter}          \\
    \midrule
P_{tr}     
    &   Transmitted power      
        &  \text{According to Eq.\ref{linkbudget}} 
                                & Calculated                    \\
\addlinespace
G_{tr} 
    &   Transmitting antenna gain 
        &   \left(\frac{\pi D_tr}{\lambda}\right)^2 
            &   $D_{tr} = 5[cm]$, transmitter aperture diameter;
                $\lambda=800[nm]$                               \\
\addlinespace
G_{MRR}  
    &   MRR gain 
        &   \left(\frac{\pi D_{MRR}}{\lambda}\right)^4
            &   $D_{MRR}=1[cm]$,MRR aperture diameter           \\
\addlinespace
G_r &   Receiving antenna gain 
        &   \left(\frac{\pi D_{rec}}{\lambda}\right)^2
            & $D_{rec}=5[cm]$, receiver aperture diameter       \\
\addlinespace
M   &  Modulation efficiency 
        &   \exp\{-\sum\limits_{N}^{}\alpha_{off}^N\}
            \prod\limits_{N}^{}\left(C_m^N-1\right)
            &   $\alpha_{off}^N$ absorption in off state of layer $N$; 
                $C_m^N$ optical contrast ration of layer $N$    \\
\bottomrule[1.25pt]
\end{tabularx}
    \end{table*}
    \lipsum[6-17]
\end{document}

答案2

这是一个使用tabular*环境来排版跨越两列宽度的表格的解决方案。请注意,我已省去了大多数\midrule语句,而是倾向于在行之间使用更多的空格。我还建议您加载包siunitx并使用该包的宏\SI\si排版数字及其单位。

在此处输入图片描述

\documentclass[10pt,journal,final]{IEEEtran}
\usepackage[cmex10]{amsmath}
\interdisplaylinepenalty=2500
\usepackage{lipsum}  % for filler text
\usepackage{array,booktabs,caption,siunitx}

\markboth{JOURNAL OF LIGHTWAVE TECHNOLOGY,~Vol.~???, No.~???, September~????}%
{Shell \MakeLowercase{\textit{et al.}}: Bare Demo of IEEEtran.cls for Journals}
\begin{document}
\lipsum[1] % filler text
\begin{table*}
\setlength\tabcolsep{0pt} % let 'tabular*' figure out optimal intercolumn whitespace
\caption{Link budget parameters} 
\label{tab:linkbudget_table} 
\begin{tabular*}{\textwidth}{>{$}l<{$} @{\extracolsep{\fill}} l >{$\displaystyle}l<{$} l }
\toprule
& \bf Term & \bf Formula &\bf Parameter \\
\midrule
P_{tr} &  Transmitted power  &  \text{According to Eq.\ \eqref{linkbudget}} &Calculated     \\
\addlinespace
G_{tr} & Transmitting antenna gain & \left(\frac{\pi D_{tr}}{\lambda}\right)^2 & $D_{tr = \SI{5}{\centi\meter}}$, transmitter aperture diameter; $\lambda=\SI{800}{\nano\meter}$ \\
\addlinespace
G_{\mathrm{MRR}} &  MRR gain & \left(\frac{\pi D_{\mathrm{MRR}}}{\lambda}\right)^4 &$D_{\mathrm{MRR}}=\SI{1}{\centi\meter}$, MRR aperture diameter\\
\addlinespace
G_r & Receiving antenna gain & \left(\frac{\pi D_{\mathrm{rec}}}{\lambda}\right)^2 & $D_{\mathrm{rec}}=\SI{5}{\centi\meter}$, receiver aperture diameter \\
\addlinespace
M &  Modulation efficiency & \exp\biggl(-\sum_{N} \alpha_{\mathrm{off}}^N\biggr) \prod_{N}\left(C_m^N-1\right)&$\alpha_{\mathrm{off}}^N$ absorption in off state of layer $N$; $C_m^N$ optical contrast ration of layer $N$\\
\addlinespace
L_{\mathit{fs}}^2 & Free space loss & \left(\frac{\lambda}{4\pi R}\right)^2 & $R$, distance from MRR to base station \\
\addlinespace
L_r & Receiving antenna loss & & \SI{-1.5}{\deci\bel} assumed\\
\addlinespace
L_{\mathrm{MRR}} & MRR loss & \text{Due to anti-reflection} & \SI{-0.5}{\deci\bel} assumed\\
\addlinespace
P_r & Received signal power & & Assumed\\
\bottomrule
\end{tabular*}
\end{table*}
\lipsum[2-18] % more filler text
\end{document}

相关内容