latex 中文beamer模板

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%  這是一份 beamer 文檔. 本源文件僅供學習參考之用.                                         %%%
%%%  使用請註明出處. 本文作者擁有版權 (c)2017. 保留所有權利.                               %%%
%%%  若不能編譯通過, 可能是您的 beamer 需要更新了.                                             %%%
%%%  更新的具體方法可參考: http://bbs.ctex.org/forums/index.php?showtopic=27695 %%%
%%%  溫馨提示:文檔基本對所都的宏包和命令都加了註釋,一般情況下不要刪除,會發生錯誤喔 %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[CJK,notheorems,compress,mathserif,table,11pt]{beamer} %更改全文字體大小,設置xxpt(如9pt,10pt,.....)%一定要定義documentclass[cjk]{beamer},別忘了“cjk”,否則編譯不通過
%\useoutertheme[height=0.1\textwidth,width=0.15\textwidth,hideothersubsections]{sidebar}%加上此命令會出現上部和左側邊框
\usetheme{Madrid}%主題AnnArbor Antibes Bergen Berkeley Berlin Boadilla boxes CambridgeUS Copenhagen Darmstadt
                  %Dresden Frankfurt Goettingen Hannover Ilmenau JuanLesPins Luebeck Madrid MalmoeMarburg Montpellier
                  %PaloAlto Pittsburgh Rochester Singapore Szeged Warsaw
\usecolortheme{whale}           % 外部主題 Outer color themes: whale, seahorse, dolphin
\usecolortheme{orchid}          % 內部主題 Inner color themes: lily, orchid
\useinnertheme[shadow]{rounded} %陰影環繞
\setbeamercolor{sidebar}{bg=blue!60}%sidebar的顏色,百分之六十的藍色
\setbeamercolor{background canvas}{bg=blue!9}%背景色,百分之九的藍色
\usefonttheme{serif}            %排版幻燈片中較大的sans或serif字體
%%----------------------------------------常用宏包-----------------------------------------------
\usepackage{amsmath,amssymb}%美國數學會的數學公式宏包(amsmath)、美國數學會的數學符號宏包(amssymb)
\usepackage{amsfonts}%美國數學會提供一套數學符號的字庫
\usepackage{latexsym}%數學符號宏包(latexsym)
\usepackage{CJK}      %中文環境
\usepackage{times}    %使用 Times New Roman 字體
\usepackage{ulem}    %下劃線
\usepackage{caption} %提供了多種命令來更方便的設計浮動圖形和表格的標題式樣。
\usepackage{epsfig}  %eps圖像
\usepackage{epstopdf}%eps圖片轉PDF
\usepackage{graphicx}%圖形宏包
\usepackage{color}     %支持彩色
\usepackage{subfigure}%子圖片宏包
\usepackage{colortbl,dcolumn}
\usepackage{mathrsfs}%字母花寫
\usepackage{float}      %浮動環境
\usepackage{pause}   %暫停宏包
\usepackage{bm}       %加粗
\usepackage{bbm}     %再加粗
\usepackage{dsfont}  %一種字體包
\usepackage{pgf,tikz}%TikZ的基本ideas是使用點和路徑。pgf是一個在tex系統中的畫圖宏包,tex尤其是beamer中使用pgf作圖,“作精確圖還比較方便, 色彩銳麗”(huangzh73)。除了可以精確的作圖外,對於某些不要求精確控制的圖形繪製,如:流程圖,樹圖,等等,也提供了簡便易用的支持。
\usepackage[english]{babel}%%%%%
\usepackage{booktabs}%畫三線表,線條精細可變
\usepackage{xmpmulti}%支持文中的 \multiinclude 等命令, 使mp文件逐幀出現. 具體討論見beamer手冊.
\usepackage{hyperref}%超鏈接命令宏包
\hypersetup{linkcolor=blue,colorlinks=true,CJKbookmarks=true}%超鏈接命令

\usepackage{multirow}%表中的跨行合併宏包(本beamer不可使用跨列合併宏包)

%使用 metapost 動畫
%\usepackage{xmpmulti}
\DeclareGraphicsRule{*}{mps}{*}{}

%自定義二重和三重高斯積分符號
\def\ooint{{\bigcirc}\kern-13.2pt{\int}\kern-6.5pt{\int}}
\def\oooint{{\bigcirc}\kern-12.3pt{\int}\kern-7pt{\int}\kern-7pt{\int}}

%---------------------------------------計時器%-----------------------------------------------
\usepackage[font=HelvI,timeinterval=1,timeduration=20,colorwarningfirst=green,colorwarningsecond=red, timewarningfirst=25,timewarningsecond=75]{tdclock}
%timeinterval表示時間更新間隔
%timeduration表示設定的總時間 timewarningfirst和timewarningsecond分別表示第一次、第二次時間提醒百分值,同時可以更改顯示顏色(colorwarningfirst、colorwarningsecond)
%然後在\data里加入
%\date[\initclock \cronominutes\timeseparator\cronoseconds]{\today}
%其中\initclock必須有
%==========================================================
\setbeamertemplate{navigation symbols}{}    %此命令取消導航條,即翻頁命令,直達第一頁以及最後一頁的命令
%\setbeamertemplate{footline}[page number]{} %除掉頁面下方的信息條
\setbeamertemplate{caption}[numbered]      %圖和表格的標題顯示標號
\setbeamertemplate{definitions}[numbered] %默認定義環境是不顯示編號的,通過導言區使用開始使用定理編號
\setbeamertemplate{theorems}[numbered]   %定理的標題顯示標號
\theoremstyle{plain}                                     %定理環境風格,plain是LaTeX的原始風格

%====================logo圖標========================
%\pgfdeclareimage[height=1cm]{logo}{figures/LZU_logo.jpg}
%\logo{\pgfuseimage{logo}}

%\logo{\includegraphics[height=0.1\textwidth]{figures/LZU_logo.jpg}}

%===================自定義頁腳=======================
%\hypersetup{dvipdfm,linkcolor=blue,pdfstartview=FitH,
%            CJKbookmarks=true,
%            bookmarksnumbered=false,
%            bookmarksopen=true,
%            colorlinks=true, %註釋掉此項則交叉引用爲彩色邊框(將colorlinks和pdfborder同時註釋掉)
%            pdfborder=000,   %註釋掉此項則交叉引用爲彩色邊框
%            citecolor=magenta}
%\usefonttheme{professionalfonts}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\usefoottemplate{
%\hfill{\insertframenumber\,/ \inserttotalframenumber}
% \hfill{{\the\year}/{\the\month}/{\the\day}}
%}
%\setlength\tabcolsep{2pt}
%\renewcommand{\raggedright}{\leftskip=0pt \rightskip=0pt plus 0cm}
%\raggedright
%\setlength{\parindent}{22pt}
%\def\hilite<#1>{%
%\temporal<#1>{\color{blue!35}}{\color{magenta}}%
%{\color{blue!75}}}

%\newcolumntype{H}{>{\columncolor{blue!20}}c!{\vrule}}
%\newcolumntype{H}{>{\columncolor{blue!20}}c}、

