我使用了 Beamer 的新加坡主题,并做了一些修改。我想编辑序言,这样部分名称就不会出现在导航栏中,并为进度指示器(圆圈)腾出空间。我的母语是西班牙语,我不得不使用谷歌翻译,所以请原谅任何语言连贯性的不足。
序言 (LyX)
\usepackage{listings}
\usetheme{Singapore}
\makeatletter
\setbeamertemplate{footline}{%
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.5ex,dp=1ex,center]{author in head/foot}%
\usebeamerfont{author in head/foot}\insertshortauthor\expandafter\ifblank\expandafter{\beamer@shortinstitute}{}{~~(\insertshortinstitute)}
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.5ex,dp=1ex,center]{title in head/foot}%
\usebeamerfont{title in head/foot}\insertshorttitle
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.5ex,dp=1ex,leftskip=2ex,rightskip=2ex,sep=0pt]{section in head/foot}%
\hfill%
\usebeamerfont{section in head/foot}%
\insertsection%
\hfill%
\usebeamercolor[fg]{page number in head/foot}%
\usebeamerfont{page number in head/foot}%
\usebeamertemplate{page number in head/foot}%
\end{beamercolorbox}}%
\vskip0pt%
}
\makeatother
\setbeamercolor{author in head/foot}{use=structure,fg=black,bg=structure.fg!40!white}
\setbeamercolor{title in head/foot}{use=structure,fg=white,bg=structure.fg!90!white}
\setbeamercolor{section in head/foot}{use=structure,fg=black,bg=structure.fg!40!white}
\useoutertheme{miniframes}
\usepackage{etoolbox}
\useinnertheme{rounded}
\newif\ifnavbeforecurrent
\pretocmd\insertnavigation{\navbeforecurrenttrue}{}{}
\defbeamertemplate*{mini frame in current subsection}{changing}[1][50]
{%
\begin{pgfpicture}{0pt}{0pt}{0.1cm}{0.1cm}
\pgfpathcircle{\pgfpoint{0.05cm}{0.05cm}}{0.05cm}
\ifnavbeforecurrent
\pgfusepath{fill,stroke}
\else
\pgfusepath{stroke}
\fi
\end{pgfpicture}%
}
\setbeamertemplate{mini frame in current subsection}[changing]
\defbeamertemplate*{mini frame}{changing}
{%
\begin{pgfpicture}{0pt}{0pt}{0.1cm}{0.1cm}
\pgfpathcircle{\pgfpoint{0.05cm}{0.05cm}}{0.05cm}
\pgfusepath{fill,stroke}
\end{pgfpicture}%
\global\navbeforecurrentfalse
}
\setbeamertemplate{mini frame}[changing]
\setbeamercovered{invisible}
% or whatever (possibly just delete it)
\setbeamertemplate{navigation symbols}{}
%\usecolortheme{seahorse}
%\usecolortheme{rose}
\usepackage{ae,aecompl}
\usepackage{colortbl}
\usepackage[table]{xcolor}
\definecolor{gris}{gray}{0.85}
\usepackage{cancel}
\usepackage{epigraph}
\usepackage{colortbl}
\usepackage[table]{xcolor}
\definecolor{gris}{gray}{0.85}
\usepackage{textcomp}
\usepackage[many]{tcolorbox}
\useinnertheme[rounded=false]{tcolorbox}
\setbeamercolor{block title}{bg=structure, fg=white}
\setbeamercolor{block body}{bg=structure!40!, fg=black}
\setbeamertemplate{enumerate items}[square]
\addtobeamertemplate{block begin}{%
\setbeamercolor*{item}{fg=black}%
}{}
\setbeamercolor{block title example}{bg=orange!90!, fg=black}
\setbeamercolor{block body example}{bg=orange!40!, fg=black}
\setbeamertemplate{enumerate items}[square]
\addtobeamertemplate{block example begin}{%
\setbeamercolor*{item}{fg=black}%
}{}
\setbeamercolor{block title alerted}{bg=cyan!100!, fg=black}
\setbeamercolor{block body alerted}{bg=cyan!40!, fg=black}
\setbeamertemplate{enumerate items}[square]
\addtobeamertemplate{block alerted begin}{%
\setbeamercolor*{item}{fg=black}%
}{}
\usepackage{wrapfig}
\usepackage{lipsum}
\usepackage{blindtext}
答案1
您可以使用\setbeamertemplate{section in head/foot}{}
从标题中删除部分名称:
\documentclass{beamer}
\usetheme{Singapore}
%Para el pie de página estructurado
\makeatletter
% para los colores de los círculos del encabezado:
\useoutertheme{miniframes}
% Un indicador que nos dice cómo deben elaborarse los círculos
\newif\ifnavbeforecurrent
% Restablecer la bandera antes de cada barra de navegación
\pretocmd\insertnavigation{\navbeforecurrenttrue}{}{}
% Cambiar el código de dibujo del círculo para que cambie base en la señal
\defbeamertemplate*{mini frame in current subsection}{changing}[1][50]
{%
\begin{pgfpicture}{0pt}{0pt}{0.1cm}{0.1cm}
\pgfpathcircle{\pgfpoint{0.05cm}{0.05cm}}{0.05cm}
\ifnavbeforecurrent
\pgfusepath{fill,stroke}
\else
\pgfusepath{stroke}
\fi
\end{pgfpicture}%
}
\setbeamertemplate{mini frame in current subsection}[changing]
% Después de dibujar el círculo para el marco actual, cambiar la señal
\defbeamertemplate*{mini frame}{changing}
{%
\begin{pgfpicture}{0pt}{0pt}{0.1cm}{0.1cm}
\pgfpathcircle{\pgfpoint{0.05cm}{0.05cm}}{0.05cm}
\pgfusepath{fill,stroke}
\end{pgfpicture}%
\global\navbeforecurrentfalse
}
\setbeamertemplate{mini frame}[changing]
\setbeamertemplate{section in head/foot}{}
\begin{document}
\section{title}
\begin{frame}
abc
\end{frame}
\begin{frame}
abc
\end{frame}
\section{title}
\begin{frame}
abc
\end{frame}
\end{document}