Fix bugs.
This commit is contained in:
parent
02e109ac45
commit
51a412d874
@ -162,9 +162,10 @@
|
|||||||
color(0bp)=(white!40);color(100bp)=(black!0)
|
color(0bp)=(white!40);color(100bp)=(black!0)
|
||||||
}
|
}
|
||||||
\mdfdefinestyle{partie}{
|
\mdfdefinestyle{partie}{
|
||||||
|
% \usebeamercolor{sectioncolor}
|
||||||
outerlinewidth=1em, outerlinecolor=white,%
|
outerlinewidth=1em, outerlinecolor=white,%
|
||||||
% leftmargin=-1em, rightmargin=-1em,%
|
% leftmargin=-1em, rightmargin=-1em,%
|
||||||
middlelinewidth=1.2pt, linecolor={\usebeamercolor[fg]{sectioncolor}},roundcorner=5pt,%
|
middlelinewidth=1.2pt, linecolor=red, roundcorner=5pt,%
|
||||||
apptotikzsetting={
|
apptotikzsetting={
|
||||||
\tikzset{
|
\tikzset{
|
||||||
mdfbackground/.append style={
|
mdfbackground/.append style={
|
||||||
@ -175,9 +176,10 @@
|
|||||||
}
|
}
|
||||||
%
|
%
|
||||||
\mdfdefinestyle{sspartie}{
|
\mdfdefinestyle{sspartie}{
|
||||||
|
% \usebeamercolor{subsectioncolor}
|
||||||
outerlinewidth=1em, outerlinecolor=white,%
|
outerlinewidth=1em, outerlinecolor=white,%
|
||||||
% leftmargin=-1em, rightmargin=-1em,%
|
% leftmargin=-1em, rightmargin=-1em,%
|
||||||
middlelinewidth=1.2pt, linecolor={\usebeamercolor[fg]{subsectioncolor}},roundcorner=5pt,%
|
middlelinewidth=1.2pt, linecolor=airforceblue, roundcorner=5pt,%
|
||||||
apptotikzsetting={
|
apptotikzsetting={
|
||||||
\tikzset{
|
\tikzset{
|
||||||
mdfbackground/.append style={
|
mdfbackground/.append style={
|
||||||
@ -226,6 +228,7 @@
|
|||||||
\newcounter{sspartiecounter}
|
\newcounter{sspartiecounter}
|
||||||
|
|
||||||
\NewDocumentCommand \partie { G{Partie} } {%
|
\NewDocumentCommand \partie { G{Partie} } {%
|
||||||
|
\usebeamercolor{sectioncolor}
|
||||||
\def\cType{\Roman}
|
\def\cType{\Roman}
|
||||||
\stepcounter{partiecounter}
|
\stepcounter{partiecounter}
|
||||||
\setcounter{sspartiecounter}{0}
|
\setcounter{sspartiecounter}{0}
|
||||||
@ -233,25 +236,26 @@
|
|||||||
\begin{frame}
|
\begin{frame}
|
||||||
\begin{center}
|
\begin{center}
|
||||||
\begin{mdframed}[style=partie]
|
\begin{mdframed}[style=partie]
|
||||||
\centering \usebeamercolor[fg]{sectioncolor}{\textbf{ \cType{partiecounter}. #1}}
|
\centering \textcolor{sectioncolor.fg}{\textbf{ \cType{partiecounter}. #1}}
|
||||||
\end{mdframed}
|
\end{mdframed}
|
||||||
\end{center}
|
\end{center}
|
||||||
\end{frame}
|
\end{frame}
|
||||||
}
|
}
|
||||||
|
|
||||||
\NewDocumentCommand \sspartie { G{Sous-Partie} } {%
|
\NewDocumentCommand \sspartie { G{Sous-Partie} } {%
|
||||||
|
\usebeamercolor{subsectioncolor}
|
||||||
\def\cType{\arabic}
|
\def\cType{\arabic}
|
||||||
\stepcounter{sspartiecounter}
|
\stepcounter{sspartiecounter}
|
||||||
\subsection{#1}
|
\subsection{#1}
|
||||||
\begin{frame}
|
\begin{frame}
|
||||||
\begin{center}
|
\begin{center}
|
||||||
\begin{mdframed}[style=sspartie]
|
\begin{mdframed}[style=sspartie]
|
||||||
\centering \usebeamercolor[fg]{subsectioncolor}{\textbf{ \cType{sspartiecounter}) #1}}
|
\centering \textcolor{subsectioncolor.fg}{\textbf{ \cType{sspartiecounter}) #1}}
|
||||||
\end{mdframed}
|
\end{mdframed}
|
||||||
\end{center}
|
\end{center}
|
||||||
\end{frame}
|
\end{frame}
|
||||||
}
|
}
|
||||||
|
|
||||||
% \ftitre
|
% \ftitre
|
||||||
% definie le titre des frames de section et de sous-section en fonction
|
% definie le titre des frames de section et de sous-section en fonction
|
||||||
% des (sous)sections actuellement definies
|
% des (sous)sections actuellement definies
|
||||||
@ -269,21 +273,21 @@
|
|||||||
% definition de divers blocks personnels : definition, theoreme, exemple,
|
% definition de divers blocks personnels : definition, theoreme, exemple,
|
||||||
% exercice (avec numerotation), remarque, method.
|
% exercice (avec numerotation), remarque, method.
|
||||||
|
|
||||||
% Auxiliary command to set color of certain element of beamer
|
% Auxiliary command to set color of item of lists
|
||||||
\NewDocumentCommand \setbeamercolorto { g }{%
|
%\NewDocumentCommand \setbeamercolorofitem { g }{%
|
||||||
\setbeamercolor*{enumerate item}{fg=#1.fg}
|
% \setbeamercolor*{enumerate item}{use=#1,fg=#1.fg}
|
||||||
\setbeamercolor*{enumerate subitem}{fg=#1.fg}
|
% \setbeamercolor*{enumerate subitem}{use=#1,fg=#1.fg}
|
||||||
\setbeamercolor*{enumerate subsubitem}{fg=#1.fg}
|
% \setbeamercolor*{enumerate subsubitem}{use=#1,fg=#1.fg}
|
||||||
\setbeamercolor*{itemize item}{fg=#1.fg}
|
% \setbeamercolor*{itemize item}{use=#1,fg=#1.fg}
|
||||||
\setbeamercolor*{itemize subitem}{fg=#1.fg}
|
% \setbeamercolor*{itemize subitem}{use=#1,fg=#1.fg}
|
||||||
\setbeamercolor*{itemize subsubitem}{fg=#1.fg}
|
% \setbeamercolor*{itemize subsubitem}{use=#1,fg=#1.fg}
|
||||||
\setbeamercolor*{item}{fg=#1.fg}
|
% \setbeamercolor*{item}{use=#1,fg=#1.fg}
|
||||||
}
|
%}
|
||||||
|
|
||||||
% déf(*)(TITRE)
|
% déf(*)(TITRE)
|
||||||
\NewDocumentEnvironment{déf}{ s g }{%begin
|
\NewDocumentEnvironment{déf}{ s g }{%begin
|
||||||
\setbeamercolor*{block title}{parent=definition}
|
\setbeamercolor*{block title}{parent=definition}
|
||||||
\setbeamercolorto{definition}
|
% \setbeamercolorofitem{definition}
|
||||||
\IfBooleanTF #1
|
\IfBooleanTF #1
|
||||||
{
|
{
|
||||||
\IfNoValueTF {#2} {
|
\IfNoValueTF {#2} {
|
||||||
@ -305,7 +309,7 @@
|
|||||||
% thm(TITRE)
|
% thm(TITRE)
|
||||||
\NewDocumentEnvironment{thm}{ g }{%begin
|
\NewDocumentEnvironment{thm}{ g }{%begin
|
||||||
\setbeamercolor*{block title}{parent=theorem}
|
\setbeamercolor*{block title}{parent=theorem}
|
||||||
\setbeamercolorto{theorem}
|
% \setbeamercolorofitem{theorem}
|
||||||
\IfNoValueTF {#1} {
|
\IfNoValueTF {#1} {
|
||||||
\begin{block} {Théorème}
|
\begin{block} {Théorème}
|
||||||
}{
|
}{
|
||||||
@ -318,7 +322,7 @@
|
|||||||
% ppt(*)(TITRE)
|
% ppt(*)(TITRE)
|
||||||
\NewDocumentEnvironment{ppt}{ s g }{%begin
|
\NewDocumentEnvironment{ppt}{ s g }{%begin
|
||||||
\setbeamercolor*{block title}{parent=property}
|
\setbeamercolor*{block title}{parent=property}
|
||||||
\setbeamercolorto{property}
|
% \setbeamercolorofitem{property}
|
||||||
\IfBooleanTF #1
|
\IfBooleanTF #1
|
||||||
{
|
{
|
||||||
\IfNoValueTF {#2} {
|
\IfNoValueTF {#2} {
|
||||||
@ -340,7 +344,7 @@
|
|||||||
% pre(TITRE)
|
% pre(TITRE)
|
||||||
\NewDocumentEnvironment{pre}{ g }{%begin
|
\NewDocumentEnvironment{pre}{ g }{%begin
|
||||||
\setbeamercolor*{block title}{parent=proof}
|
\setbeamercolor*{block title}{parent=proof}
|
||||||
\setbeamercolorto{proof}
|
% \setbeamercolorofitem{proof}
|
||||||
\IfNoValueTF {#1} {
|
\IfNoValueTF {#1} {
|
||||||
\begin{block} {Preuve}
|
\begin{block} {Preuve}
|
||||||
}{
|
}{
|
||||||
@ -353,7 +357,7 @@
|
|||||||
% voc(TITRE)
|
% voc(TITRE)
|
||||||
\NewDocumentEnvironment{voc}{ g }{%begin
|
\NewDocumentEnvironment{voc}{ g }{%begin
|
||||||
\setbeamercolor*{block title}{parent=vocabulary}
|
\setbeamercolor*{block title}{parent=vocabulary}
|
||||||
\setbeamercolorto{vocabulary}
|
% \setbeamercolorofitem{vocabulary}
|
||||||
\IfNoValueTF {#1} {
|
\IfNoValueTF {#1} {
|
||||||
\begin{block} {Vocabulaire}
|
\begin{block} {Vocabulaire}
|
||||||
}{
|
}{
|
||||||
@ -366,7 +370,7 @@
|
|||||||
% rmq(TITRE)
|
% rmq(TITRE)
|
||||||
\NewDocumentEnvironment{rmq}{ G{Remarque} }{%begin
|
\NewDocumentEnvironment{rmq}{ G{Remarque} }{%begin
|
||||||
\setbeamercolor*{block title}{parent=remark}
|
\setbeamercolor*{block title}{parent=remark}
|
||||||
\setbeamercolorto{remark}
|
% \setbeamercolorofitem{remark}
|
||||||
\begin{block} {\faExclamationTriangle \hspace{.125em} #1}
|
\begin{block} {\faExclamationTriangle \hspace{.125em} #1}
|
||||||
}{%end
|
}{%end
|
||||||
\end{block}
|
\end{block}
|
||||||
@ -376,7 +380,7 @@
|
|||||||
\newcounter{methodecounter}
|
\newcounter{methodecounter}
|
||||||
\NewDocumentEnvironment{met} { O{0} g }{%begin
|
\NewDocumentEnvironment{met} { O{0} g }{%begin
|
||||||
\setbeamercolor*{block title}{parent=method}
|
\setbeamercolor*{block title}{parent=method}
|
||||||
\setbeamercolorto{method}
|
% \setbeamercolorofitem{method}
|
||||||
\ifthenelse{ \NOT \equal{#1}{0} }{
|
\ifthenelse{ \NOT \equal{#1}{0} }{
|
||||||
\ifthenelse{ \equal{#1}{i} }
|
\ifthenelse{ \equal{#1}{i} }
|
||||||
{
|
{
|
||||||
@ -423,7 +427,7 @@
|
|||||||
% exe(TITRE)
|
% exe(TITRE)
|
||||||
\NewDocumentEnvironment{exe}{ G{Exemple} }{%begin
|
\NewDocumentEnvironment{exe}{ G{Exemple} }{%begin
|
||||||
\setbeamercolor*{block title}{parent=example}
|
\setbeamercolor*{block title}{parent=example}
|
||||||
\setbeamercolorto{example}
|
% \setbeamercolorofitem{example}
|
||||||
\begin{block} {\faLightbulbO \hspace{.125em} #1}
|
\begin{block} {\faLightbulbO \hspace{.125em} #1}
|
||||||
}{%end
|
}{%end
|
||||||
\end{block}
|
\end{block}
|
||||||
@ -433,7 +437,7 @@
|
|||||||
\newcounter{exercicecounter}
|
\newcounter{exercicecounter}
|
||||||
\NewDocumentEnvironment{exo} { O{0} G{Exercice} }{%begin
|
\NewDocumentEnvironment{exo} { O{0} G{Exercice} }{%begin
|
||||||
\setbeamercolor*{block title}{parent=exercise}
|
\setbeamercolor*{block title}{parent=exercise}
|
||||||
\setbeamercolorto{exercise}
|
% \setbeamercolorofitem{exercise}
|
||||||
\ifthenelse{ \NOT \equal{#1}{0} }{
|
\ifthenelse{ \NOT \equal{#1}{0} }{
|
||||||
\ifthenelse{ \equal{#1}{i} }
|
\ifthenelse{ \equal{#1}{i} }
|
||||||
{
|
{
|
||||||
@ -473,7 +477,7 @@
|
|||||||
\newcounter{applicationcounter}
|
\newcounter{applicationcounter}
|
||||||
\NewDocumentEnvironment{app} { O{0} G{Application} }{%begin
|
\NewDocumentEnvironment{app} { O{0} G{Application} }{%begin
|
||||||
\setbeamercolor*{block title}{parent=application}
|
\setbeamercolor*{block title}{parent=application}
|
||||||
\setbeamercolorto{application}
|
% \setbeamercolorofitem{application}
|
||||||
\ifthenelse{ \NOT \equal{#1}{0} }{
|
\ifthenelse{ \NOT \equal{#1}{0} }{
|
||||||
\ifthenelse{ \equal{#1}{i} }
|
\ifthenelse{ \equal{#1}{i} }
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user