如果表格太宽,如何调整表格尺寸

如果表格太宽,如何调整表格尺寸

大家好,我有一个关于如何调整论文中表格宽度的问题。代码如下。由于表格中同一行的内容太多,所以对于我的论文来说,表格看起来太大了。我该如何解决这个问题?我已经尝试过命令 resizebox,但效果不佳。

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{enumerate}
\usepackage{graphicx} 
\usepackage{amssymb}
\usepackage{multicol}
\usepackage{multirow}
\usepackage{makecell}
\usepackage{threeparttable}

\begin{document}
\begin{table}[ht]
\scriptsize
\caption{}
\begin{threeparttable}
\begin{tabular}{ccccc}
\hline         
\hline
Low
& \multicolumn{2}{l}{\makecell[l]{19. Leathers,Furs and related products (1.35\%)\\21. Furniture Manufacturing (1.48\%)\\18. Garments, Footwear and Related Products (1.55\%) \\ 43. Recycling  and Disposal of Waste (1.56\%)\\ 42. Manufacturing, n.e.c. (1.57\%) \\20. Timber Processing and Related Products (1.72\%) \\24.  Cultural,Edu. and Sport Goods (2.61\%) \\ 17. Textiles (2.74\%) \\13. Food Processing (3.77\%) \\ 34. Metal Products (3.86\%) }} 
& \multicolumn{2}{l}{%
  \begin{tabular}[c]{@{}l@{}}\makecell[l]{19. Leathers,Furs and related products (4.17\%) \\18. Garments, Footwear and Related Products (5.39\%)\\ 42. Manufacturing, n.e.c. (5.67\%) \\24.  Cultural,Edu. and Sport Goods (5.87\%) \\ 17. Textiles (6\%)  \\21. Furniture Manufacturing (7.67\%)\\20. Timber Processing and Related Products (7.76\%)  \\29. Rubber Products (9.88\%) \\31. Nonmetal Mineral Products (10.01\%)\\30. Plastic Products (10.02\%)}
  \end{tabular}} \\
\hline
\end{tabular}
\end{threeparttable}
\end{table}

\end{document}

答案1

我不明白为什么您指定tabular环境有五列,而实际上只有三列。我会去掉\multicolumn\makecell包装器,并使用tabularx环境来允许在两个数据列中自动换行(带有悬挂缩进);还将数据列中的几乎所有实例替换\\\newline

哦,我想从改为\scriptsize——\small你的读者会感激你这种善良和善意的姿态。

在此处输入图片描述

\documentclass{article}
\usepackage[english]{babel}
\usepackage{threeparttable}
\newlength\mylen
\settowidth\mylen{\small 19.\space} % measure width of hanging indentation
\usepackage{tabularx,ragged2e,booktabs}
\newcolumntype{L}{>{\RaggedRight\hangafter=1\hangindent=\mylen}X}
\renewcommand\tabularxcolumn[1]{m{#1}}

\begin{document}

\begin{table}[ht]
\small % '\scriptsize' is much too small for comfortable reading
\begin{threeparttable}
\caption{\dots} 
\begin{tabularx}{\textwidth}{@{}cLL@{}}
\toprule
Low  & 
19. Leathers, furs and related products (1.35\%)\newline
21. Furniture manufacturing (1.48\%)\newline
18. Garments, footwear and related products (1.55\%) \newline 
43. Recycling and disposal of waste (1.56\%)\newline 
42. Manufacturing, n.e.c. (1.57\%) \newline
20. Timber processing and related products (1.72\%) \newline
24. Cultural, edu.\ and sport goods (2.61\%) \newline 
17. Textiles (2.74\%) \newline
13. Food processing (3.77\%) \newline 
34. Metal products (3.86\%) 
& 
19. Leathers, furs and related products (4.17\%) \newline
18. Garments, footwear and related products (5.39\%)\newline 
42. Manufacturing, n.e.c. (5.67\%) \newline
24. Cultural, edu.\ and sport goods (5.87\%) \newline 
17. Textiles (6\%) \newline
21. Furniture manufacturing (7.67\%)\newline
20. Timber processing and related products (7.76\%) \newline
29. Rubber products (9.88\%) \newline
31. Nonmetal mineral products (10.01\%)\newline
30. Plastic products (10.02\%) 
\\
\bottomrule
\end{tabularx}
\end{threeparttable}
\end{table}

\end{document}

相关内容