1. \documentclass{beamer}
  2.  
  3. \mode<presentation>
  4. {
  5. \usetheme{CambridgeUS} % or try Darmstadt, Madrid, Warsaw, ...
  6. % \usecolortheme{default} % or try albatross, beaver, crane, ...
  7. % \usefonttheme{default} % or try serif, structurebold, ...
  8. \setbeamertemplate{navigation symbols}{}
  9. \setbeamertemplate{caption}[numbered]
  10. }
  11.  
  12. \usepackage{graphicx} % Allows including images
  13. \usepackage{booktabs} % Allows the use of \toprule, \midrule and \bottomrule in tables
  14. \usepackage{fontspec}
  15. \setsansfont{Hiragino Sans GB} % font name is case-sensitive
  16.  
  17. \title[你好]{你好啊} % The short title appears at the bottom of every slide, the full title is only on the title page
  18.  
  19. \author{黄世宇} % Your name
  20. \institute[THU] % Your institution as it will appear on the bottom of every slide, may be shorthand to save space
  21. {
  22. 清华大学计算机科学与技术系 \\ % Your institution for the title page
  23. \medskip
  24. \textit{huangsy13@gmail.com} % Your email address
  25. }
  26. \date{\today} % Date, can be changed to a custom date
  27.  
  28. \begin{document}
  29.  
  30. \begin{frame}
  31. \titlepage % Print the title page as the first slide
  32. \end{frame}
  33.  
  34. \begin{frame}
  35. \frametitle{Overview} % Table of contents slide, comment this block out to remove it
  36. \tableofcontents % Throughout your presentation, if you choose to use \section{} and \subsection{} commands, these will automatically be printed on this slide as an overview of your presentation
  37. \end{frame}
  38.  
  39. %----------------------------------------------------------------------------------------
  40. % PRESENTATION SLIDES
  41. %----------------------------------------------------------------------------------------
  42.  
  43. %------------------------------------------------
  44. \section{背景介绍} % Sections can be created in order to organize your presentation into discrete blocks, all sections and subsections are automatically printed in the table of contents as an overview of the talk
  45. %------------------------------------------------
  46.  
  47. \subsection{主要应用} % A subsection can be created just before a set of slides with a common theme to further break down your presentation into chunks
  48.  
  49. \begin{frame}
  50. \frametitle{Paragraphs of Text}
  51. Sed iaculis dapibus gravida. Morbi sed tortor erat, nec interdum arcu. Sed id lorem lectus. Quisque viverra augue id sem ornare non aliquam nibh tristique. Aenean in ligula nisl. Nulla sed tellus ipsum. Donec vestibulum ligula non lorem vulputate fermentum accumsan neque mollis.\\~\\
  52.  
  53. Sed diam enim, sagittis nec condimentum sit amet, ullamcorper sit amet libero. Aliquam vel dui orci, a porta odio. Nullam id suscipit ipsum. Aenean lobortis commodo sem, ut commodo leo gravida vitae. Pellentesque vehicula ante iaculis arcu pretium rutrum eget sit amet purus. Integer ornare nulla quis neque ultrices lobortis. Vestibulum ultrices tincidunt libero, quis commodo erat ullamcorper id.
  54. \end{frame}
  55.  
  56. %------------------------------------------------
  57.  
  58. \begin{frame}
  59. \frametitle{Bullet Points}
  60. \begin{itemize}
  61. \item Lorem ipsum dolor sit amet, consectetur adipiscing elit
  62. \item Aliquam blandit faucibus nisi, sit amet dapibus enim tempus eu
  63. \item Nulla commodo, erat quis gravida posuere, elit lacus lobortis est, quis porttitor odio mauris at libero
  64. \item Nam cursus est eget velit posuere pellentesque
  65. \item Vestibulum faucibus velit a augue condimentum quis convallis nulla gravida
  66. \end{itemize}
  67. \end{frame}
  68.  
  69. %------------------------------------------------
  70.  
  71. \begin{frame}
  72. \frametitle{Blocks of Highlighted Text}
  73. \begin{block}{Block }
  74. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer lectus nisl, ultricies in feugiat rutrum, porttitor sit amet augue. Aliquam ut tortor mauris. Sed volutpat ante purus, quis accumsan dolor.
  75. \end{block}
  76.  
  77. \begin{block}{Block }
  78. Pellentesque sed tellus purus. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Vestibulum quis magna at risus dictum tempor eu vitae velit.
  79. \end{block}
  80.  
  81. \begin{block}{Block }
  82. Suspendisse tincidunt sagittis gravida. Curabitur condimentum, enim sed venenatis rutrum, ipsum neque consectetur orci, sed blandit justo nisi ac lacus.
  83. \end{block}
  84. \end{frame}
  85.  
  86. %------------------------------------------------
  87.  
  88. \begin{frame}
  89. \frametitle{Multiple Columns}
  90. \begin{columns}[c] % The "c" option specifies centered vertical alignment while the "t" option is used for top vertical alignment
  91.  
  92. \column{.\textwidth} % Left column and width
  93. \textbf{Heading}
  94. \begin{enumerate}
  95. \item Statement
  96. \item Explanation
  97. \item Example
  98. \end{enumerate}
  99.  
  100. \column{.\textwidth} % Right column and width
  101. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer lectus nisl, ultricies in feugiat rutrum, porttitor sit amet augue. Aliquam ut tortor mauris. Sed volutpat ante purus, quis accumsan dolor.
  102.  
  103. \end{columns}
  104. \end{frame}
  105.  
  106. %------------------------------------------------
  107. \section{Second Section}
  108. %------------------------------------------------
  109.  
  110. \begin{frame}
  111. \frametitle{Table}
  112. \begin{table}
  113. \begin{tabular}{l l l}
  114. \toprule
  115. \textbf{Treatments} & \textbf{Response } & \textbf{Response }\\
  116. \midrule
  117. Treatment & 0.0003262 & 0.562 \\
  118. Treatment & 0.0015681 & 0.910 \\
  119. Treatment & 0.0009271 & 0.296 \\
  120. \bottomrule
  121. \end{tabular}
  122. \caption{Table caption}
  123. \end{table}
  124. \end{frame}
  125.  
  126. %------------------------------------------------
  127.  
  128. \begin{frame}
  129. \frametitle{Theorem}
  130. \begin{theorem}[Mass energy equivalence]
  131. $E = mc^$
  132. \end{theorem}
  133. \end{frame}
  134.  
  135. %------------------------------------------------
  136.  
  137. \begin{frame}[fragile] % Need to use the fragile option when verbatim is used in the slide
  138. \frametitle{Verbatim}
  139. \begin{example}[Theorem Slide Code]
  140. \begin{verbatim}
  141. \begin{frame}
  142. \frametitle{Theorem}
  143. \begin{theorem}[Mass--energy equivalence]
  144. $E = mc^$
  145. \end{theorem}
  146. \end{frame}\end{verbatim}
  147. \end{example}
  148. \end{frame}
  149.  
  150. %------------------------------------------------
  151.  
  152. \begin{frame}
  153. \frametitle{Figure}
  154. Uncomment the code on this slide to include your own image from the same directory as the template .TeX file.
  155. %\begin{figure}
  156. %\includegraphics[width=0.8\linewidth]{test}
  157. %\end{figure}
  158. \end{frame}
  159.  
  160. %------------------------------------------------
  161.  
  162. \begin{frame}[fragile] % Need to use the fragile option when verbatim is used in the slide
  163. \frametitle{Citation}
  164. An example of the \verb|\cite| command to cite within the presentation:\\~
  165.  
  166. This statement requires citation \cite{p1}.
  167. \end{frame}
  168.  
  169. %------------------------------------------------
  170.  
  171. \begin{frame}
  172. \frametitle{References}
  173. \footnotesize{
  174. \begin{thebibliography}{} % Beamer does not support BibTeX so references must be inserted manually as below
  175. \bibitem[Smith, ]{p1} John Smith ()
  176. \newblock Title of the publication
  177. \newblock \emph{Journal Name} (), -- .
  178. \end{thebibliography}
  179. }
  180. \end{frame}
  181.  
  182. %------------------------------------------------
  183.  
  184. \begin{frame}
  185. \Huge{\centerline{The End}}
  186. \end{frame}
  187.  
  188. %----------------------------------------------------------------------------------------
  189.  
  190. \end{document}

