![`tabular` 的问题](https://linux22.com/image/386937/%60tabular%60%20%E7%9A%84%E9%97%AE%E9%A2%98.png)
使用以下代码
\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}