%===================== 參考文獻========================
\newcommand{\upcite}[1]{\textsuperscript{\cite{#1}}}  %自定義命令\upcite, 使參考文獻引用以上標出現
\bibliographystyle{arabic}%參考文獻的命令
%另一種定義方式
%將參考文獻圖標改成標準格式(不然使用\bibitem{}文獻標號就是個小信封圖標),\begin{document}之前添加如下:
\setbeamertemplate{bibliography item}[text]

%============自定義: 逐個 item 高亮(\hilite), 或"高黑"(\hidark)============
\def\hilite<#1>{%
\temporal<#1>{\color{blue!35}}{\color{magenta}}%
{\color{blue!75}}}
\def\hidark<#1>{%
\temporal<#1>{\color{black!35}}{\color{magenta}}%
{\color{black}}}
%%%%%%%%%%%%%%%%%%%%%自定義腳註%%%%%%%%%%%%%%%%%%%%%%%%
  \rnode[t]{bza}{\psframebox*[fillcolor=yellow,framesep=0pt,
    linestyle=none]{#1}}
%  \rnode[t]{bza}{\textcolor{blue}{$<$#1$>$}}
  \footnote{
     \rnode[c]{bzb}{\psframebox*[fillcolor=magenta,%bianzhucolor,
        linestyle=none,framearc=0.15]
        {\parbox{25mm}{\small #2}}}
     \ncangles[angleA=-90,angleB=180,armA=0.5ex,armB=3ex,linecolor=red,linewidth=1pt]{bza}{bzb}
  }
}
%%%%%%%%%%%% 重定義字體、字號命令 %%%%%%%%%%%%%
\newcommand{\songti}{\CJKfamily{song}}        % 宋體
\newcommand{\fangsong}{\CJKfamily{fs}}        % 仿宋體
\newcommand{\kaishu}{\CJKfamily{kai}}         % 楷體
\newcommand{\heiti}{\CJKfamily{hei}}          % 黑體
\newcommand{\lishu}{\CJKfamily{li}}           % 隸書
\newcommand{\youyuang}{\CJKfamily{you}}       % 幼圓
%CTeX只添加了GBK編碼的六種中文字體(宋體、仿宋、楷體、黑體、隸書和幼圓)
\newcommand{\chaoda}{\fontsize{55pt}{\baselineskip}\selectfont}     % 字豪設置 超大號
\newcommand{\chuhao}{\fontsize{42pt}{\baselineskip}\selectfont}     % 字號設置 初號
\newcommand{\xiaochuhao}{\fontsize{36pt}{\baselineskip}\selectfont} % 字號設置 小初號
\newcommand{\yihao}{\fontsize{28pt}{\baselineskip}\selectfont}      % 字號設置 一號
\newcommand{\erhao}{\fontsize{30pt}{\baselineskip}\selectfont}      % 字號設置 二號
\newcommand{\xiaosan}{\fontsize{16pt}{\baselineskip}\selectfont}    % 字號設置 小三號
\newcommand{\sihao}{\fontsize{14pt}{\baselineskip}\selectfont}      % 字號設置 四號
\newcommand{\xiaosihao}{\fontsize{12pt}{\baselineskip}\selectfont}  % 字號設置 小四號
\newcommand{\wuhao}{\fontsize{10.5pt}{\baselineskip}\selectfont}    % 字號設置 五號
\newcommand{\xiaowuhao}{\fontsize{9pt}{\baselineskip}\selectfont}   % 字號設置 小五號
\newcommand{\liuhao}{\fontsize{7.875pt}{\baselineskip}\selectfont}  % 字號設置 六號
\newcommand{\qihao}{\fontsize{5.25pt}{\baselineskip}\selectfont}    % 字號設置 七號
\newcommand{\xiaoqihao}{\fontsize{5pt}{\baselineskip}\selectfont}   % 字號設置 小七號
\newcommand{\bahao}{\fontsize{2pt}{\baselineskip}\selectfont}       % 字號設置 八號

%===============行或者列的空格命令=======================
\newcommand{\vs}{\vspace{10 pt}}%行間空的距離爲10pt大小,產生垂直方向的空白
\newcommand{\hs}{\hspace{21 pt}}%使用命令\hspace{長度}生成水平方向的空格,如\hspace{1cm}長度單位cm可爲mm,em,in,pt
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%==================定義圖,公式、表編號等格式=============
\numberwithin{figure}{section}%\numberwithin是amsmath宏包定義的命令,用在\usepackage{amsmath}後面
\numberwithin{table}{section}
\numberwithin{equation}{section}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\hypersetup{pdfpagemode=FullScreen}% 設置用acrobat打開就會全屏顯示
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
  \begin{CJK*}{GBK}{kai}%楷體
%=============在每一小節{section}之前都顯示一下目錄===================
\AtBeginSection[xxxx大學]{
     \frametitle{目錄}\small
   \tableofcontents[currentsection,currentsubsection,subsectionstyle=show/show/hide]
 }
%===================================================
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%======================頁面首頁======================
    \title[\songti\color{white}{第十次習題課ppt}]{\heiti{第十次習題課ppt}}
    \author[SJTU-Math]{本次ppt使用了XX同學的作業作爲樣板,特此說明。如覺不妥(侵權),請聯繫助教xxx}
    %{\center{\fangsong 答~辯~人:~~~\textcolor[rgb]{0.00,0.00,0.90}{~~x~x~x~~~~~~~~~~~~~~~~~~}}\\
%     \center{\fangsong 導~~~~~~師:~~~\textcolor[rgb]{0.00,0.00,0.90}{x~x~x~教~授~~~~~~~~~~~~}}\\
%     \center{\fangsong~~~~~~~~~~~~~~~~\textcolor[rgb]{0.00,0.00,0.90}{~~x~x~x~副~教~授}~~~~~~~}\\
%     \center{\fangsong~~專~~~~~~業:~~\textcolor[rgb]{0.00,0.00,0.90}{~計~算~數~學~~~~~~~~~~~~~~~~~~~}}\\
%     \center{\fangsong{~方~~~~~~向:~~\textcolor[rgb]{0.00,0.00,0.90}{~數值代數及其應用~~~~~}}}}

   \institute[SJTU-Math]{\fontsize{10pt}{0pt}\selectfont SJTU-Math}%{\textcolor[rgb]{0.85,0.42,0.00}{\fontsize{10pt}{0pt}\selectfont SJTU-Math}}
   \date[\initclock \cronominutes\timeseparator\cronoseconds]{}%此命令爲計時器
   %\titlegraphic{\includegraphics[height=1.35cm]{figures/LZU_logo.jpg}}
  \frame{\titlepage }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newtheorem{theorem}{定理}[section]
\newtheorem*{THEOREM}{定理(續)}%自定義不參與編號定理
\newtheorem{definition}{定義}[section]
\newtheorem{lemma}[theorem]{引理}
\newtheorem{corollary}[theorem]{推論}
\newtheorem*{COROLLARY}{推論(續)}%自定義不參與編號推論
\newtheorem{proposition}{命題}
\newtheorem{example}{例}[section]
\newtheorem{remark}{注}
\newtheorem{conjecture}{猜想}
\newtheorem{method}{方法}
\renewcommand\figurename{\rm 圖}
\renewcommand\tablename{\bf 表}
%%%%%%%%%%%%%%%%%%%開始每個frame的編寫就好%%%%%%%%%%%%%%%%

\begin{frame}

內容

\end{frame}

參考文獻的樣例

\begin{frame}{References}
%\bibliographystyle{model1-num-names}
\bibliographystyle{plain}
\begin{thebibliography}{3}
\bibitem{bai2010modified}
Z.-Z. Bai, M. Benzi, F. Chen, Modified HSS iteration methods for a class of complex symmetric linear systems, Computing
87 (2010) 93–111.

\bibitem{Hezari2016A}
D. Hezari, D. K. Salkuyeh, V. Edalatpour, A new iterative method for solving a class of complex symmetric system of
linear equations, Numer. Algor. 73 (2016) 1–29.

\bibitem{Zheng2017Double}
 Z. Zheng, F. L. Huang, Y. C. Peng, Double-step scale splitting iteration method for a class of complex symmetric linear
systems, Appl. Math. Lett. 73 (2017).

\bibitem{Chengliang2018On}
C.-L. Li, C.-F. Ma, On Euler-extrapolated Hermitian/skew-Hermitian splitting method for complex symmetric linear
systems, Appl. Math. Lett. (2018).

\bibitem{Huang2014A}
Y. M. Huang, A practical formula for computing optimal parameters in the HSS iteration methods, J. Comput. Appl.
Math. 255 (2014) 142–149.
\end{thebibliography}
\end{frame}

\end{CJK*}
\end{document}

 

這是本人在別人的基礎上進行了完善,解決了諸如超鏈接,參考文獻,計時器,目錄,表格跨行合併等問題,供大家學習參考

發佈了16 篇原創文章 · 獲贊 4 · 訪問量 4505
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章