自用的xetex-beamer模板,xeCJK支持

JACK posted @ 2009年7月07日 06:45 in linux with tags xetex xeCJK Beamer png , 9706 阅读


源自http://www.cnblogs.com/agateriver/archive/2007/04/01/696153.html,

 

非常感谢,修改字体设置,根据自己的情况添加xeCJK支持

 

\documentclass[dvipdfm]{beamer%dvipdfm选项是关键,否则编译统统通不过
\usepackage{fontspec,xunicode,xltxtra,beamerthemesplit}
\usepackage[slantfont,boldfont]{xeCJK} % 允许斜体和粗体
\usetheme{Luebeck}


\setCJKmainfont{Microsoft YaHei}   % 设置缺省中文字体
\setCJKmonofont{SimSun}   % 设置等宽字体
\setmainfont{TeX Gyre Pagella} % 英文衬线字体
\setmonofont{Microsoft YaHei} % 英文等宽字体
\setsansfont{Trebuchet MS} % 英文无衬线字体


\title{Beamer包与\XeTeX 应用示例}
\author{jack (seu)}
\date{\today}

\begin{document}
\XeTeXlinebreaklocale "zh"  % 表示用中文的断行
\XeTeXlinebreakskip = 0pt plus 1pt % 多一点调整的空间
\frame{\titlepage}
\section*{大纲}
\frame{\tableofcontents }

\section{介绍}
\subsection{Beamer类和XeTeX概览} %如果你想书签不出现问题,请不要用\XeTeX
                                %这类复杂的指令,直接写XeTeX吧
\frame {
   \frametitle{Beamer类的特点}
   \begin{itemize}
       \item<1-> 普通的\LaTeX
       \item<2-> Easy overlays
       \item<3-> 不需要外部程序
   \end{itemize}
   \XeTeXpicfile "./logo.png" xscaled 100 yscaled 100 %插图也没有问题
        % The [options] in the \XeTeXpicfile command use the following keywords:
        % width <dimen>
        % height <dimen>
        % scaled <scalefactor>
        % xscaled <scalefactor>
        % yscaled <scalefactor>
        % rotated <degrees>
}
\frame {
   \frametitle{\XeTeX 的特点}
   \begin{itemize}
       \item<1-> 完美支持Unicode
       \item<2-> 生成可\textbf{复制/拷贝/搜索/无乱码书签}的PDF文档
       \item<3-> 支持常用\LaTeX
   \end{itemize}
}

\subsection{用XeTeX 和beamer包制作演示文稿(幻灯片)}
\frame {
   \frametitle{准备活动}
   \begin{itemize}
  \item<1-> TexLive 2007 with \XeTeX (\the\XeTeXversion\XeTeXrevision)\& beamer
  \item<2-> 支持UTF-8编码的文本编辑器,因为\XeTeX 要求源代码以UTF-8格式存储
   \end{itemize}
}

\end{document}
 

 

 

 

Avatar_small
dalezxr 说:
Oct 23, 2013 05:57:18 PM

我删除了dvipdfm用xelatex编译就ok了,感谢

Avatar_small
Rajasthan 11th Quest 说:
Aug 16, 2022 06:57:31 PM

The Rajasthan Secondary Education Act of 1957 established the Board of Secondary Education, Rajasthan, which is often known by the abbreviation BSER. It was created with the goal of regulating and managing the educational system in the state of Rajasthan. Important Question Paper for BSER 11th in 2023, There are several public and private schools in Rajasthan that are associated with this board all of these schools operate under this board's supervision and are also governed by it. Rajasthan 11th Question Paper 2023 RBSE +1 Question Paper 2023 Raj Board Plus One Exam Paper Many students from this state took the class 11th exams this year as well, and they are all currently awaiting the BSER 11th results.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter