如何在 LaTeX 中为 IEEE Transaction 创建类似于此的表格我正在尝试使用类似于此的表格但无法制作类似于附件的表格样本。
\usepackage{array}
\begin{table}
\centering
\caption{jkhafj ahjfha hfjah fjahf jhasjf ha}\\
\label{Table1}
\begin{tabular}{| c | c | c | c |}
\hline \multicolumn{4}{|c|}{jkahfjadhfjhajfhahfa}\\
\hline fhjahfa, `$r$' (nm) & ajlhfjkahfha & ajhgjadhjgha & .ngjadhfjkdahfg(\%) \\
\hline 8 nm & 490-580THz & 535THz & 16.82 \% \\
\hline 9 nm & 590-650THz & 620THz & 9.68 \% \\
\hline 10 nm & 550-630THz & 590THz & 13.56 \% \\
\hline 11 nm & 590-640THz & 615THz & 8.13 \% \\
\hline 12 nm & 560-660THz & 605THz & 16.53 \% \\
\hline 13 nm & 530-600THz & 565THz & 12.39 \% \\
\hline \multicolumn{4}{|c|}{\textbf{hfjahdfjhadh}}\\
\hline 8 nm & 450-540THz & 595THz & 15.13 \%\\
\hline 10 nm & 530-620THz & 575THz & 15.65 \%\\
\hline 13 nm & 540-630THz & 585THz & 15.38 \%\\
\hline 15 nm & 540-610THz & 575THz & 12.17 \%\\
\hline
\end{tabular}
\end{table}
现在我想获取类似于附件中两列 IEEE Transaction LaTeX 示例的文件。请帮帮我
答案1
\documentclass{article}
\usepackage{array,booktabs,siunitx,xcolor,colortbl}
\newcolumntype{C}[1]{>{\centering\arraybackslash}m{#1}}%
\begin{document}
\begin{table}
\arrayrulecolor{blue!50}
\centering
\caption{jkhafj ahjfha hfjah fjahf jhasjf ha}
\label{Table1}
\begin{tabular}{ C{0.2\linewidth} C{0.2\linewidth} C{0.2\linewidth} C{0.2\linewidth} }
\toprule[0.5pt]
\toprule[2pt]
\multicolumn{4}{c}{jkahfjadhfjhajfhahfa}\\
\toprule[0.5pt]
\toprule[2pt]
fhjahfa, `$r$' (\si{\nano\meter}) & ajlhfjkahfha (\si{\tera\hertz}) & ajhgjadhjgha (\si{\tera\hertz}) & adhfjkdahfg (\%) \\\midrule
8 & 490-580 & 535 & 16.82 \\
9 & 590-650 & 620 & 9.68 \\
10 & 550-630 & 590 & 13.56 \\
11 & 590-640 & 615 & 8.13 \\
12 & 560-660 & 605 & 16.53 \\
13 & 530-600 & 565 & 12.39 \\
\toprule[0.5pt]
\toprule[2pt]
\multicolumn{4}{c}{\textbf{hfjahdfjhadh}}\\
\toprule[0.5pt]
\toprule[2pt]
8 & 450-540 & 595 & 15.13 \\
10 & 530-620 & 575 & 15.65 \\
13 & 540-630 & 585 & 15.38 \\
15 & 540-610 & 575 & 12.17 \\
\toprule[0.5pt]
\toprule[2pt]
\end{tabular}
\end{table}
\end{document}
但最好不要使用垂直线和双线。