`

Tabular某一行加粗等特殊处理

阅读更多
\usepackage{array}

\newcolumntype{b}{>{\global\let\currentrowstyle\relax}}
\newcolumntype{t}{>{\currentrowstyle}}
\newcommand{\rowstyle}[1]{%
  \gdef\currentrowstyle{#1}%
  #1\ignorespaces
}

%具体使用
\begin{tabular}{|bc|tc|tc|}
\hline
\rowstyle{\bfseries}
A & B & C\\
simple & ... & ...\\
\end{tabular}

 

通过修饰各个具体表列,达到修饰整个row的目的。

主要是为了减少依赖和代码。

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics