看板LaTeX
标 题表格上颜色
发信站(null) (Thu Jan 31 04:57:50 2013)
转信站ptt!news.ntu!ctuews.n!news.nctu!stanfordtanford.edu!ld4no6648599pbb.0!
Try this
\documentstyle{a4paper}[book]
\usepackage{colortbl}
% Color a column via colortbl
\begin{document}
\newcolumntype{C}{>{\columncolor{red!30!yellow}}c} % define a column style C
\begin{tabular}{|c|C|c} \hline
1 & colored & 2\\ \hline
3 & colored & 4\\ \hline
\end{tabular}
\end{document}