表格大小问题

表格大小问题

我目前在乳胶中处理的表格遇到了麻烦。宽度没问题,我知道如何调整垂直间距,但字体大小让任何人都无法阅读。每次我都会得到一个修复阅读问题的代码。宽度又成了问题。当我修复宽度时,垂直高度又成了问题。代码和编译后的结果。我可以将 [1ex] 调整得更大,但这不会影响文本大小

答案1

一些建议:

  • 首先,去掉\resizebox包装纸。

  • 将表格置于横向模式。

  • tabular将环境(其 4 列c(居中、无换行符))替换为tabularx环境,所有 4 列都允许换行。

  • 使第四列的宽度与前三列的宽度加起来大致一样;请参阅下面的代码了解如何实现这一点。

  • 不要过度使用大胆的:标题行和左侧列都不需要它。

  • 去掉所有垂直线,使用更少但间距适当的水平线,使表格看起来更加开放;利用booktabs包的宏\toprule\midrule\addlinespace\bottomrule

  • \SI使用包的宏排版数量和科学单位siunitx

在此处输入图片描述

\documentclass{article} % or some other suitable document class
\usepackage[letterpaper,margin=1in]{geometry} % set page paramters suitably
\usepackage{tabularx,ragged2e,booktabs,siunitx,rotating}
\sisetup{per-mode=symbol}
\newcolumntype{L}[1]{>{\RaggedRight\hsize=#1\hsize}X} % variable-width X-column

\begin{document}
\begin{sidewaystable} % switch to landscape format
\begin{tabularx}{\textwidth}{@{} *{3}{L{0.66667}} L{2} @{}} % 3*0.667+2=4=# of X-columns
\toprule
Battery Type &
Largest Capacity (Commercial Unit) &
Location and Application &
Comments \\
\midrule
Leat Acid (Flooded Type) &
\SI{10}{\mega\watt}/\SI{40}{\mega\watt\hour} &
California --- Chino Load Leveling &
$\eta={}$72--78\%;
cost 50--150;
lifespan 1000--2000 cycles at 70\% depth of discharge;
operating temperature \SI{-5}{\degree} to \SI{40}{\degree};
\SI{25}{\watt\hour\per\kilogram};
self-discharge 2--5\%/month;
frequent maintenance to replace water lost during operation;
heavy
\\ \addlinespace % "\addlinespace" inserts vertical whitespace
Lead Acid (Valve Regulated) &
\SI{300}{\kilo\watt}/\SI{80}{\kilo\watt\hour} & 
Turn key system\slash load levelling &
$\eta={}$72--78\%;
cost \dots
\\ \addlinespace
Nickel Cadmium (NiCd) &
\SI{27}{\mega\watt}\slash \SI{6.75}{\mega\watt\hour} &
GVEA Alaska Contol Power Supply Var Compensation &
$\eta={}$72--78\%;
cost \dots
\\ \addlinespace
Sodium Sulphur (NaS) &
\SI{9.6}{\mega\watt}\slash\SI{64}{\mega\watt\hour} &
Tokyo Japan Load Levelling &
$\eta={}$79\% at \SI{325}{\degree};
lifespan \dots
\\ \addlinespace
Lithium Ion (Li-Ion) & & &
$\eta={}$100\%; 
cost 700--1000;
lifespan 3000 cycles at 80\% depth of discharge;
operating temperature \dots
\\
\bottomrule 
\end{tabularx}
\caption{Battery technologies --- Characteristics and commercial units used in  \dots}
\end{sidewaystable}
\end{document}

相关内容