패키지를 사용하여 열 머리글만 rowcolor로 숨겨야 합니다 tabu
. 열 머리글 뒤의 테이블 본문 첫 번째 행은 "청록색" 색상으로 시작해야 합니다. 옵션이 있습니까?
hiderowcolors
옵션 showrowcolors
이 tabu에서 작동하지 않습니까?
\documentclass{book}
\usepackage{tabu}
\usepackage[table]{xcolor}
\begin{document}
\def\tabuprocesstable#1#2#3{
\taburowcolors[1]1{cyan .. white}\fontsize{8bp}{10bp}\selectfont%
#1\par%
#2\par%
#3%
}
\def\colhead{\bfseries\sffamily}
\tabuprocesstable{}{\begin{tabu}{p{100pt}p{100pt}}
\tabucline{-}
\colhead{Column head 1}&\colhead{Column head 2}\\
Total non-current&Employee benefits\vphantom{yg}\\
Total non-current&Employee benefits\\
Total non-current&Employee benefits\\
Total non-current&Employee benefits\\
\tabucline{-}
\end{tabu}}{}
\bigskip\bigskip
\tabuprocesstable{}{\begin{tabu}{p{100pt}p{100pt}}
\tabucline{-}
%\hiderowcolors
\colhead{Column head 1}&\colhead{Column head 2}\\
\colhead{Column head 3}&\colhead{Column head 4}\\
%\showrowcolors
Total non-current&Employee benefits\vphantom{yg}\\
Total non-current&Employee benefits\\
Total non-current&Employee benefits\\
Total non-current&Employee benefits\\
\tabucline{-}
\end{tabu}}{}
\end{document}