define new env called app for application
This commit is contained in:
@@ -382,43 +382,44 @@
|
||||
}{%end
|
||||
\end{block}
|
||||
}
|
||||
% \NewDocumentEnvironment{exo} { s G{Exercice} }{%begin
|
||||
% \setbeamercolor{block title}{fg=white,bg=blue!75!black}%
|
||||
% \IfBooleanTF #1
|
||||
% {
|
||||
% \begin{block}{#2\ }
|
||||
% }{
|
||||
% \ifthenelse{ \equal{#1}{i} }
|
||||
% {
|
||||
% \def\cType{\roman}
|
||||
% }
|
||||
% {
|
||||
% \ifthenelse{ \equal{#1}{I} }
|
||||
% {
|
||||
% \def\cType{\Roman}
|
||||
% }
|
||||
% {
|
||||
% \ifthenelse{ \equal{#1}{a} }
|
||||
% {
|
||||
% \def\cType{\alph}
|
||||
% }
|
||||
% {
|
||||
% \ifthenelse{ \equal{#1}{A} }
|
||||
% {
|
||||
% \def\cType{\Alph}
|
||||
% }
|
||||
% {
|
||||
% \def\cType{\arabic}
|
||||
% }
|
||||
% }
|
||||
% }
|
||||
% }
|
||||
% \stepcounter{exercicecounter}
|
||||
% \begin{block}{#2 \cType{exercicecounter}\ }
|
||||
% }
|
||||
% }{%end
|
||||
% \end{block}
|
||||
% }
|
||||
%
|
||||
\newcounter{applicationcounter}
|
||||
\NewDocumentEnvironment{app} { O{0} G{Application} }{%begin
|
||||
\setbeamercolor{block title}{fg=white,bg=airforceblue!90!white}%
|
||||
\ifthenelse{ \NOT \equal{#1}{0} }{
|
||||
\ifthenelse{ \equal{#1}{i} }
|
||||
{
|
||||
\def\cType{\roman}
|
||||
}
|
||||
{
|
||||
\ifthenelse{ \equal{#1}{I} }
|
||||
{
|
||||
\def\cType{\Roman}
|
||||
}
|
||||
{
|
||||
\ifthenelse{ \equal{#1}{a} }
|
||||
{
|
||||
\def\cType{\alph}
|
||||
}
|
||||
{
|
||||
\ifthenelse{ \equal{#1}{A} }
|
||||
{
|
||||
\def\cType{\Alph}
|
||||
}
|
||||
{
|
||||
\def\cType{\arabic}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
\stepcounter{applicationcounter}
|
||||
\begin{block}{#2 \cType{applicationcounter}\ }
|
||||
}{
|
||||
\begin{block}{#2\ }
|
||||
}
|
||||
}{%end
|
||||
\end{block}
|
||||
}
|
||||
|
||||
|
||||
% \includemovie
|
||||
|
||||
Reference in New Issue
Block a user