我正在用 Beamer(主题华沙)准备一个演示文稿,我想从标题页和大纲页中删除页眉行(保留页脚行)。你能帮帮我吗?
Lyx 创建的代码源是:
% LyX 2.1.2 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[french]{beamer}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{1}
\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
% this default might be overridden by plain title style
\newcommand\makebeamertitle{\frame{\maketitle}}%
% (ERT) argument for the TOC
\AtBeginDocument{%
\let\origtableofcontents=\tableofcontents
\def\tableofcontents{\@ifnextchar[{\origtableofcontents}{\gobbletableofcontents}}
\def\gobbletableofcontents#1{\origtableofcontents}
}
\usetheme{Warsaw}
\usepackage{multicol}
\date{}
\usepackage{babel}
\makeatletter
\addto\extrasfrench{%
\providecommand{\og}{\leavevmode\flqq~}%
\providecommand{\fg}{\ifdim\lastskip>\z@\unskip\fi~\frqq}%
}
\makeatother
\begin{document}
\title[]{Title page}
\author[Jeudi $14$ Juillet $2016$]{Nejib MEDIOUNI\\
}
\makebeamertitle
\newcommand*\oldmacro{}%
\let\oldmacro\insertshorttitle%
\renewcommand*\insertshorttitle{%
\oldmacro\hfill%
\insertframenumber\,/\,\inserttotalframenumber}
\begin{frame}{Plan}
\tableofcontents{} [pausesections]
\end{frame}
\section{Section 1}
\section{Section 2}
\begin{frame}{Title frame}
test test test
\end{frame}
\end{document}
答案1
您可以暂时重新定义标题,如果将重新定义和框架放在group
或内{}
:
\documentclass[french]{beamer}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage[french]{babel}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{1}
\usetheme{Warsaw}
\makeatletter
% (ERT) argument for the TOC
\AtBeginDocument{%
\let\origtableofcontents=\tableofcontents
\def\tableofcontents{\@ifnextchar[{\origtableofcontents}{\gobbletableofcontents}}
\def\gobbletableofcontents#1{\origtableofcontents}
}
\addto\extrasfrench{%
\providecommand{\og}{\leavevmode\flqq~}%
\providecommand{\fg}{\ifdim\lastskip>\z@\unskip\fi~\frqq}%
}
\makeatother
\newcommand*\oldmacro{}%
\let\oldmacro\insertshorttitle%
\renewcommand*\insertshorttitle{%
\oldmacro\hfill%
\insertframenumber\,/\,\inserttotalframenumber}
\title[]{Title page}
\author[Jeudi $14$ Juillet $2016$]{Nejib MEDIOUNI}
\date{}
\begin{document}
\begingroup
\setbeamertemplate{headline}{}
\begin{frame}
\titlepage
\end{frame}
\endgroup
\begingroup
\setbeamertemplate{headline}{}
\addtobeamertemplate{frametitle}{\vspace*{-\headheight}}{}
\begin{frame}{Plan}
\tableofcontents{} [pausesections]
\end{frame}
\endgroup
\section{Section 1}
\section{Section 2}
\begin{frame}{Title frame}
test test test
\end{frame}
\end{document}
答案2
您可以简单地输入以下内容:
\begin{frame}[plain]
\titlepage
\end{frame}
参考文献:https://latex.org/forum/viewtopic.php?t=10356#
有了它,您就不需要进行如上所述的那么多调整。