Define default beamer colors.

This commit is contained in:
Jeff Lance 2017-08-25 14:41:22 +02:00
parent 27c11f3478
commit b9d81f6d1a

View File

@ -74,19 +74,19 @@
%%% COLORS USED IN BLOCKS %%% %%% COLORS USED IN BLOCKS %%%
% Colors used in block and environments % Colors used in block and environments
% I don't like the default flashy green and the blue so i redefined it % I don't like the default flashy green and the blue so i redefined it
\colorlet{green}{green!40!gray} % \colorlet{green}{green!40!gray}
\colorlet{blue}{airforceblue} % \colorlet{blue}{airforceblue}
\colorlet{definition}{red} \setbeamercolor*{definition}{fg=red,bg=blush!10!white}
\colorlet{theorem}{red} \setbeamercolor*{theorem}{fg=white,bg=red!90!white}
\colorlet{property}{red} \setbeamercolor*{property}{fg=white,bg=brickred!90!white}
\colorlet{proof}{violet} \setbeamercolor*{proof}{fg=hanblue,bg=airforceblue!10!white}
\colorlet{vocabulary}{blue} \setbeamercolor*{vocabulary}{fg=hanblue,bg=airforceblue!10!white}
\colorlet{remark}{red} \setbeamercolor*{remark}{fg=blush,bg=blush!10!white}
\colorlet{method}{orange} \setbeamercolor*{method}{fg=black,bg=amber!75!white}
\colorlet{example}{green} \setbeamercolor*{example}{fg=darkspringgreen,bg=green!10!white}
\colorlet{exercise}{blue} \setbeamercolor*{exercise}{fg=white,bg=airforceblue!90!white}
\colorlet{application}{blue} \setbeamercolor*{application}{fg=white,bg=airforceblue!90!white}
\colorlet{sectioncolor}{debianred} \colorlet{sectioncolor}{debianred}
\colorlet{subsectioncolor}{lapislazuli} \colorlet{subsectioncolor}{lapislazuli}
@ -267,7 +267,7 @@
% Auxiliary command to set color of certain element of beamer % Auxiliary command to set color of certain element of beamer
\NewDocumentCommand \setbeamercolorto { g }{% \NewDocumentCommand \setbeamercolorto { g }{%
\setbeamercolor*{block title}{fg=#1,bg=#1!10!white} % \setbeamercolor*{block title}{fg=#1,bg=#1!10!white}
\setbeamercolor*{enumerate item}{fg=#1} \setbeamercolor*{enumerate item}{fg=#1}
\setbeamercolor*{enumerate subitem}{fg=#1} \setbeamercolor*{enumerate subitem}{fg=#1}
\setbeamercolor*{enumerate subsubitem}{fg=#1} \setbeamercolor*{enumerate subsubitem}{fg=#1}
@ -279,7 +279,8 @@
% déf(*)(TITRE) % déf(*)(TITRE)
\NewDocumentEnvironment{déf}{ s g }{%begin \NewDocumentEnvironment{déf}{ s g }{%begin
\setbeamercolorto{definition} \setbeamercolor*{block title}{fg=definition,bg=blush!10!white}
\setbeamercolorto{definition}
\IfBooleanTF #1 \IfBooleanTF #1
{ {
\IfNoValueTF {#2} { \IfNoValueTF {#2} {
@ -300,6 +301,7 @@
% thm(TITRE) % thm(TITRE)
\NewDocumentEnvironment{thm}{ g }{%begin \NewDocumentEnvironment{thm}{ g }{%begin
\setbeamercolor{block title}{fg=theorem,bg=red!90!white}
\setbeamercolorto{theorem} \setbeamercolorto{theorem}
\IfNoValueTF {#1} { \IfNoValueTF {#1} {
\begin{block} {Théorème} \begin{block} {Théorème}
@ -312,6 +314,7 @@
% ppt(*)(TITRE) % ppt(*)(TITRE)
\NewDocumentEnvironment{ppt}{ s g }{%begin \NewDocumentEnvironment{ppt}{ s g }{%begin
\setbeamercolor{block title}{fg=white,bg=brickred!90!white}
\setbeamercolorto{property} \setbeamercolorto{property}
\IfBooleanTF #1 \IfBooleanTF #1
{ {
@ -333,6 +336,7 @@
% pre(TITRE) % pre(TITRE)
\NewDocumentEnvironment{pre}{ g }{%begin \NewDocumentEnvironment{pre}{ g }{%begin
\setbeamercolor{block title}{fg=hanblue,bg=airforceblue!10!white}
\setbeamercolorto{proof} \setbeamercolorto{proof}
\IfNoValueTF {#1} { \IfNoValueTF {#1} {
\begin{block} {Preuve} \begin{block} {Preuve}
@ -345,7 +349,8 @@
% voc(TITRE) % voc(TITRE)
\NewDocumentEnvironment{voc}{ g }{%begin \NewDocumentEnvironment{voc}{ g }{%begin
\setbeamercolorto{vocabulary} \setbeamercolor{block title}{fg=hanblue,bg=airforceblue!10!white}
\setbeamercolorto{vocabulary}
\IfNoValueTF {#1} { \IfNoValueTF {#1} {
\begin{block} {Vocabulaire} \begin{block} {Vocabulaire}
}{ }{
@ -357,6 +362,7 @@
% rmq(TITRE) % rmq(TITRE)
\NewDocumentEnvironment{rmq}{ G{Remarque} }{%begin \NewDocumentEnvironment{rmq}{ G{Remarque} }{%begin
\setbeamercolor{block title}{fg=blush,bg=blush!10!white}
\setbeamercolorto{remark} \setbeamercolorto{remark}
\begin{block} {\faExclamationTriangle \hspace{.125em} #1} \begin{block} {\faExclamationTriangle \hspace{.125em} #1}
}{%end }{%end
@ -366,6 +372,7 @@
% met<0|i|I|a|A|1>(TITRE) % met<0|i|I|a|A|1>(TITRE)
\newcounter{methodecounter} \newcounter{methodecounter}
\NewDocumentEnvironment{met} { O{0} g }{%begin \NewDocumentEnvironment{met} { O{0} g }{%begin
\setbeamercolor{block title}{fg=black,bg=amber!75!white}
\setbeamercolorto{method} \setbeamercolorto{method}
\ifthenelse{ \NOT \equal{#1}{0} }{ \ifthenelse{ \NOT \equal{#1}{0} }{
\ifthenelse{ \equal{#1}{i} } \ifthenelse{ \equal{#1}{i} }
@ -412,6 +419,7 @@
% exe(TITRE) % exe(TITRE)
\NewDocumentEnvironment{exe}{ G{Exemple} }{%begin \NewDocumentEnvironment{exe}{ G{Exemple} }{%begin
\setbeamercolor{block title}{fg=darkspringgreen,bg=green!10!white}
\setbeamercolorto{example} \setbeamercolorto{example}
\begin{block} {\faLightbulbO \hspace{.125em} #1} \begin{block} {\faLightbulbO \hspace{.125em} #1}
}{%end }{%end
@ -421,6 +429,7 @@
% exo<0|i|I|a|A|1>(TITRE) % exo<0|i|I|a|A|1>(TITRE)
\newcounter{exercicecounter} \newcounter{exercicecounter}
\NewDocumentEnvironment{exo} { O{0} G{Exercice} }{%begin \NewDocumentEnvironment{exo} { O{0} G{Exercice} }{%begin
\setbeamercolor{block title}{fg=white,bg=airforceblue!90!white}
\setbeamercolorto{exercise} \setbeamercolorto{exercise}
\ifthenelse{ \NOT \equal{#1}{0} }{ \ifthenelse{ \NOT \equal{#1}{0} }{
\ifthenelse{ \equal{#1}{i} } \ifthenelse{ \equal{#1}{i} }
@ -460,6 +469,7 @@
% app<0|i|I|a|A|1>(TITRE) % app<0|i|I|a|A|1>(TITRE)
\newcounter{applicationcounter} \newcounter{applicationcounter}
\NewDocumentEnvironment{app} { O{0} G{Application} }{%begin \NewDocumentEnvironment{app} { O{0} G{Application} }{%begin
\setbeamercolor{block title}{fg=white,bg=airforceblue!90!white}
\setbeamercolorto{application} \setbeamercolorto{application}
\ifthenelse{ \NOT \equal{#1}{0} }{ \ifthenelse{ \NOT \equal{#1}{0} }{
\ifthenelse{ \equal{#1}{i} } \ifthenelse{ \equal{#1}{i} }