桌子看起来非常小

桌子看起来非常小

我使用 Excel 插件生成了此表。该表在 Latex 文件中看起来非常小。我应该怎么做才能使其更清晰、更好看?

\documentclass{article}
\usepackage{graphicx}
\usepackage{parskip}
\usepackage{amssymb}
\usepackage{eufrak}
\usepackage{amsmath}
\usepackage{amsxtra}
\usepackage{graphicx}

\begin{document}

\begin{table*}[]
\caption{}
\label{tab:my-table}
\resizebox{1 \textwidth}{!}{
\begin{tabular}{ccccccccccccccc}
\hline
\multicolumn{1}{l}{} & \multicolumn{7}{c}{weqr} & \multicolumn{7}{c}{qwe} \\ \hline
\multicolumn{1}{|c|}{} & \multicolumn{1}{c|}{qweifh} & \multicolumn{1}{c|}{sfhawd} & \multicolumn{1}{c|}{aefdaa} & \multicolumn{1}{c|}{wsedddwe} & \multicolumn{1}{c|}{ddadddd} & \multicolumn{1}{c|}{aedaedf} & \multicolumn{1}{c|}{dddddd} & \multicolumn{1}{c|}{dddddd} & \multicolumn{1}{c|}{ddddd} & \multicolumn{1}{c|}{ddddddd} & \multicolumn{1}{c|}{ddddd} & \multicolumn{1}{c|}{ddddd} & \multicolumn{1}{c|}{ddddd} & \multicolumn{1}{c|}{ddddddd} \\ \hline
\multicolumn{1}{|c|}{ddd} & \multicolumn{1}{c|}{1} & \multicolumn{1}{c|}{2} & \multicolumn{1}{c|}{3} & \multicolumn{1}{c|}{4} & \multicolumn{1}{c|}{5} & \multicolumn{1}{c|}{5} & \multicolumn{1}{c|}{6} & \multicolumn{1}{c|}{7} & \multicolumn{1}{c|}{} & \multicolumn{1}{c|}{89} & \multicolumn{1}{c|}{0} & \multicolumn{1}{c|}{-} & \multicolumn{1}{c|}{9} & \multicolumn{1}{c|}{9} \\ \hline
\multicolumn{1}{|c|}{ddddd} & \multicolumn{1}{c|}{\textbf{-}} & \multicolumn{1}{c|}{\textbf{-}} & \multicolumn{1}{c|}{-} & \multicolumn{1}{c|}{\textbf{-}} & \multicolumn{1}{c|}{\textbf{-}} & \multicolumn{1}{c|}{-} & \multicolumn{1}{c|}{\textbf{-}} & \multicolumn{1}{c|}{\textbf{-}} & \multicolumn{1}{c|}{-} & \multicolumn{1}{c|}{\textbf{-}} & \multicolumn{1}{c|}{\textbf{-}} & \multicolumn{1}{c|}{-} & \multicolumn{1}{c|}{9} & \multicolumn{1}{c|}{9} \\ \hline
\multicolumn{1}{|c|}{ddddd} & \multicolumn{1}{c|}{\textbf{-}} & \multicolumn{1}{c|}{\textbf{-}} & \multicolumn{1}{c|}{-} & \multicolumn{1}{c|}{\textbf{-}} & \multicolumn{1}{c|}{\textbf{-}} & \multicolumn{1}{c|}{-} & \multicolumn{1}{c|}{\textbf{-}} & \multicolumn{1}{c|}{\textbf{-}} & \multicolumn{1}{c|}{-} & \multicolumn{1}{c|}{\textbf{-}} & \multicolumn{1}{c|}{\textbf{-}} & \multicolumn{1}{c|}{-} & \multicolumn{1}{c|}{9} & \multicolumn{1}{c|}{9} \\ \hline
\multicolumn{1}{|c|}{ddd} & \multicolumn{1}{c|}{\textbf{-}} & \multicolumn{1}{c|}{\textbf{-}} & \multicolumn{1}{c|}{-} & \multicolumn{1}{c|}{\textbf{-}} & \multicolumn{1}{c|}{\textbf{-}} & \multicolumn{1}{c|}{-} & \multicolumn{1}{c|}{\textbf{-}} & \multicolumn{1}{c|}{\textbf{-}} & \multicolumn{1}{c|}{-} & \multicolumn{1}{c|}{\textbf{-}} & \multicolumn{1}{c|}{\textbf{-}} & \multicolumn{1}{c|}{-} & \multicolumn{1}{c|}{9} & \multicolumn{1}{c|}{9} \\ \hline
\multicolumn{1}{|c|}{\textbf{}} & \multicolumn{4}{c|}{\textbf{rtyrtyrtytryrtyrt}} & \multicolumn{10}{c|}{\textbf{tyututryrytr}} \\ \hline
\multicolumn{1}{|c|}{\textbf{q}} & \multicolumn{1}{c|}{w} & \multicolumn{1}{c|}{e} & \multicolumn{1}{c|}{eee} & \multicolumn{1}{c|}{e} & \multicolumn{1}{c|}{e} & \multicolumn{1}{c|}{e} & \multicolumn{1}{c|}{e} & \multicolumn{1}{c|}{e} & \multicolumn{1}{c|}{e} & \multicolumn{1}{c|}{e} & \multicolumn{1}{c|}{e} & \multicolumn{1}{c|}{e} & \multicolumn{1}{c|}{e} & \multicolumn{1}{c|}{dddd} \\ \hline
\multicolumn{1}{|c|}{ddd} & \multicolumn{1}{c|}{1} & \multicolumn{1}{c|}{2} & \multicolumn{1}{c|}{3} & \multicolumn{1}{c|}{4} & \multicolumn{1}{c|}{5} & \multicolumn{1}{c|}{5} & \multicolumn{1}{c|}{6} & \multicolumn{1}{c|}{7} & \multicolumn{1}{c|}{} & \multicolumn{1}{c|}{89} & \multicolumn{1}{c|}{0} & \multicolumn{1}{c|}{-} & \multicolumn{1}{c|}{9} & \multicolumn{1}{c|}{9} \\ \hline
\multicolumn{1}{|c|}{ddddd} & \multicolumn{1}{c|}{\textbf{-}} & \multicolumn{1}{c|}{\textbf{-}} & \multicolumn{1}{c|}{-} & \multicolumn{1}{c|}{\textbf{-}} & \multicolumn{1}{c|}{\textbf{-}} & \multicolumn{1}{c|}{\textbf{-}} & \multicolumn{1}{c|}{\textbf{-}} & \multicolumn{1}{c|}{\textbf{-}} & \multicolumn{1}{c|}{-} & \multicolumn{1}{c|}{\textbf{-}} & \multicolumn{1}{c|}{\textbf{-}} & \multicolumn{1}{c|}{-} & \multicolumn{1}{c|}{9} & \multicolumn{1}{c|}{9} \\ \hline
\multicolumn{1}{|c|}{ddddd} & \multicolumn{1}{c|}{\textbf{-}} & \multicolumn{1}{c|}{\textbf{-}} & \multicolumn{1}{c|}{-} & \multicolumn{1}{c|}{\textbf{-}} & \multicolumn{1}{c|}{\textbf{-}} & \multicolumn{1}{c|}{\textbf{-}} & \multicolumn{1}{c|}{\textbf{-}} & \multicolumn{1}{c|}{\textbf{-}} & \multicolumn{1}{c|}{-} & \multicolumn{1}{c|}{\textbf{-}} & \multicolumn{1}{c|}{\textbf{-}} & \multicolumn{1}{c|}{-} & \multicolumn{1}{c|}{9} & \multicolumn{1}{c|}{9} \\ \hline
\multicolumn{1}{|c|}{ddd} & \multicolumn{1}{c|}{\textbf{-}} & \multicolumn{1}{c|}{\textbf{-}} & \multicolumn{1}{c|}{-} & \multicolumn{1}{c|}{\textbf{-}} & \multicolumn{1}{c|}{\textbf{-}} & \multicolumn{1}{c|}{\textbf{-}} & \multicolumn{1}{c|}{\textbf{-}} & \multicolumn{1}{c|}{\textbf{-}} & \multicolumn{1}{c|}{-} & \multicolumn{1}{c|}{\textbf{-}} & \multicolumn{1}{c|}{\textbf{-}} & \multicolumn{1}{c|}{-} & \multicolumn{1}{c|}{9} & \multicolumn{1}{c|}{9} \\ \hline
\end{tabular}
}
\end{table*}

