Latex Beamer簡單模板

\documentclass[nofonts]{beamer}

%使用ctex宏包支持中文
\usepackage{ctex}
%支持表格樣式
\usepackage{booktabs}

%設置中文字體
\setCJKmainfont[ItalicFont={AR PL UKai CN}]{Droid Sans Fallback}

%使用beamer默認主題
\usetheme{AnnArbor}
%使用顏色主題
\usecolortheme{beaver}

\begin{document}

%定義封面信息
\title{Test}
\author{Zhu Yi}
\date{\today}

%封面頁
\begin{frame}[plain]
    \titlepage
\end{frame}

%目錄頁
\begin{frame}[plain]{目錄}
    \tableofcontents
\end{frame}

%開始ppt正文
\section{第一部分}
    \begin{frame}{這是標題}{這是副標題}
        % 列布局
        \begin{columns}[onlytextwidth]
            % 將ppt按列分爲1:8:1 三個區域
             \column{.1\textwidth}
             \column{.8\textwidth}
            % 有序列表
             \begin{enumerate}
                 \item 有序列表項1
                 \item 有序列表項2
                 \item 有序列表項3
                     % 無序列表
                     \begin{itemize}
                         \item 無序列表項1
                         \item 無序列表項1
                     \end{itemize}
             \end{enumerate}
             \column{.1\textwidth}
         \end{columns}
    \end{frame}

\section{第二部分}  
    \begin{frame}{一個美麗的公式}
        $$\alpha = \sum_{i=1}^M$$
    \end{frame}

    \begin{frame}{一個美麗的表格}
    \begin{table}[htbp]
        \caption{交叉驗證結果}
        \centering
            \begin{tabular}{ccccc}
                \toprule
                OrgNF   &  PrecisionBefore  & Precision &   Recall & F-Measure \\  
                \midrule
                100 &  0.578 & 0.581 &   0.449   &  0.442 \\
                500 &  0.747 & 0.738 &   0.703   &  0.706 \\
                700 &  0.767 & 0.766 &   0.745   &  0.746 \\
                1000 & 0.774 & 0.795 &   0.767   &  0.770  \\
                2000 & 0.792 & 0.851 &   0.842   &  0.842 \\
                5000 & 0.808 & 0.873 &   0.869   &  0.868 \\
                \bottomrule
            \end{tabular}
    \end{table}

    \end{frame}

\end{document}
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章