`tabular` 的问题

`tabular` 的问题

使用以下代码

\documentclass[12pt,a4paper]{report}


\begin{document}


\section*{Work Experience}
  \begin{tabular}{r|p{13cm}}
 \textsc{Sebt.2011-Now}
 & Teaching Assistant, Department of Mathematics,
  University of California, Santa Barbara.\\
  & Delivered courses: ......\\
  \multicolumn{2}{c}{} \\
  \textsc{Feb.2011-May 2011}
  & Substitute teacher at ....%\\
 \end{tabular}



 \end{document} 

我明白了

在此处输入图片描述

哪里有问题?

答案1

p{13cm}太宽并产生 Overfull hbox。

tabularx我建议与列类型一起使用X

此外,您不必在第一列的每个单元格中写入内容,而是可以使用包以\textsc{...}这种方式创建新的列类型。\newcolumntype{R}{>{\scshape}r}array

\documentclass[12pt,a4paper]{report}
\usepackage{tabularx}
\usepackage{array}
\newcolumntype{R}{>{\scshape}r}
\begin{document}
\section*{Work Experience}
\begin{tabularx}{\linewidth}{R|X}
 Sebt.2011-Now
 & Teaching Assistant, Department of Mathematics,
  University of California, Santa Barbara.\\
  & Delivered courses: ......\\
  \multicolumn{2}{c}{} \\
 Feb.2011-May 2011
  & Substitute teacher at ....%\\
\end{tabularx}
\end{document} 

在此处输入图片描述

相关内容