\end{document}

答案1

正如评论所指出的,您的根本问题是您采用了非常宽的表格并调整了其大小。正是出于这个原因,调整大小(几乎?)总是一个坏主意。

我强烈建议您阅读有关在 LaTeX 中创建表格的说明。 \multicolumn{1}{}{}这几乎是没有必要的,您可以通过在 的参数中指定垂直线来实现相同的效果tabular。这样您的实际源代码就更容易阅读了。

很难说,因为你输入的是垃圾数据而不是假数据,但根据\multicolumn你使用的较长命令,似乎你将四个表塞进了一张表中。在这种情况下,显而易见的答案是将它们分开。

我非常喜欢 booktabs 及其处理表格数据的方法。猜测一下如何拆分这些表格,最终会得到以下结果:

\documentclass{article}
\usepackage{booktabs}

\begin{document}

\begin{table}\centering
\caption{weqr}
\label{tab:weqr}
\begin{tabular}{cccccccc}
\toprule
& qweifh & sfhawd & aefdaa & wsedddwe & ddadddd & aedaedf & dddddd \\\midrule
ddd & 1 & 2 & 3 & 4 & 5 & 5 & 6 \\
ddddd & - & - & - & - & - & - & - \\
ddddd & - & - & - & - & - & - & - \\
ddd & - & - & - & - & - & - & - \\\bottomrule
\end{tabular}
\end{table}

