现在的位置: 首页 > 综合 > 正文

beamer 使用杂记

2014年01月01日 ⁄ 综合 ⁄ 共 540字 ⁄ 字号 评论关闭

/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

 

抱歉!评论已关闭.