对于我的演示,我使用的是汉诺威主题。但是,我想更改侧边栏的内容。默认情况下,侧边栏在左上角区域显示“简短作者”和简短标题。我想删除它们,在侧边栏中仅保留章节和子章节标题。
有人知道怎么做吗?
这是我的代码:
\documentclass[11pt]{beamer}%blackandwhite
\usepackage[spanish,portuguese,english]{babel}
\usepackage{amsmath,amssymb,amsthm}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}%gráficas
\usepackage{graphics}%gráficas
\usepackage{hyperref}%hypervinculo
%\usepackage{beamerarticle}
\usepackage{beamerprosper}
\usepackage{multicol}%varias columnas
\newtheorem*{ejem}{Ejemplo}
\newtheorem*{prop}{Proposición}
\newtheorem*{teor}{Teorema}
\newtheorem*{defin}{Definición}
\newtheorem*{lema}{Lema}
\newtheorem*{algoritmo}{Algoritmo}
\newtheorem*{cor}{Corolario}
\mode<presentation> {
\usetheme{Hannover}
\usefonttheme{serif}
\usecolortheme{beaver}
}
\setbeamercovered{dynamic}
%\logo{\includegraphics[height=1.5cm]{img.eps}}
\setbeamertemplate{enumerate items}[default]
\setbeamertemplate{theorems}[ams style]
\setbeamercolor{alerted text}{fg=blue}
%EDITION OF INFOLINES
\makeatletter
\setbeamertemplate{headline}{
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=\paperwidth,ht=2.75ex,dp=1ex,center]{author in head/foot}%
\usebeamerfont{section in head/foot}%\insertsubsection\hspace*{2ex} esta linea sin el % produce la franja roja arriba
\end{beamercolorbox}}
}
\setbeamertemplate{footline}{
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
\usebeamerfont{title in head/foot}\insertshorttitle
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
\usebeamerfont{title in head/foot}\insertshortinstitute
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}%
\usebeamerfont{date in head/foot}\insertshortdate{}\hspace*{2em}
\insertframenumber{} / \inserttotalframenumber\hspace*{2ex}
\end{beamercolorbox}}%
\vskip0pt%
}
\makeatother
%EDITION OF SECCIONES Y SUBSECIONES IN THE SIDEBAR
\setbeamercolor{section in sidebar}{fg=black!90, bg=white}%color-sombra barra lateral
%\setbeamerfont{section in sidebar}{series=\bfseries}%letra barra lateral
\setbeamercolor{sidebar}{bg=gray!90}%color del fondo de la barra lateral
\setbeamerfont{sidebar}{family=\rmfamily\selectfont}
%\setbeamerfont{section in sidebar}{size=\fontsize{2}{4}\selectfont}
%\setbeamerfont{subsection in sidebar}{size=\fontsize{2}{4}\selectfont}
%\setbeamerfont{subsubsection in sidebar}{size=\fontsize{2}{4}\selectfont}
%\setbeamercolor{section in sidebar}{bg=white,fg=black!80}
%\setbeamercolor{subsection in sidebar}{bg=white,fg=black!50}
\usefonttheme{serif}
\useoutertheme{infolines}% numera las diapositivas
\setbeamertemplate{page number in head/foot}[totalframenumber]
\setbeamertemplate{navigation symbols}{\footnotesize\usebeamertemplate{page number in head/foot}}
\title[\textsc{aaa }]{\textrm{AAAAAAA}}
\author[\textsc{}bb]{\textsc{BBBBBS}}
\institute[]{ \textrm{uuul \\ UUUUU}\\ \vspace{0.3cm}}
\date{}
%\AtBeginSection[]{\frame{\frametitle{Index}\tableofcontents[current]}}
\begin{document}
%\bibliographystyle{amsplain}%Estilo de bibliografia
\frame{\titlepage}
%\part{Talk}
%\frame{\frametitle{Index}\tableofcontents[part=1]}
\section{}
% Slide 1
\begin{frame}{Contents}
\begin{enumerate}[<+->]
\item A
\item Ac
\end{enumerate}
\pause
\end{frame}
\part{Talk}
\section{Overview}
%Slide 2
\begin{frame}{Overview}
\end{frame}
\subsection{Introduction}
\begin{frame}
asbdf
\end{frame}
\end{document}