beamer 使用杂记

/rowcolors是 xcolor 包里的命令,需要选项 table 的支持,
所以在 beamer 里使用这个命令需要在 documentclass 的选项
中增加 table
/documentclass[.., table, ..]{beamer}
 
这个命令可以使表格带上背景色,它的语法是:
/rowcolors[<command>]{n}{color1}{color2}
各个参数的解释还是看 xcolor 的文档吧:)
 
下面是一个简单的例子:
 
p, li { white-space: pre-wrap; }

/begin{frame}

 

/rowcolors[]{1}{blue!10}{white!20}

/begin{tabular}{l!{/vrule}cccc}   %第一列左对齐,其它4列居中

Class & A & B & C & D // /hline

X & 1 & 2 & 3 & 4 /pause //   %/pause 琢帧播放

Y & 5 & 6 & 7 & 8 /pause //

Z & 9 & 0 & 1 & 2 //

/end{tabular}

/end{frame}

Table
 

 

To generate the pdf file, just use latex ppt.tex

 

Whereas for the PDFScreen, use pdflatex pdfscreen.tex to generate pdf

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值