Beamer加中文的更多相关文章

  1. Arch-Linux-添加中文字体

    代码下载: Arch-Linux-添加中文字体.txt

  2. Delphi中 为DBNavigator的按钮加中文

    Delphi中 为DBNavigator的按钮加中文 /*Delphi中数据库控件DBNavigator使用起来不错,但是按钮上“+”.“-”等含义对于中国的用户不习惯,甚至不知道是什么含义.改成相应 ...

  3. tensorboard可视化节点却没有显示图像的解决方法---注意路径问题加中文文件名

    问题:完成graph中的算子,并执行tf.Session后,用tensorboard可视化节点时,没有显示图像 1. tensorboard 1.10 我是将log文件存储在E盘下面的,所以直接在E盘 ...

  4. 有时候,Visual C++代码中加中文注释会导致错误!

    今天做题发现了个奇葩错误,以此警戒自己. 张某,做的一道题. --------------------------------------------------------------------- ...

  5. python opencv3 给图片加中文

    转自:https://www.cnblogs.com/arkenstone/p/6961453.html opencv3.2将中文输出到图片上 opencv自带的putText函数无法输出utf8类型 ...

  6. easyui------添加中文文件

    添加中文文件: 官网地址:http://www.jeasyui.net/download/去jquery-easyui官网下载的文件里面找到easyui-lang-zh_CN.js文件,添加入代码里面 ...

  7. url取值乱码问题,url加中文导致页面不能加载问题 js unicode转码,以及解码

    很多时候写H5或其他适配时,打不开url.很多原因是因为浏览器不支持中文url,从url拿 出来的中文值也会乱码,这时候就必须把中文转化成Unicode值,去进行页面传值 中文转Unicode fun ...

  8. 为DBNavigator的按钮加中文

    转自:http://hi.baidu.com/debiansir/item/0699f5b6bb4d99f063388e71 /*Delphi中数据库控件DBNavigator使用起来不错,但是按钮上 ...

  9. 【Lucene3.6.2入门系列】第14节_SolrJ操作索引和搜索文档以及整合中文分词

    package com.jadyer.solrj; import java.util.ArrayList; import java.util.List; import org.apache.solr. ...

随机推荐

  1. Java几种常见的四舍五入的方法

    /* * 在上面简单地介绍了银行家舍入法,目前java支持7中舍入法: 1. ROUND_UP:远离零方向舍入.向绝对值最大的方向舍入,只要舍弃位非0即进位. 2. ROUND_DOWN:趋向零方向舍 ...

  2. javascript(JQuery)元素操作

    html代码如下: <div id="picK"> <ul> <li style="float:left;width:90px;" ...

  3. redis深入研究

    Redis 设计思路学习与总结 https://cloud.tencent.com/developer/article/1004464 Redis 设计思路学习与总结 下半年利用空余时间研究和分析了部 ...

  4. cs-Filters

    ylbtech-Unitity: cs-Filters HealthcareAuthorizeAttribute.cs HealthcareHandleErrorAttribute.cs Health ...

  5. MyBatis学习-偏实践(单独MyBatis项目)

    准备先把MyBatis搞熟悉了,然后把SpringMVC搞熟悉了. MyBatis的材料,除了我之前自己实验的 http://www.cnblogs.com/charlesblc/p/5906431. ...

  6. Lucene的学习及使用实验

    实验一下Lucene是怎么使用的. 参考:http://www.importnew.com/12715.html (例子比较简单) http://www.yiibai.com/lucene/lucen ...

  7. 物联仓储系统ZigBee组网原理

    在嵌入式项目物联仓储系统中,使用cortexM0模拟仓库,cortex-A9模拟服务器,两块开发板之间使用ZigBee技术实现数据接收和发送,本文就介绍一下ZigBee组网的原理和相关步骤. 1.组网 ...

  8. Tomcat:IOException while loading persisted sessions: java.io.EOFException 解决

    转自:http://www.blogjava.net/apple0668/archive/2007/10/12/152383.html Tomcat启动时如下错误: 严重: IOException w ...

  9. 使用tornado实现用户认证

    关于用户的登录状态,一部分的应用程序是采用session实现的. HTTP是一个无状态协议,用户的每次请求都是相互独立的,HTTP本身意识不到用户是否登录. 很多web框架选择将session存放在c ...

  10. [Mac A]如何学习Mac编程?

    http://ourcoders.com/thread/show/5550/ @tinyfool 看了您在quora上回答的『为什么说程序员是最好的职业』,加上本来就想学编程(但是一直以来因为各种借口 ...