有个宏包 tabularx 可以实现,例子如下:
\documentclass{article}
\usepackage{tabularx}
\begin{document}
\begin{tabular}{|l|c|r|}
\hline
foo & bar & fubar \\
fubar & toobar & foo \\
\hline
\end{tabular}
\vspace{1cm}
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}}|l|c|r|}
\hline
foo & bar & fubar \\
fubar & toobar & foo \\
\hline
\end{tabular*}
\vspace{1cm}
\begin{tabularx}{\textwidth}{|X|X|X|}
\hline
foo & bar & fubar \\
fubar & toobar & foo \\
\hline
\end{tabularx}
\end{document}







问 表格同页面一样宽和高,不管内容是否充满表格