阻止多列表的最后一列离开页面右侧

阻止多列表的最后一列离开页面右侧

下面的代码指向这个表格:

在此处输入图片描述

右侧超出页面范围,但最后一列数据未显示。表格应该适合页面——它不是太宽,只是右列莫名其妙地超出了页面范围。例如,标题比最后一列数据应在的位置更宽,并且该标题很容易适合页面。我遗漏了什么?

\begin{table}[ht]
  \caption{Site and structural characterization data for the samples in this study.}
  \begin{center}
\begin{tabular}{c c c c c c}
\hline 
\multicolumn{1}{p{1.5cm}}{\centering Sample}
& \multicolumn{1}{p{1.5cm}}{\centering Si/Sn \\Ratio \\ (AAS)$^a$\\}
& \multicolumn{1}{p{1.5cm}}{\centering Si/Sn\\ Ratio \\ (EDS)$^b$}
& \multicolumn{1}{p{1.5cm}}{\centering V\textsubscript{ads, micro}\\(cm$^3$ g\textsuperscript{-1})}
& \multicolumn{1}{p{1.5cm}}{\centering DRUV \\Band \\ Center\\ (nm)$^e$}
& \multicolumn{1}{p{1.5cm}}{\centering DRUV\\ Edge \\Energy\\ (eV)$^e$} \\\hline
 Sn-CHA-F-60&59&65&0.16$^c$&219&4.33\\
Sn-CHA-F-70&70&65&0.15$^c$&223&4.12\\
Sn-Beta-F-116&116&122&0.23$^d$&222&4.23\\
 Sn-xerogel&110&130&0.02$^c$&245&4.37\\
Si-CHA-F&n.m.*&n.m.*&0.23$^c$&n.m.*&n.m.*\\\hline
\multicolumn{6}{l}{$^a$Bulk composition determined by atomic absorption spectroscopy (AAS).} \\
\multicolumn{6}{l}{$^b$Composition determined by energy dispersive X-ray spectroscopy (EDS).} \\
\multicolumn{6}{l}{$^c$Micropore volume determined from Ar adsorption isotherms (87 K). } \\
\multicolumn{6}{l}{$^d$Micropore volume determined from N$_2$ adsorption isotherms (77 K). } \\
\multicolumn{6}{l}{$^e$Diffuse reflectance UV-Vis spectra (band center at maximum F(R) intensity) and Tauc plots for samples after dehydration at 523 K (Section \ref{sec: chas5}). } \\
\multicolumn{6}{l}{*n. m., not measured} \\
\end{tabular}
  \end{center}
  \label{ta: cd3cn1}
\end{table}

答案1

您的表格注释太长了;将它们分开就可以了。此外,\centering在表格和图中使用。

\documentclass{article}


\begin{document}
\begin{table}[ht]
  \caption{Site and structural characterization data for the samples in this study.}
  \centering
\begin{tabular}{c c c c c c}
\hline 
\multicolumn{1}{p{1.5cm}}{\centering Sample}
& \multicolumn{1}{p{1.5cm}}{\centering Si/Sn \\Ratio \\ (AAS)$^a$\\}
& \multicolumn{1}{p{1.5cm}}{\centering Si/Sn\\ Ratio \\ (EDS)$^b$}
& \multicolumn{1}{p{1.5cm}}{\centering V\textsubscript{ads, micro}\\(cm$^3$ g\textsuperscript{-1})}
& \multicolumn{1}{p{1.5cm}}{\centering DRUV \\Band \\ Center\\ (nm)$^e$}
& \multicolumn{1}{p{1.5cm}}{\centering DRUV\\ Edge \\Energy\\ (eV)$^e$} \\\hline
 Sn-CHA-F-60&59&65&0.16$^c$&219&4.33\\
Sn-CHA-F-70&70&65&0.15$^c$&223&4.12\\
Sn-Beta-F-116&116&122&0.23$^d$&222&4.23\\
 Sn-xerogel&110&130&0.02$^c$&245&4.37\\
Si-CHA-F&n.m.*&n.m.*&0.23$^c$&n.m.*&n.m.*\\\hline
\multicolumn{6}{l}{$^a$Bulk composition determined by atomic absorption spectroscopy (AAS).} \\
\multicolumn{6}{l}{$^b$Composition determined by energy dispersive X-ray spectroscopy (EDS).} \\
\multicolumn{6}{l}{$^c$Micropore volume determined from Ar adsorption isotherms (87 K). } \\
\multicolumn{6}{l}{$^d$Micropore volume determined from N$_2$ adsorption isotherms (77 K). } \\
\multicolumn{6}{l}{$^e$Diffuse reflectance UV-Vis spectra (band center at maximum F(R) intensity)}\\
\multicolumn{6}{l}{\hspace{3ex} and Tauc plots for samples after dehydration at 523 K (Section \ref{sec: chas5}). } \\
\multicolumn{6}{l}{*n. m., not measured} \\
\end{tabular}
  \label{ta: cd3cn1}
\end{table}
\end{document}

答案2

我建议您 (a) 使用tabularx环境而不是tabular环境,(b) 使用机制threeparttable——尤其是\tnote宏和tablenotes环境,以及 (c) 使用包的\si和宏来排版科学单位。\SIsiunitx

在此处输入图片描述

\documentclass{article}
\usepackage{tabularx,booktabs,siunitx}
\newcolumntype{C}{>{\centering\arraybackslash}X} % centered "X" columns    
\usepackage[flushleft]{threeparttable}
\renewcommand\TPTtagStyle{\textit} % italic footnote markers

\begin{document}

\begin{table}[ht]
\begin{threeparttable}
\caption{Site and structural characterization data for the samples in this study.} 
\label{ta:cd3cn1}

\begin{tabularx}{\textwidth}{@{} l CCCCC @{}}
\toprule 
Sample
& Si/Sn Ratio  (AAS)\tnote{a}
& Si/Sn Ratio  (EDS)\tnote{b}
& V\textsubscript{ads,micro} (\si{\centi\meter\cubed} \si{\gram\tothe{-1}})
& DRUV Band Center (\si{\nano\meter})\tnote{e}
& DRUV Edge Energy (\si{\electronvolt})\tnote{e} \\
\midrule
Sn-CHA-F-60   & 59  & 65  &0.16\tnote{c} &219  &4.33\\
Sn-CHA-F-70   & 70  & 65  &0.15\tnote{c} &223  &4.12\\
Sn-Beta-F-116 &116  &122  &0.23\tnote{d} &222  &4.23\\
Sn-xerogel    &110  &130  &0.02\tnote{c} &245  &4.37\\
Si-CHA-F      &n.m.*&n.m.*&0.23\tnote{c} &n.m.*&n.m.*\\
\bottomrule
\end{tabularx}

\smallskip
\begin{tablenotes}
\item[a] Bulk composition determined by atomic absorption spectroscopy (AAS).
\item[b] Composition determined by energy dispersive X-ray spectroscopy (EDS).
\item[c] Micropore volume determined from Ar adsorption isotherms 
         (\SI{87}{\kelvin}). 
\item[d] Micropore volume determined from N\textsubscript{2} adsorption 
         isotherms (\SI{77}{\kelvin}). 
\item[e] Diffuse reflectance UV-Vis spectra (band center at maximum F(R) 
         intensity) and Tauc plots for samples after dehydration at 
         \SI{523}{\kelvin} (Section \ref{sec:chas5}). 
\end{tablenotes}
n.m.* not measured
\end{threeparttable}
\end{table}
\end{document}

相关内容