Tag Archives: beamer

用 xelatex + beamer 做幻灯片

这篇文章里面写了怎么实现 latex 中文混排,使用 beamer 是基于那个的,所以先把那个搞定。 然后安装好 dev-tex/latex-beamer。 下面是一个例子文件。 \documentclass{beamer}   \mode<presentation> { % \usetheme[blue,noshadow]{Trondheim} % \usetheme[blue,minimal]{Trondheim} % \usetheme[blue,compress,numbers,nonav]{Trondheim} %\usetheme[sand,compress,numbers,nonav,innovation]{Trondheim} %\usetheme[sand,compress,numbers,nonav]{Trondheim} \usetheme{Berlin} %\usecolortheme{ntnuold} \usefonttheme[onlymath]{serif} \setbeamercovered{transparent} % 上面这段是使用 beamer 的哪个theme, 具体看 beamer 自带的例子里面的效果吧 }   \usepackage{fontspec} \newfontfamily\zhfont[BoldFont=Microsoft YaHei]{Microsoft YaHei} %设置中文 \newfontfamily\zhpunctfont{Microsoft YaHei} % 设置中文   \setmainfont{Consolas} %这里设置英文衬线字体 \setmonofont{Consolas} %英文等宽字体 \setsansfont{Consolas} %英文无衬线字体   \usepackage{zhspacing} \zhspacing   \title{测试标题} \author{wd} [...]