我有以下代码:
\begin{table}[]
\begin{varwidth}{\columnwidth}
\setlength{\lineskip}{5.4pt}\raggedright
\begin{tabular}{l|l|l|l|l|l|l|}
\cline{2-7}
& \multicolumn{1}{c|}{FDDI} & \multicolumn{1}{c|}{OM1} & \multicolumn{1}{c|}{OM2} & \multicolumn{1}{c|}{OM3} & \multicolumn{1}{c|}{OM4} & \multicolumn{1}{c|}{OM5} \\ \hline
\multicolumn{1}{|l|}{Type} & \multicolumn{1}{c|}{Multi-mode} & \multicolumn{1}{c|}{Multi-mode} & \multicolumn{1}{c|}{Multi-mode} & \multicolumn{1}{c|}{Multi-mode} & \multicolumn{1}{c|}{Multi-mode} & \multicolumn{1}{c|}{Multi-mode} \\ \hline
\multicolumn{1}{|l|}{\begin{tabular}[c]{@{}l@{}}Core\\ diameter ($\mu$m)\end{tabular}} & 62.5 & 50 & 50 & 50 & 50 & 50 \\ \hline
\multicolumn{1}{|l|}{\begin{tabular}[c]{@{}l@{}}Cladding \\ diameter ($\mu$m)\end{tabular}} & 125 & 125 & 125 & 125 & 125 & 125 \\ \hline
\multicolumn{1}{|l|}{\begin{tabular}[c]{@{}l@{}}Bandwidth-\\ distance product(s)\\ (Mhz $\cdot$ km)\end{tabular}} & 160 & 200 & 500 & 1500 & 3500 & \begin{tabular}[c]{@{}l@{}}3500\\ @ 850nm\\ 1850\\ @ 950 nm\end{tabular} \\ \hline
\multicolumn{1}{|l|}{\begin{tabular}[c]{@{}l@{}}Light \\ wavelength(s) (nm)\end{tabular}} & 850 & 850 & 850 & 850 & 850 & \begin{tabular}[c]{@{}l@{}}850\\ 950\end{tabular} \\ \hline
\end{tabular}
\begin{tabular}{l|l|l|}
\cline{2-3}
& \multicolumn{1}{c|}{OS1} & \multicolumn{1}{c|}{OS2} \\ \hline
\multicolumn{1}{|l|}{Type} & \multicolumn{1}{c|}{Multi-mode} & \multicolumn{1}{c|}{Multi-mode} \\ \hline
\multicolumn{1}{|l|}{\begin{tabular}[c]{@{}l@{}}Core\\ diameter ($\mu$m)\end{tabular}} & 9 & 9 \\ \hline
\multicolumn{1}{|l|}{\begin{tabular}[c]{@{}l@{}}Cladding \\ diameter ($\mu$m)\end{tabular}} & 125 & 125 \\ \hline
\multicolumn{1}{|l|}{\begin{tabular}[c]{@{}l@{}}Attenuation\\ (dB / km)\end{tabular}} & 1.0 & 0.4 \\ \hline
\multicolumn{1}{|l|}{\begin{tabular}[c]{@{}l@{}}Light \\ wavelength(s) (nm)\end{tabular}} & \begin{tabular}[c]{@{}l@{}}1310\\ 1550\end{tabular} & 1550 \\ \hline
\end{tabular}
\caption{A table of common fibre types used in industry for speeds up to 40 Gbit/s. OM3, OM4 and OM5 are described as "Laser-optimized", and make use of the aformentioned VCSELs instead of LEDs for transmission. \cite{orlyethernet}}\label{tab:multimodesinglemodefibres}%
\end{varwidth}
\end{table}
我想将标题放在第二张表格旁边,与底部对齐(或中间,这样看起来可能更好),如下所示:
我该如何实现这一点?表格需要以某种方式分组,这样它们就不会彼此分离。我尝试使用 SCtable,但它会将标题放在两个表格的右侧,屏幕外,所以不起作用。
(忽略缺失的 1310,以及 OS1/OS2 是“多模式”,这是我的错误)
答案1
借助小页面:
\documentclass{article}
\usepackage{varwidth}
\usepackage{geometry}
\begin{document}
\begin{table}[]
\begin{varwidth}{\columnwidth}
\setlength{\lineskip}{5.4pt}\raggedright
\begin{tabular}{l|l|l|l|l|l|l|}
\cline{2-7}
& \multicolumn{1}{c|}{FDDI} & \multicolumn{1}{c|}{OM1} & \multicolumn{1}{c|}{OM2} & \multicolumn{1}{c|}{OM3} & \multicolumn{1}{c|}{OM4} & \multicolumn{1}{c|}{OM5} \\ \hline
\multicolumn{1}{|l|}{Type} & \multicolumn{1}{c|}{Multi-mode} & \multicolumn{1}{c|}{Multi-mode} & \multicolumn{1}{c|}{Multi-mode} & \multicolumn{1}{c|}{Multi-mode} & \multicolumn{1}{c|}{Multi-mode} & \multicolumn{1}{c|}{Multi-mode} \\ \hline
\multicolumn{1}{|l|}{\begin{tabular}[c]{@{}l@{}}Core\\ diameter ($\mu$m)\end{tabular}} & 62.5 & 50 & 50 & 50 & 50 & 50 \\ \hline
\multicolumn{1}{|l|}{\begin{tabular}[c]{@{}l@{}}Cladding \\ diameter ($\mu$m)\end{tabular}} & 125 & 125 & 125 & 125 & 125 & 125 \\ \hline
\multicolumn{1}{|l|}{\begin{tabular}[c]{@{}l@{}}Bandwidth-\\ distance product(s)\\ (Mhz $\cdot$ km)\end{tabular}} & 160 & 200 & 500 & 1500 & 3500 & \begin{tabular}[c]{@{}l@{}}3500\\ @ 850nm\\ 1850\\ @ 950 nm\end{tabular} \\ \hline
\multicolumn{1}{|l|}{\begin{tabular}[c]{@{}l@{}}Light \\ wavelength(s) (nm)\end{tabular}} & 850 & 850 & 850 & 850 & 850 & \begin{tabular}[c]{@{}l@{}}850\\ 950\end{tabular} \\ \hline
\end{tabular}
\begin{minipage}{.55\linewidth}%
\begin{tabular}{l|l|l|}
\cline{2-3}
& \multicolumn{1}{c|}{OS1} & \multicolumn{1}{c|}{OS2} \\ \hline
\multicolumn{1}{|l|}{Type} & \multicolumn{1}{c|}{Multi-mode} & \multicolumn{1}{c|}{Multi-mode} \\ \hline
\multicolumn{1}{|l|}{\begin{tabular}[c]{@{}l@{}}Core\\ diameter ($\mu$m)\end{tabular}} & 9 & 9 \\ \hline
\multicolumn{1}{|l|}{\begin{tabular}[c]{@{}l@{}}Cladding \\ diameter ($\mu$m)\end{tabular}} & 125 & 125 \\ \hline
\multicolumn{1}{|l|}{\begin{tabular}[c]{@{}l@{}}Attenuation\\ (dB / km)\end{tabular}} & 1.0 & 0.4 \\ \hline
\multicolumn{1}{|l|}{\begin{tabular}[c]{@{}l@{}}Light \\ wavelength(s) (nm)\end{tabular}} & \begin{tabular}[c]{@{}l@{}}1310\\ 1550\end{tabular} & 1550 \\ \hline
\end{tabular}
\end{minipage}%
\begin{minipage}{.4\linewidth}%
\caption{A table of common fibre types used in industry for speeds up to 40 Gbit/s. OM3, OM4 and OM5 are described as "Laser-optimized", and make use of the aformentioned VCSELs instead of LEDs for transmission. \cite{orlyethernet}}\label{tab:multimodesinglemodefibres}%
\end{minipage}%
\hfill
\end{varwidth}
\end{table}
\end{document}