一丶改变行宽并使字体处于行中间
1. 在前面导入宏包array
\documentclass{article}
\usepackage{array}
\usepackage{tabularx}
\usepackage{booktabs}
2. 在\begin{tabular*}{0.9\linewidth}{@{}lccc@{}}前面添加\renewcommand{\arraystretch}{1.5} ,1.5是1.5倍于之前行宽的意思。
\begin{table*}[]
\caption{Literature review}
\centering
\label{tab_fwsc}
\renewcommand{\arraystretch}{1.5} % Increase row height
\begin{tabular*}{0.9\linewidth}{@{}lccc@{}}

二丶改变列宽并使字体列处于列中间
- 添加代码:\setlength{\tabcolsep}{6mm}{%%里面包括了整个tabular},注意图中括号的位置。
- 改变毫米数,选择适合的列宽
\begin{table*}
\caption{Model parameter selection and experimental design}
\centering
\renewcommand{\arraystretch}{1.2} %改变行宽
\label{Table7}
\setlength{\tabcolsep}{6mm}{ %注意右括号,6mm的毫米数自己尝试几次
\begin{tabular}{@{}cccccc@{}}
%你的表格内容
\end{tabular}}
\end{table*}

本文介绍了如何在LaTeX中使用array和tabularx宏包改变表格的行宽和列宽,以及如何设置字体居中。通过调整arraystretch和 abcolsep实现更美观的表格布局。
2万+

被折叠的 条评论
为什么被折叠?



