Modification du texte d'intro

This commit is contained in:
2016-03-31 19:49:20 +02:00
parent 1fd9458821
commit 6885c8250f
4 changed files with 164 additions and 72 deletions

View File

@@ -35,6 +35,7 @@
% mise en page
\RequirePackage{fancyhdr}
\RequirePackage{multicol}
% \RequirePackage{enumitem}
% insertion d'image
%\RequirePackage{picins}
@@ -175,7 +176,7 @@
% type = i -> \roman
% type = I -> \Roman
% \arabic par défaut
\newcounter{cExercice}
\newcounter{exercicecounter}
\newcommand{\exercice}[1][1] {
\ifthenelse{ \equal{#1}{i} }
{
@@ -202,50 +203,57 @@
}
}
}
\stepcounter{cExercice}
\textbf{Exercice \cType{cExercice}\ }
\stepcounter{exercicecounter}
\textbf{Exercice \cType{exercicecounter}\ }
}
% questions<[type]>
%
% type = 1 -> \arabic
% type = a -> \alph
% type = A -> \Alph
% type = i -> \roman
% type = I -> \Roman
% \arabic par défaut
\newcounter{cQuestions}
\newenvironment{questions}[1][1] {
\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}
}
}
}
}
\begin{list}{\textbf{\cType{cQuestions}.~}}{\usecounter{cQuestions} \itemindent=0em \itemsep=8pt \leftmargin=0,65cm}
} {
\end{list}
}
% % questions<[type]>
% %
% % type = 1 -> \arabic
% % type = a -> \alph
% % type = A -> \Alph
% % type = i -> \roman
% % type = I -> \Roman
% % \arabic par défaut
% \newcounter{questionscounter}
% \newcommand{\questionsseparator}{.}
% \newenvironment{questions}[1][1] {
% \ifthenelse{ \equal{#1}{i} }
% {
% \def\cType{\roman}
% }
% {
% \ifthenelse{ \equal{#1}{I} }
% {
% \def\cType{\Roman}
% }
% {
% \ifthenelse{ \equal{#1}{a} }
% {
% \def\cType{\alph}
% \renewcommand{\questionsseparator}{)}
% }
% {
% \ifthenelse{ \equal{#1}{A} }
% {
% \def\cType{\Alph}
% }
% {
% \def\cType{\arabic}
% }
% }
% }
% }
% \begin{list}{\textbf{\cType{questionscounter}\questionsseparator}}{
% \usecounter{questionscounter}
% \itemindent=0em
% \itemsep=8pt \leftmargin=0,54cm}
% } {
% \end{list}
% }
% \newcommand{\bq}{\begin{questions}}
% \newcommand{\eq}{\end{questions}}
% setAngle{nom}{valeur}

View File

@@ -1,6 +1,6 @@
%%%
%%%
%%% Classe : calculmental.cls
%%% Classe : cours_beamer.cls
%%% Version : 1.0
%%% Date : 08/12/14
%%% Auteur : Jeff LANCE
@@ -28,6 +28,8 @@
%-- paramètrages
\graphicspath{{images/}}
\usetheme{Madrid}
\usefonttheme{serif}
\setbeamerfont{enumerate item}{family=\sffamily}
@@ -69,25 +71,60 @@
}
% blocks
% \newenvironment<>{def}[1]{%begin
% \setbeamercolor{block title}{fg=white,bg=blue!75!black}%
% \begin{block}{#1}}{\end{block}
% }
\newenvironment<>{déf}[1][]{%begin
\setbeamercolor{block title}{fg=crimson,bg=pink!95!white}%
\begin{block}{Définition}{#1}}{\end{block}
}
%
% \newenvironment<>{thm}[1]{%begin
% \setbeamercolor{block title}{fg=white,bg=blue!75!black}%
% \begin{block}#2[#1]}{\end{block}
% }
\newenvironment<>{thm}[1][]{%begin
\setbeamercolor{block title}{fg=white,bg=cerisepink!95!white}%
\begin{block}{Théorème}{#1}}{\end{block}
}
%
% \newenvironment<>{rmq}[1]{%begin
% \setbeamercolor{block title}{fg=white,bg=red!75!black}%
% \begin{block}#2[#1]}{\end{block}
% }
\newenvironment<>{rmq}[1][]{%begin
\setbeamercolor{block title}{fg=white,bg=red!75!black}%
\begin{block}#1}{\end{block}
}
%
% \newenvironment<>{exp}[1]{%begin
% \setbeamercolor{block title}{fg=white,bg=green!75!black}%
% \begin{block}#2[#1]}{\end{block}
% }
\newenvironment<>{exp}[1][]{%begin
\setbeamercolor{block title}{fg=white,bg=green!75!black}%
\begin{block}#1}{\end{block}
}
%
\newcounter{exercicecounter}
\newenvironment<>{exo}[1][]{%begin
\setbeamercolor{block title}{fg=white,bg=blue!75!black}%
\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}{Exercice \cType{exercicecounter}\ }}{\end{block}
}
%--%