发布时间:2010-11-13 22:48:48
文章类别:表格制作
原文地址:http://blog.sina.com.cn/s/blog_5e16f1770100muaq.html

QQ群:91940767/145316219/141877998/80300084/194770436
淘宝店:http://latexstudio.taobao.com
技巧续篇:http://latexstudio.net/
常见数学公式问题集下载

今天讲的是最简单的背景色设置。
LaTeX技巧418:如何添加table背景色

最简单的方法就是用xcolor宏包提供的colorbox来实现。
想请参看:http://www.ctan.org/tex-archive/macros/latex/contrib/xcolor/
代码如下:
\colorbox[cmyk]{.40,0,0,0}{%
\begin{tabular}{l|r|r}
\multicolumn{1}{l|}
{\large\textbf{Table title}}\\[2mm]
\textbf{Description} & \textbf{Column 1}
& \textbf{Column 2} \\[1mm]\hline
Row one & {mmmmm} & {mmmm} \\\hline
Row two & {mmmm} & {mmm} \\\hline
Row three& {mmmmm} & {mmmmm}\\\hline
Row four & {mmmmm} & {mmmm} \\\hline
Totals & mmmmm & mmmmm
\end{tabular}}


更多的背景色制作,后面博文会逐步介绍

点赞(0)

评论列表 共有 0 条评论

暂无评论
立即
投稿

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部