\begin{table}\centering
\caption{rtyrtyrtytryrtyrt}\label{tab:rtyrtyrtytryrtyrt}
\begin{tabular}{ccccc}\toprule
q & w & e & eee & e \\\midrule
ddd & 1 & 2 & 3 & 4 \\
ddddd & - & - & - & - \\
ddddd & - & - & - & - \\
ddd & - & - & - & - \\\bottomrule
\end{tabular}
\end{table}

\begin{table}\centering
\caption{qwe}\label{tab:qwe}
\begin{tabular}{cccccccc}\toprule
& dddddd & ddddd & ddddddd & ddddd & ddddd & ddddd & ddddddd \\ \midrule
ddd & 7 &  & 89 & 0 & - & 9 & 9 \\
ddddd & - & - & - & - & - & 9 & 9 \\
ddddd & - & - & - & - & - & 9 & 9 \\
ddd & - & - & - & - & - & 9 & 9 \\ \bottomrule
\end{tabular}
\end{table}

\begin{table}\centering
\caption{tyututryrytr}\label{tab:tyututryrytr}
\begin{tabular}{ccccccccccc}\toprule
q & e & e & e & e & e & e & e & e & e & dddd \\ \midrule
ddd & 5 & 5 & 6 & 7 &  & 89 & 0 & - & 9 & 9 \\
ddddd & - & - & - & - & - & - & - & - & 9 & 9 \\
ddddd & - & - & - & - & - & - & - & - & 9 & 9 \\
ddd & - & - & - & - & - & - & - & - & 9 & 9 \\ \bottomrule
\end{tabular}
\end{table}

\end{document}

代码输出

有了四个表格,你可能最终会不喜欢 TeX 的表格放置方式。看看https://tex.stackexchange.com/a/39019/107497如何处理这个问题。

相关内容