Set the color of enumerate and itemize items in block/env the same as the block/env color.

This commit is contained in:
Jeff Lance 2017-08-23 10:23:26 +02:00
parent 221c8ce720
commit 17df4a8c39

View File

@ -266,6 +266,8 @@
% déf(*)(TITRE) % déf(*)(TITRE)
\NewDocumentEnvironment{déf}{ s g }{%begin \NewDocumentEnvironment{déf}{ s g }{%begin
\setbeamercolor{block title}{fg=definition,bg=definition!10!white} \setbeamercolor{block title}{fg=definition,bg=definition!10!white}
\setbeamercolor{enumerate item}{fg=definition}
\setbeamercolor{itemize item}{fg=definition}
\IfBooleanTF #1 \IfBooleanTF #1
{ {
\IfNoValueTF {#2} { \IfNoValueTF {#2} {
@ -287,6 +289,8 @@
% thm(TITRE) % thm(TITRE)
\NewDocumentEnvironment{thm}{ g }{%begin \NewDocumentEnvironment{thm}{ g }{%begin
\setbeamercolor{block title}{fg=white,bg=theorem!90!white} \setbeamercolor{block title}{fg=white,bg=theorem!90!white}
\setbeamercolor{enumerate item}{fg=theorem}
\setbeamercolor{itemize item}{fg=theorem}
\IfNoValueTF {#1} { \IfNoValueTF {#1} {
\begin{block} {Théorème} \begin{block} {Théorème}
}{ }{
@ -299,7 +303,9 @@
% ppt(*)(TITRE) % ppt(*)(TITRE)
\NewDocumentEnvironment{ppt}{ s g }{%begin \NewDocumentEnvironment{ppt}{ s g }{%begin
\setbeamercolor{block title}{fg=white,bg=property!90!white} \setbeamercolor{block title}{fg=white,bg=property!90!white}
\IfBooleanTF #1 \setbeamercolor{enumerate item}{fg=property}
\setbeamercolor{itemize item}{fg=property}
\IfBooleanTF #1
{ {
\IfNoValueTF {#2} { \IfNoValueTF {#2} {
\begin{block} {} \begin{block} {}
@ -320,6 +326,8 @@
% pre(TITRE) % pre(TITRE)
\NewDocumentEnvironment{pre}{ g }{%begin \NewDocumentEnvironment{pre}{ g }{%begin
\setbeamercolor{block title}{fg=proof,bg=proof!10!white} \setbeamercolor{block title}{fg=proof,bg=proof!10!white}
\setbeamercolor{enumerate item}{fg=proof}
\setbeamercolor{itemize item}{fg=proff}
\IfNoValueTF {#1} { \IfNoValueTF {#1} {
\begin{block} {Preuve} \begin{block} {Preuve}
}{ }{
@ -332,6 +340,8 @@
% voc(TITRE) % voc(TITRE)
\NewDocumentEnvironment{voc}{ g }{%begin \NewDocumentEnvironment{voc}{ g }{%begin
\setbeamercolor{block title}{fg=vocabulary,bg=vocabulary!10!white} \setbeamercolor{block title}{fg=vocabulary,bg=vocabulary!10!white}
\setbeamercolor{enumerate item}{fg=vocabulary}
\setbeamercolor{itemize item}{fg=vocabulary}
\IfNoValueTF {#1} { \IfNoValueTF {#1} {
\begin{block} {Vocabulaire} \begin{block} {Vocabulaire}
}{ }{
@ -343,7 +353,9 @@
% rmq(TITRE) % rmq(TITRE)
\NewDocumentEnvironment{rmq}{ G{Remarque} }{%begin \NewDocumentEnvironment{rmq}{ G{Remarque} }{%begin
\setbeamercolor{block title}{fg=remark,bg=remark!10!white}%fg=white,bg=cerisepink!80!white}% \setbeamercolor{block title}{fg=remark,bg=remark!10!white}
\setbeamercolor{enumerate item}{fg=remark}
\setbeamercolor{itemize item}{fg=remark}
\begin{block} {\faExclamationTriangle \hspace{.125em} #1} \begin{block} {\faExclamationTriangle \hspace{.125em} #1}
}{%end }{%end
\end{block} \end{block}
@ -352,7 +364,9 @@
% 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=method!75!white}% \setbeamercolor{block title}{fg=black,bg=method!75!white}
\setbeamercolor{enumerate item}{fg=method}
\setbeamercolor{itemize item}{fg=method}
\ifthenelse{ \NOT \equal{#1}{0} }{ \ifthenelse{ \NOT \equal{#1}{0} }{
\ifthenelse{ \equal{#1}{i} } \ifthenelse{ \equal{#1}{i} }
{ {
@ -398,7 +412,9 @@
% exe(TITRE) % exe(TITRE)
\NewDocumentEnvironment{exe}{ G{Exemple} }{%begin \NewDocumentEnvironment{exe}{ G{Exemple} }{%begin
\setbeamercolor{block title}{fg=example,bg=example!10!white}% \setbeamercolor{block title}{fg=example,bg=example!10!white}
\setbeamercolor{enumerate item}{fg=example}
\setbeamercolor{itemize item}{fg=example}
\begin{block} {\faLightbulbO \hspace{.125em} #1} \begin{block} {\faLightbulbO \hspace{.125em} #1}
}{%end }{%end
\end{block} \end{block}
@ -407,7 +423,9 @@
% 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=exercise!90!white}% \setbeamercolor{block title}{fg=white,bg=exercise!90!white}
\setbeamercolor{enumerate item}{fg=exercise}
\setbeamercolor{itemize item}{fg=exercise}
\ifthenelse{ \NOT \equal{#1}{0} }{ \ifthenelse{ \NOT \equal{#1}{0} }{
\ifthenelse{ \equal{#1}{i} } \ifthenelse{ \equal{#1}{i} }
{ {
@ -446,7 +464,9 @@
% 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=application!90!white}% \setbeamercolor{block title}{fg=white,bg=application!90!white}
\setbeamercolor{enumerate item}{fg=application}
\setbeamercolor{itemize item}{fg=application}
\ifthenelse{ \NOT \equal{#1}{0} }{ \ifthenelse{ \NOT \equal{#1}{0} }{
\ifthenelse{ \equal{#1}{i} } \ifthenelse{ \equal{#1}{i} }
{ {