
Estou preparando uma apresentação com o seguinte tema:
\useoutertheme[height=0pt,width=3cm,left]{sidebar}
\usecolortheme{dove,sidebartab}
Gostaria de alterar a cor da fonte da seção/subseção destacada e também colocá-la em negrito:
\documentclass{beamer}
\useoutertheme[height=0pt,width=3cm,left]{sidebar}
\usecolortheme{dove,sidebartab}
\setbeamercolor{section in sidebar}{fg=white, bg=black}
\setbeamerfont{section in sidebar}{series=\bfseries}
\begin{document}
\section{Section 1}
\section{Subsection 1.1}
\begin{frame}
abc
\end{frame}
\section{Subsection 1.2}
\section{Section 2}
\section{Subsection 2.1}
\section{Subsection 2.2}
\begin{frame}
abc
\end{frame}
\end{document}
Infelizmente, \setbeamerfont{section in sidebar}{series=\bfseries}
torna cada seção/subseção em negrito, não apenas a destacada.
Responder1
Você deseja modificar\setbeamercolor{section in sidebar}{fg=blue, bg=red}
\documentclass{beamer}
\useoutertheme[height=0pt,width=3cm,left]{sidebar}
\usecolortheme{dove,sidebartab}
\setbeamercolor{section in sidebar}{fg=blue, bg=red}
\begin{document}
\section{test}
\begin{frame}
abc
\end{frame}
\section{testtest}
\begin{frame}
abc
\end{frame}
\end{document}
Para alterar a fonte de volta para sem negrito, você pode fazer o seguinte:
\documentclass{beamer}
\useoutertheme[height=0pt,width=3cm,left]{sidebar}
\usecolortheme{dove,sidebartab}
%Colours
\setbeamercolor{section in sidebar}{fg=blue, bg=red}
% Fonts
\setbeamerfont{section in sidebar}{series=\bfseries}
\setbeamerfont{section in sidebar shaded}{series=\normalfont}
\makeatletter
\setbeamertemplate{section in sidebar shaded}
{%
\vbox{%
\vskip1ex%
\beamer@sidebarformat{3pt}{section in sidebar shaded}{\usebeamerfont{section in sidebar shaded}\insertsectionhead}%
}%
}
\makeatother
\begin{document}
\section{Section 1}
\begin{frame}
abc
\end{frame}
\section{Subsection 1.1}
\begin{frame}
abc
\end{frame}
\section{Subsection 1.2}
\section{Section 2}
\section{Subsection 2.1}
\section{Subsection 2.2}
\begin{frame}
abc
\end{frame}
\end{document}