使表格适合整个页面

使表格适合整个页面

如何使表格适合 revtex 4.1 中的页面大小

\documentclass[%
  aip,
  jap,%
  amsmath,amssymb,
  reprint,%
  ]{revtex4-1}

 \draft

\usepackage{graphicx}% Include figure files
\usepackage{dcolumn}% Align table columns on decimal point
\usepackage{bm}% bold math
\usepackage{times}
\DeclareGraphicsExtensions{.eps}
\usepackage{epstopdf}
\usepackage{lipsum}
\usepackage{tabularx}
\usepackage{booktabs}
\usepackage{array}
\usepackage{natbib}
\usepackage{amsmath}
\usepackage{color}
\usepackage{epstopdf}
\usepackage{grffile}
\usepackage{caption}
\usepackage{showframe}
\captionsetup{justification   = raggedright,
          singlelinecheck = false}
\usepackage{boxhandler}
\usepackage{float}

\begin{document}
\begin{table}
\centering
\caption{\label{}}

\begin{ruledtabular}
\begin{tabular}{l*9 {c}}
System & a & b & c & d & e & f & g & h\\
\end{tabular}
\end{ruledtabular}
\end{table}
\end{document}

答案1

编辑: 我假设,您说的“整页”是指两列文本。在这种情况下,您需要使用

\开始{表格*} ... \结束{表格*}

但是表格将被移至下一页。还有一个限制。在使用tabularx和 类型的列时X,这些列的宽度被错误解释:每个列都占据整个表格的宽度。因此,最好使用tabular*和 列p{...}或其他列(c、l、r、m{...})。

\documentclass[%
  aip,
  jap,%
  amsmath,amssymb,
  reprint,%
  ]{revtex4-1}

\usepackage{graphicx}% Include figure files
\DeclareGraphicsExtensions{.eps}
\usepackage{epstopdf}

\usepackage{times,bm}

\usepackage{array,booktabs,tabularx}
\usepackage{dcolumn}% Align table columns on decimal point
\newcolumntype{C}{>{\centering\arraybackslash}X}

\usepackage{natbib}
\usepackage{color}
\usepackage{grffile}
\usepackage{caption}
\captionsetup{justification   = raggedright,
              singlelinecheck = false}
\usepackage{boxhandler}
\usepackage{float}

\usepackage{lipsum}
\usepackage{showframe}

    \begin{document}
\lipsum[1-3]
    \begin{table*}[htb]
\centering
    \caption{}
\label{}
    \begin{ruledtabular}
\begin{tabular*}{\hsize}{l*9{p{0.08\hsize}}}
System & a & b & c & d & e & f & g & h\\
\end{tabular*}
    \end{ruledtabular}
\end{table*}

\lipsum[4-8]
    \begin{table*}[htb]
\centering
    \caption{}
\label{}
    \begin{ruledtabular}
\begin{tabular*}{\hsize}{l*9{p{0.08\hsize}}}
System & a & b & c & d & e & f & g & h\\
System & a & b & c & d & e & f & g & h\\
\end{tabular*}
    \end{ruledtabular}
\end{table*}

\lipsum[9-13]
    \begin{table*}[htb]
\centering
    \caption{}
\label{}
    \begin{ruledtabular}
\begin{tabular*}{\hsize}{l*9{p{0.08\hsize}}}
System & a & b & c & d & e & f & g & h\\
System & a & b & c & d & e & f & g & h\\
System & a & b & c & d & e & f & g & h\\
\end{tabular*}
    \end{ruledtabular}
\end{table*}
    \end{document}

在此处输入图片描述

相关内容