帮助使我的表格可查看,请提供帮助

帮助使我的表格可查看,请提供帮助

我是乳胶新手

\begin{landscape}
\caption{Large table}
 \begin{tabular}{|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|}\hline
$0123456789$&$0123456789$&$0123456789$&$0123456789$&$0123456789$&$0123456789$&$\ldots$&$0123456789$&$0123456789$&$0123456789$&$0123456789$&$0123456789$&$0123456789$&$\ldots$&$0123456789$&$0123456789$&$0123456789$&$0123456789$&$0123456789$&$0123456789$\\ \hline
$0123456789$&$0123456789$&$0123456789$&$0123456789$&$0123456789$&$0123456789$&$\ldots$&$0123456789$&$0123456789$&$0123456789$&$0123456789$&$0123456789$&$0123456789$&$\ldots$&$0123456789$&$0123456789$&$0123456789$&$0123456789$&$0123456789$&$0123456789$\\ \hline
$\vdots$&$\vdots$&$\vdots$&$\vdots$&$\vdots$&$\vdots$&$\vdots$&$\vdots$&$\vdots$&$\vdots$&$\vdots$&$\vdots$&$\vdots$&$\vdots$&$\vdots$&$\vdots$&$\vdots$&$\vdots$&$\vdots$&$\vdots$\\ \hline
$0123456789$&$0123456789$&$0123456789$&$0123456789$&$0123456789$&$0123456789$&$\ldots$&$0123456789$&$0123456789$&$0123456789$&$0123456789$&$0123456789$&$0123456789$&$\ldots$&$0123456789$&$0123456789$&$0123456789$&$0123456789$&$0123456789$&$0123456789$\\ \hline
$\vdots$&$\vdots$&$\vdots$&$\vdots$&$\vdots$&$\vdots$&$\vdots$&$\vdots$&$\vdots$&$\vdots$&$\vdots$&$\vdots$&$\vdots$&$\vdots$&$\vdots$&$\vdots$&$\vdots$&$\vdots$&$\vdots$&$\vdots$\\ \hline
$0123456789$&$0123456789$&$0123456789$&$0123456789$&$0123456789$&$0123456789$&$\ldots$&$0123456789$&$0123456789$&$0123456789$&$0123456789$&$0123456789$&$0123456789$&$\ldots$&$0123456789$&$0123456789$&$0123456789$&$0123456789$&$0123456789$&$0123456789$\\ \hline
\end{tabular}
\end{landscape}

每个里面最多有$0123456789$10 个字符,每个区域的字符数有些较少$$。共有 7 行和 20 列。

友善帮助

答案1

首先,删除尽可能多的空间:

  • 使用删除tabular/左右两侧的空格。array@{}

  • 删除垂直线。

  • 尽量减小列间空间,例如

    \arraycolsep=2pt
    

然后使字体尽可能小,例如使用\tiny

如果表仍然太大,请使用adjustbox同名包中定义的环境将表缩小到所需的大小。

最后检查结果是否仍然可读。也许拆分表格会更好。

\documentclass{article}
\usepackage{rotating}
\usepackage{caption}
\usepackage{booktabs}
\usepackage{adjustbox}
\begin{document}
\begin{sideways}
  \begin{minipage}{\textheight}
    \captionof{table}{Large table}
    \tiny
    \begin{adjustbox}{width=\textheight,keepaspectratio}
    $\arraycolsep2pt
     \begin{array}{@{}cccccccccccccccccccc@{}}
     \toprule
       0123456789 & 0123456789 & 0123456789 & 0123456789 & 0123456789
     & 0123456789 &   \cdots   & 0123456789 & 0123456789 & 0123456789
     & 0123456789 & 0123456789 & 0123456789 &   \cdots   & 0123456789
     & 0123456789 & 0123456789 & 0123456789 & 0123456789 & 0123456789
     \\\midrule
       0123456789 & 0123456789 & 0123456789 & 0123456789 & 0123456789
     & 0123456789 &   \cdots   & 0123456789 & 0123456789 & 0123456789
     & 0123456789 & 0123456789 & 0123456789 &   \cdots   & 0123456789
     & 0123456789 & 0123456789 & 0123456789 & 0123456789 & 0123456789
     \\\midrule
         \vdots   &   \vdots   &   \vdots   &   \vdots   &   \vdots
     &   \vdots   &   \vdots   &   \vdots   &   \vdots   &   \vdots
     &   \vdots   &   \vdots   &   \vdots   &   \vdots   &   \vdots
     &   \vdots   &   \vdots   &   \vdots   &   \vdots   &   \vdots
     \\\midrule
       0123456789 & 0123456789 & 0123456789 & 0123456789 & 0123456789
     & 0123456789 &   \cdots   & 0123456789 & 0123456789 & 0123456789
     & 0123456789 & 0123456789 & 0123456789 &   \cdots   & 0123456789
     & 0123456789 & 0123456789 & 0123456789 & 0123456789 & 0123456789
     \\\midrule
         \vdots   &   \vdots   &   \vdots   &   \vdots   &   \vdots
     &   \vdots   &   \vdots   &   \vdots   &   \vdots   &   \vdots
     &   \vdots   &   \vdots   &   \vdots   &   \vdots   &   \vdots
     &   \vdots   &   \vdots   &   \vdots   &   \vdots   &   \vdots
     \\\midrule
       0123456789 & 0123456789 & 0123456789 & 0123456789 & 0123456789
     & 0123456789 &   \cdots   & 0123456789 & 0123456789 & 0123456789
     & 0123456789 & 0123456789 & 0123456789 &   \cdots   & 0123456789
     & 0123456789 & 0123456789 & 0123456789 & 0123456789 & 0123456789
     \\\bottomrule
     \end{array}
    $
  \end{adjustbox}
  \end{minipage}
\end{sideways}
\end{document}

enter image description here

相关内容