beamer tex 模板
\documentclass{beamer}
\mode<presentation> {
\usetheme{Madrid}
\usefonttheme[onlymath]{serif}
\usecolortheme{rose}
%\setbeamertemplate{footline}
%若要删除所有幻灯片中的页脚,请取消注释此行
%\setbeamertemplate{footline}[页码]
%若要用简单的幻灯片计数替换所有幻灯片中的页脚,请取消注释此行
%\setbeamertemplate{导航符号}{}
%要删除所有幻灯片底部的导航符号,请取消注释此行
}
\usepackage{listings} % 代码块
\usepackage{bookmark} % 删除 rerunfile 警告
\usepackage{graphicx} % 允许包含图像
\usepackage{booktabs} % 允许在表中使用\toprule、\ midrule和\ bottomrule
\usepackage[UTF8,heading]{ctex} % 使用中文输入及显示
\usepackage[bookmarks=true]{hyperref}
\usepackage{xcolor}
\usepackage{ulem}
\usepackage{silence}
\WarningFilter{fontspec}{Font shape}
\WarningFilter{latexfont}{Font shape}
\WarningFilter{fontspec}{Some font shapes}
\WarningFilter{latexfont}{Some font shapes} % 屏蔽中文斜体警告!
\definecolor{mygreen}{rgb}{0,0.6,0}
\definecolor{mygray}{rgb}{0.5,0.5,0.5}
\definecolor{mymauve}{rgb}{0.58,0,0.82}
\lstset{ % 代码块支持
backgroundcolor=\color{white}, % choose the background color
basicstyle=\footnotesize\ttfamily, % size of fonts used for the code
columns=fullflexible,
tabsize=4,
breaklines=true, % automatic line breaking only at whitespace
captionpos=b, % sets the caption-position to bottom
commentstyle=\color{mygreen}, % comment style
escapeinside={\%*}{*)}, % if you want to add LaTeX within your code
keywordstyle=\color{blue}, % keyword style
stringstyle=\color{mymauve}\ttfamily, % string literal style
frame=none,
rulesepcolor=\color{red!20!green!20!blue!20},
% identifierstyle=\color{red},
language=c++,
}
%-----------------------------------
% 以下为正文
%-----------------------------------
\title[简短标题]{完整标题}
% 简短标题显示在每张幻灯片的底部,完整标题仅在标题页上
\author{你的名字} % Your name
\date{\today} % 日期,可以更改为自定义日期
\begin{document}
\begin{frame}
\titlepage % 将标题页打印为第一张幻灯片
\end{frame}
\begin{frame}
\frametitle{Overview} % 目录幻灯片,注释此块以将其删除
\tableofcontents % 在整个演示过程中,如果您选择使用\ section{}和\ submission{}命令,这些命令将自动打印在此幻灯片上,作为演示的概述
\end{frame}
%-----------------------------------
% 开始创建PPT
%-----------------------------------
\section{section}
\subsection{题目描述}
\begin{frame}
\frametitle{点击输入文字}
嗯嗯是呀是呀
\end{frame}
\end{document}
本文来自博客园,作者:caijianhong,转载请注明原文链接:https://www.cnblogs.com/caijianhong/p/19069520
浙公网安备 33010602011771号