Historique des modifications [retour]
cliquez ici pour masquer/afficher la révision 2
mineure

05 Aoû '17, 21:39

Pathe's gravatar image

Pathe
7.6k53211254

Voici une solution complètement inspirée de http://tex.stackexchange.com/questions/278789/beamer-mini-frame-navigation-bullet-color d'une [question](http://tex.stackexchange.com/questions/278789/beamer-mini-frame-navigation-bullet-color) posée sur le site [tex.stakexchange](http://tex.stackexchange.com). Il faut jouer avec des `\setbeamercolor` et des `\setbeamertemplate`. On définit deux couleurs (ActiveSection (*ActiveSection* pour la section en cours et InactiveSection *InactiveSection* pour le reste) grâce aux commandes `\colorlet` (ou `\definecolor`) de l'extension `xcolor`. \documentclass{beamer} \useoutertheme{miniframes} \beamertemplatenavigationsymbolsempty % définition des couleurs de sections actives/inactives \colorlet{ActiveSection}{beamer@blendedblue} \colorlet{InactiveSection}{red!25} \setbeamercolor*{mini frame}{fg=ActiveSection,bg=InactiveSection} \setbeamertemplate{mini frame in other section}[default][0] \setbeamertemplate{mini frame in other subsection}[default][0] \setbeamercolor{section in head/foot}{parent=palette tertiary,fg=ActiveSection} \setbeamertemplate{section in head/foot shaded}{\color{InactiveSection}\usebeamertemplate{section in head/foot}} \begin{document} \section{Titre section} \subsection{Titre sous-section 1.1} \begin{frame}[t]{Titre planche} \begin{block}{Titre bloc} \begin{itemize} \item Un \item Deux \end{itemize} \end{block} \end{frame} \begin{frame}[t]{Titre planche} \begin{block}{Titre bloc} \begin{itemize} \item Un \item Deux \end{itemize} \end{block} \end{frame} \subsection{Titre sous-section 1.2} \begin{frame}[t]{Titre planche} \begin{block}{Titre bloc} \begin{itemize} \item Un \item Deux \end{itemize} \end{block} \end{frame} \begin{frame}[t]{Titre planche} \begin{block}{Titre bloc} \begin{itemize} \item Un \item Deux \end{itemize} \end{block} \end{frame} \section{Titre section 2} \subsection{Titre sous-section 2.1} \begin{frame}[t]{Titre planche} \begin{block}{Titre bloc} \begin{itemize} \item Un \item Deux \end{itemize} \end{block} \end{frame} \begin{frame}[t]{Titre planche} \begin{block}{Titre bloc} \begin{itemize} \item Un \item Deux \end{itemize} \end{block} \end{frame} \subsection{Titre sous-section 2.2} \begin{frame}[t]{Titre planche} \begin{block}{Titre bloc} \begin{itemize} \item Un \item Deux \end{itemize} \end{block} \end{frame} \begin{frame}[t]{Titre planche} \begin{block}{Titre bloc} \begin{itemize} \item Un \item Deux \end{itemize} \end{block} \end{frame} \end{document} ![alt text][1] [1]: http://texnique.fr:80/osqa/upfiles/bullet.png
cliquez ici pour masquer/afficher la révision 1

03 Aoû '16, 18:55

pluton's gravatar image

pluton
1.2k22937

Voici une solution complètement inspirée de http://tex.stackexchange.com/questions/278789/beamer-mini-frame-navigation-bullet-color Il faut jouer avec des `\setbeamercolor` et des `\setbeamertemplate`. On définit deux couleurs (ActiveSection pour la section en cours et InactiveSection pour le reste) grâce aux commandes `\colorlet` (ou `\definecolor`) de l'extension `xcolor`. \documentclass{beamer} \useoutertheme{miniframes} \beamertemplatenavigationsymbolsempty % définition des couleurs de sections actives/inactives \colorlet{ActiveSection}{beamer@blendedblue} \colorlet{InactiveSection}{red!25} \setbeamercolor*{mini frame}{fg=ActiveSection,bg=InactiveSection} \setbeamertemplate{mini frame in other section}[default][0] \setbeamertemplate{mini frame in other subsection}[default][0] \setbeamercolor{section in head/foot}{parent=palette tertiary,fg=ActiveSection} \setbeamertemplate{section in head/foot shaded}{\color{InactiveSection}\usebeamertemplate{section in head/foot}} \begin{document} \section{Titre section} \subsection{Titre sous-section 1.1} \begin{frame}[t]{Titre planche} \begin{block}{Titre bloc} \begin{itemize} \item Un \item Deux \end{itemize} \end{block} \end{frame} \begin{frame}[t]{Titre planche} \begin{block}{Titre bloc} \begin{itemize} \item Un \item Deux \end{itemize} \end{block} \end{frame} \subsection{Titre sous-section 1.2} \begin{frame}[t]{Titre planche} \begin{block}{Titre bloc} \begin{itemize} \item Un \item Deux \end{itemize} \end{block} \end{frame} \begin{frame}[t]{Titre planche} \begin{block}{Titre bloc} \begin{itemize} \item Un \item Deux \end{itemize} \end{block} \end{frame} \section{Titre section 2} \subsection{Titre sous-section 2.1} \begin{frame}[t]{Titre planche} \begin{block}{Titre bloc} \begin{itemize} \item Un \item Deux \end{itemize} \end{block} \end{frame} \begin{frame}[t]{Titre planche} \begin{block}{Titre bloc} \begin{itemize} \item Un \item Deux \end{itemize} \end{block} \end{frame} \subsection{Titre sous-section 2.2} \begin{frame}[t]{Titre planche} \begin{block}{Titre bloc} \begin{itemize} \item Un \item Deux \end{itemize} \end{block} \end{frame} \begin{frame}[t]{Titre planche} \begin{block}{Titre bloc} \begin{itemize} \item Un \item Deux \end{itemize} \end{block} \end{frame} \end{document} ![alt text][1] [1]: http://texnique.fr:80/osqa/upfiles/bullet.png