Reformat some envs.
This commit is contained in:
parent
0921170eba
commit
8b3f3c3903
@ -204,15 +204,28 @@
|
|||||||
|
|
||||||
%% application
|
%% application
|
||||||
%%
|
%%
|
||||||
\NewDocumentEnvironment{application}{ o }{
|
\NewDocumentEnvironment{application}{ s o }{
|
||||||
\setbeamercolor*{block title}{parent=application}
|
\setbeamercolor*{block title}{parent=application}
|
||||||
|
\IfBooleanTF {#1} {
|
||||||
\IfNoValueTF {#1} {
|
% if starred: without title
|
||||||
% if no subtitle
|
\IfNoValueTF {#2} {
|
||||||
\begin{block} {\faCogs \hspace{.125em} Application}
|
% if no subtitle
|
||||||
|
\begin{block} {\faCogs \hspace{.125em}}
|
||||||
|
}{
|
||||||
|
% if subtitle
|
||||||
|
\begin{block} {\faCogs \hspace{.125em}\
|
||||||
|
\hfill{\normalfont\slshape#2}}
|
||||||
|
}
|
||||||
}{
|
}{
|
||||||
% if subtitle
|
% if not starred: with title
|
||||||
\begin{block} {\faCogs \hspace{.125em}\ #1}
|
\IfNoValueTF {#2} {
|
||||||
|
% if no subtitle
|
||||||
|
\begin{block} {\faCogs \hspace{.125em}\ Application}
|
||||||
|
}{
|
||||||
|
% if subtitle
|
||||||
|
\begin{block} {\faCogs \hspace{.125em}\
|
||||||
|
Application \hfill{\normalfont\slshape#2}}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}{
|
}{
|
||||||
\end{block}
|
\end{block}
|
||||||
@ -221,14 +234,42 @@
|
|||||||
%% commentaire
|
%% commentaire
|
||||||
%%
|
%%
|
||||||
\NewDocumentEnvironment{commentaire}{ s }{
|
\NewDocumentEnvironment{commentaire}{ s }{
|
||||||
\setbeamercolor*{block title}{parent=commentaire}
|
% \setbeamercolor*{block title}{parent=commentaire}
|
||||||
|
\IfBooleanF {#1} {
|
||||||
\IfBooleanTF {#1} {
|
|
||||||
% with logo
|
% with logo
|
||||||
\begin{block} {\faQuoteLeft \hspace{.125em}}
|
\faQuoteLeft\\
|
||||||
|
}
|
||||||
|
}{
|
||||||
|
\IfBooleanF {#1} {
|
||||||
|
% with logo
|
||||||
|
\normalsize\hfill\faQuoteRight
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
%% methode
|
||||||
|
%%
|
||||||
|
\NewDocumentEnvironment{methode}{ s o }{
|
||||||
|
\setbeamercolor*{block title}{parent=methode}
|
||||||
|
\IfBooleanTF {#1} {
|
||||||
|
% if starred: without title
|
||||||
|
\IfNoValueTF {#2} {
|
||||||
|
% if no subtitle
|
||||||
|
\begin{block} {\faBookmarkO \hspace{.125em}}
|
||||||
|
}{
|
||||||
|
% if subtitle
|
||||||
|
\begin{block} {\faBookmarkO \hspace{.125em}\
|
||||||
|
\hfill{\normalfont\slshape#2}}
|
||||||
|
}
|
||||||
}{
|
}{
|
||||||
% without logo
|
% if not starred: with title
|
||||||
\begin{block} {}
|
\IfNoValueTF {#2} {
|
||||||
|
% if no subtitle
|
||||||
|
\begin{block} {\faBookmarkO \hspace{.125em}\ Méthode}
|
||||||
|
}{
|
||||||
|
% if subtitle
|
||||||
|
\begin{block} {\faBookmarkO \hspace{.125em}\
|
||||||
|
Méthode \hfill{\normalfont\slshape#2}}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}{
|
}{
|
||||||
\end{block}
|
\end{block}
|
||||||
|
Loading…
Reference in New Issue
Block a user