下面的表格占据了整个页面,因此非常大,我想知道我缺少什么才能将文本大小设为 11,从而让表格相应地重新配置。我猜这与我的 \resizebox 代码有关,但不确定我需要输入什么来更正它。
谢谢
封装和表代码:
- \usepackage{tabularx}
- \usepackage{graphicx}
\begin{table}[h!]
\centering
\resizebox{\textwidth}{!}{%
\begin{tabular}{|c|}
\hline
Organisations Name \\
\hline
U.S. Chamber of Commerce \\
National Association of Manufacturers \\
American Council of Life Insurers \\
National Insurance Association \\
Securities and investment companies \\
American Hospital Association \\
Tobbaco companies \\
Airlines \\
Automobile companies \\
Defense contractors \\
National Federation of Independent Businesses \\
\hline
\end{tabular}}
\caption{Subset of groups to represent business interests }
\label{table:3}
\end{table}
答案1
我看不出有任何理由将表格扩大到tabular
横跨整个文本块的宽度。我会将表格中的材料左对齐,省略所有垂直条,并且只使用间距合适的水平线。threeparttable
如果标题的宽度不大于表格材料的宽度,则使用环境。
\documentclass[11pt]{article}
\usepackage{booktabs,threeparttable}
\begin{document}
\begin{table}[h!]
\centering % optional
\begin{threeparttable} % force caption to have same width as tabular
\begin{tabular}{@{}l@{}}
\toprule
Organisation Names \\
\midrule
U.S. Chamber of Commerce \\
National Association of Manufacturers \\
American Council of Life Insurers \\
National Insurance Association \\
Securities and investment companies \\
American Hospital Association \\
Tobbaco companies \\
Airlines \\
Automobile companies \\
Defense contractors \\
National Federation of Independent Businesses \\
\bottomrule
\end{tabular}
\caption{Subset of groups to represent business interests }
\label{table:3}
\end{threeparttable}
\end{table}
\end{document}