![如何使表格中的文本以自定义宽度居中?](https://linux22.com/image/379509/%E5%A6%82%E4%BD%95%E4%BD%BF%E8%A1%A8%E6%A0%BC%E4%B8%AD%E7%9A%84%E6%96%87%E6%9C%AC%E4%BB%A5%E8%87%AA%E5%AE%9A%E4%B9%89%E5%AE%BD%E5%BA%A6%E5%B1%85%E4%B8%AD%EF%BC%9F.png)
答案1
正如 Zarko 所评论的,使用简化的代码和在单元格顶部的一些垂直填充:
\documentclass[12pt,a4paper]{report}
\usepackage{array}
\begin{document}
\begin{center}
\setlength{\extrarowheight}{2pt}
\begin{tabular}{|c|>{\centering}m{10em}|*{4}{>{\centering\arraybackslash}m{3em}|}}
\hline
Equation & Linear Form & Y & X & m & c \\ \hline
\end{tabular}
\end{center}
\end{document}