![在 Beamer Warsaw 类中修改 Beamer Warsaw 中的标题形状](https://linux22.com/image/307795/%E5%9C%A8%20Beamer%20Warsaw%20%E7%B1%BB%E4%B8%AD%E4%BF%AE%E6%94%B9%20Beamer%20Warsaw%20%E4%B8%AD%E7%9A%84%E6%A0%87%E9%A2%98%E5%BD%A2%E7%8A%B6.png)
我想使用beamer:创建自己的标题主题自定义我的标题主题,但不幸的是,我的演示文稿以目录而不是标题页开始,并且没有
我希望我的演示文稿以不带计数器编号的 titepage 开始,然后计划(目录)从零开始
- 部分(此处为长文 I)
- 第节(此处为长文本 II)等等
\documentclass[hyperref={pdfpagemode=FullScreen,colorlinks=true},
xcolor={dvipsnames,svgnames,table}]{beamer}
\usepackage{concrete}
\usetheme{Warsaw}
\setbeamercovered{transparent}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english,french]{babel}
\usepackage{dsfont}
\usepackage{pifont}
\usepackage{enumitem}
\usepackage{pdfpages}% pour insérer des pages précises d’un pdf multipages
\setlength\parindent{0pt}
\title[Very Very Long title here ] %optional
{Very Very Long title here}
%\subtitle{A short story}
\author[Mohcine] % (optional, for multiple authors)
{Mohcine }
\institute[VFU] % (optional)
{
Faculty of Mathematics\\
Very Famous University
}
\date[VLC 2013] % (optional)
{Very Large Conference, March 2015}
%\logo{\includegraphics[height=1.5cm]{lion-logo.png}}
\usepackage{color}
\makeatletter
\def\colorizemath #1#2{%
\expandafter\mathchardef\csname orig:math:#1\endcsname\mathcode`#1
\mathcode`#1="8000
\toks@\expandafter{\csname orig:math:#1\endcsname}%
\begingroup
\lccode`~=`#1
\lowercase{%
\endgroup
\edef~{{\noexpand\color{#2}\the\toks@}}}%
}
\@for\@tempa:=a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z\do{%
\expandafter\colorizemath\@tempa{green}}
\@for\@tempa:=A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z\do{%
\expandafter\colorizemath\@tempa{green}}
\@for\@tempa:=0,1,2,3,4,5,6,7,8,9\do{%
\expandafter\colorizemath\@tempa{red}}
\makeatother
\everymath{\color{blue}}
\everydisplay{\color{blue}}
\definecolor{secinhead}{RGB}{249,196,95}
\definecolor{titlebg}{RGB}{51,51,51}
\setbeamercolor{secsubsec}{fg=secinhead,bg=black}
\setbeamercolor{frametitle}{fg=secinhead,bg=titlebg}
\usepackage{tikz}
\usetikzlibrary{shadings}
\definecolor{secinhead}{RGB}{249,196,95}
\definecolor{shadowbg}{RGB}{51,51,51}
\setbeamercolor{secsubsec}{fg=secinhead,bg=black}
\setbeamercolor{shadow}{fg=secinhead,bg=shadowbg}
\setbeamertemplate{headline}
{
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=\paperwidth,ht=8.25ex,dp=3.5ex]{secsubsec}%
\raggedright
\hspace*{2em}%
{\sffamily\Large\color{secinhead}\thesection.~\insertsection\hfill\insertsubsection}%
\hspace*{2em}%
\end{beamercolorbox}%
}\vskip-1pt%
\hbox{%
\tikz\draw[draw=none,top color=black,bottom color=shadowbg!60] (0,0) rectangle (\paperwidth,0.5);
}%
}
\begin{document}
\setbeamertemplate{navigation symbols}{}
\AtBeginSection[]
{
\begin{frame}
\frametitle{Table of Contents}
\tableofcontents[currentsection]
\end{frame}
}
\frame{\titlepage}
\section[Plan]{}
\begin{frame}[allowframebreaks]
\tableofcontents
\end{frame}
\begin{frame}
\frametitle{Table of Contents}
\tableofcontents
\end{frame}
\section[long text here I]{long text here I}
\begin{frame}
\end{frame}
\section[long text here II]{long text here II}
\begin{frame}
\end{frame}
\section[long text here III]{long text here III}
\begin{frame}
\end{frame}
\end{document}
答案1
该文件开头为
\AtBeginSection[]
{
\begin{frame}
\frametitle{Table of Contents}
\tableofcontents[currentsection]
\end{frame}
}
并且因为\AtBeginSection
与此框架分开(空行){\begin{frame}...
被视为演示文稿的一部分,而不是每个部分开始之前应该做的事情。如果删除或注释掉此空行,
\AtBeginSection[]
{
\begin{frame}
\frametitle{Table of Contents}
\tableofcontents[currentsection]
\end{frame}
}
或者
\AtBeginSection[]
%
{
\begin{frame}
\frametitle{Table of Contents}
\tableofcontents[currentsection]
\end{frame}
}
一切都会顺利。不过我建议还是回到\AtBeginSection
序言部分。