texlive[42036] Master: pas-cours (11sep16)

commits+karl at tug.org commits+karl at tug.org
Mon Sep 12 00:32:47 CEST 2016


Revision: 42036
          http://tug.org/svn/texlive?view=revision&revision=42036
Author:   karl
Date:     2016-09-12 00:32:47 +0200 (Mon, 12 Sep 2016)
Log Message:
-----------
pas-cours (11sep16)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/pas-cours/macro-solides.tex
    trunk/Master/texmf-dist/doc/latex/pas-cours/macro-styles.tex
    trunk/Master/texmf-dist/doc/latex/pas-cours/pas-cours.tex
    trunk/Master/texmf-dist/tex/latex/pas-cours/pas-cours.sty
    trunk/Master/tlpkg/libexec/ctan2tds

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/latex/pas-cours/decomp.tex
    trunk/Master/texmf-dist/doc/latex/pas-cours/doc.codes.tex
    trunk/Master/texmf-dist/doc/latex/pas-cours/doc.styles.tex
    trunk/Master/texmf-dist/doc/latex/pas-cours/macro-calculs.tex
    trunk/Master/texmf-dist/doc/latex/pas-cours/warning-perso.png

Added: trunk/Master/texmf-dist/doc/latex/pas-cours/decomp.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/pas-cours/decomp.tex	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/pas-cours/decomp.tex	2016-09-11 22:32:47 UTC (rev 42036)
@@ -0,0 +1 @@
+2^{8}\times3^{2}\times1973^{1}
\ No newline at end of file


Property changes on: trunk/Master/texmf-dist/doc/latex/pas-cours/decomp.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/pas-cours/doc.codes.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/pas-cours/doc.codes.tex	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/pas-cours/doc.codes.tex	2016-09-11 22:32:47 UTC (rev 42036)
@@ -0,0 +1,144 @@
+\tcbuselibrary{listings}
+\usetikzlibrary{decorations.pathmorphing}
+
+% Couleurs utilis\xE9es dans la documentation
+
+\definecolor{codeTitleFont}{cmyk}{0.04,0,0.03,0.16}
+\definecolor{codeTitleBackLeft}{cmyk}{0.08,0,0.06,0.76}
+\definecolor{codeTitleBackRight}{cmyk}{0.07,0,0.05,0.42}
+\definecolor{listingTitleFont}{cmyk}{0,0.31,0.91,0.38}
+\definecolor{listingTitleBackLeft}{cmyk}{0,0.05,0.64,0}
+\definecolor{listingTitleBackRight}{cmyk}{0,0.03,0.31,0.02}
+
+
+% Code LaTeX
+
+\tcbset{codeTEX/.style={
+	sharp corners=all,
+	before skip=1em,
+	after skip=1em,
+	enhanced,
+	frame style={	
+			left color=codeTitleBackLeft,
+			right color=codeTitleBackRight},
+	interior style={
+		top color=codeTitleBackLeft!50,
+		bottom color=codeTitleBackRight!20},
+	boxrule=0.7pt,
+	fonttitle={\sffamily\bfseries\color{codeTitleFont}},
+	colback=codeTitleFont,
+	listing only,
+	left=6mm,
+	listing options={
+		basicstyle=\ttfamily\fontsize{7}{9}\selectfont,
+		keywordstyle=\color{blue},
+		numbers=left,
+		language=TeX,
+		breaklines=true,
+		morekeywords={definecolor,tcbset,begin, newtcbtheorem,newenvironment,newcommand,bfseries,color, sffamily,tcblower,ttfamily,setlength},
+		numberstyle=\tiny\color{red!75!black}},
+	breakable
+	}
+}
+
+% Listing exemples
+
+\tcbset{listing/.style={
+	sharp corners=all,
+	before skip=1em,
+	after skip=1em,
+	enhanced,
+	frame style={	
+			left color=listingTitleBackLeft,
+			right color=listingTitleBackRight},
+	boxrule=0.7pt,
+	fonttitle={\sffamily\bfseries\color{listingTitleFont}},
+	colback=listingTitleBackRight,
+	breakable,
+	listing options={
+		basicstyle=\ttfamily\fontsize{7}{9}\selectfont,
+		keywordstyle=\color{listingTitleFont},
+		numbers=left,
+		language=TeX,
+		breaklines=true,
+		numbersep=5pt,
+		morekeywords={ifelse,begin,definecolor,tcbset},
+		numberstyle=\tiny\color{red!75!black}},
+	},
+	interior style={
+		draw=listingTitleBackLeft,
+		top color=listingTitleBackLeft!50,
+		bottom color=listingTitleBackRight!20},
+	  segmentation style={
+		draw=listingTitleFont,
+		solid,
+		decorate,
+		decoration={random steps,segment length=2mm}
+	}
+}
+
+% Titre de la documentation
+
+\tcbset{head/.style={
+	enhanced,
+	hbox,
+	tikznode,
+	left=8mm,
+	right=8mm,
+	boxrule=0.4pt,
+  colback=white,
+  colframe=gray,
+  drop lifted shadow=black!50!yellow,
+  before=\par\vspace*{5mm},
+  after=\par\bigskip,
+  interior style={
+		draw=white,
+		top color=white,
+		bottom color=white}
+	}
+}
+
+% TOC
+
+\tcbset{toc/.style={
+	breakable,
+	enhanced jigsaw,
+	title={\color{red!50!black}Sommaire},
+	fonttitle=\bfseries\Large,
+  colback=yellow!10!white,
+  colframe=red!50!black,
+  before=\par\bigskip\noindent,
+  interior style={
+  	fill overzoom image=goldshade.png,
+  	fill image opacity=0.25},
+  colbacktitle=yellow!20,
+  enlargepage flexible=\baselineskip,
+  pad at break*=3mm,
+  attach boxed title to top center={
+  	yshift=-0.25mm-\tcboxedtitleheight/2,
+  	yshifttext=2mm-\tcboxedtitleheight/2},
+  boxed title style={
+  	enhanced,
+  	boxrule=0.5mm,
+    frame code={ 
+    \path[tcb fill frame] ([xshift=-4mm]frame.west) -- (frame.north west)
+    -- (frame.north east) -- ([xshift=4mm]frame.east)
+    -- (frame.south east) -- (frame.south west) -- cycle; },
+    interior code={ 
+    	\path[tcb fill interior] ([xshift=-2mm]interior.west)
+    -- (interior.north west) -- (interior.north east)
+    -- ([xshift=2mm]interior.east) -- (interior.south east) -- (interior.south west)
+    -- cycle;}  },
+  drop fuzzy shadow
+	}
+}
+
+% Historique de l'extension
+
+\tcbset{histo/.style={
+	enhanced,
+	breakable,
+	sidebyside,
+	lefthand width=1.5cm
+	}
+}
\ No newline at end of file


Property changes on: trunk/Master/texmf-dist/doc/latex/pas-cours/doc.codes.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/pas-cours/doc.styles.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/pas-cours/doc.styles.tex	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/pas-cours/doc.styles.tex	2016-09-11 22:32:47 UTC (rev 42036)
@@ -0,0 +1,75 @@
+\makeatletter
+
+\def\@dottedtocline#1#2#3#4#5{%
+  \ifnum #1>\c at tocdepth \else
+    \vskip \z@ \@plus.2\p@
+    {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
+     \parindent #2\relax\@afterindenttrue
+     \interlinepenalty\@M
+     \leavevmode
+     \@tempdima #3\relax
+     \advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip
+     {#4}\nobreak
+     \leaders\hbox{$\m at th
+        \mkern \@dotsep mu\hbox{.}\mkern \@dotsep
+        mu$}\hfill
+     \nobreak
+     \hb at xt@\@pnumwidth{\hfil\helvbx #5}%
+     \par}%
+  \fi}
+
+\renewcommand*\l at section
+{%
+\helvbx\color{red!50!black}\bfseries
+\def\@linkcolor{red!50!black}\@dottedtocline{1}{1.5em}{1.5em}
+}
+
+\renewcommand*\l at subsection
+{%
+\helvbx\color{green!50!black}
+\def\@linkcolor{green!50!black}
+\@dottedtocline{1}{2.3em}{2.6em}
+}
+
+\renewcommand*\l at subsubsection
+{%
+\helvbx\color{orange!80!black}
+\def\@linkcolor{orange!80!black}
+\@dottedtocline{1}{3em}{3.3em}
+}
+
+\def\contentsline#1#2#3#4{%
+  \ifx\\#4\\%
+    \csname l@#1\endcsname{#2}{#3}%
+  \else
+      \csname l@#1\endcsname{\hyper at linkstart{link}{#4}{#2}\hyper at linkend}{%
+        \hyper at linkstart{link}{#4}{#3}\hyper at linkend
+      }%
+  \fi
+}
+
+% --------------------
+% TITRES DES SECTIONS 
+% --------------------
+
+\titleformat{\section}[block]
+{\helvbx\Large\color{red!50!black}}
+{\fcolorbox{red!50!black}{red!50!black}{\textcolor{white}{\bfseries\thesection}}}
+{1em}
+{\helvbx}
+
+\titleformat{\subsection}[block]
+{\helvbx\large\color{green!50!black}}
+{\thesubsection}
+{1em}
+{\helvbx}
+
+\titleformat{\subsubsection}[block]
+{\helvbx\large\color{orange!50!black}}
+{\thesubsubsection}
+{1em}
+{\helvbx}
+
+\makeatother
+
+\newcommand{\helvbx}{\usefont{T1}{phv}{m}{n}}
\ No newline at end of file


Property changes on: trunk/Master/texmf-dist/doc/latex/pas-cours/doc.styles.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/pas-cours/macro-calculs.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/pas-cours/macro-calculs.tex	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/pas-cours/macro-calculs.tex	2016-09-11 22:32:47 UTC (rev 42036)
@@ -0,0 +1,45 @@
+% environnement "ifactors" : decomposition en produit de facteurs premiers
+
+\begin{VerbatimOut}{decomp.cxx}
+maple_mode(0);
+n:=read("n.val");
+F:=ifactors(n);
+l:=size(F);
+T:="";
+c:=0;
+for (k:=0;k<l;k:=k+2) { if c!=0 then T:=T+"\\times"; end_if T:=T+F[k]+"^{"+F[k+1]+"}"; c++; };
+Sortie:=fopen("decomp.tex");
+fprint(Sortie,Unquoted,T);
+fclose(Sortie);
+\end{VerbatimOut}
+  
+\newenvironment*{ifactors}
+{\VerbatimEnvironment\begin{VerbatimOut}{n.val}}
+{\end{VerbatimOut}
+\immediate\write18{giac <decomp.cxx}
+\ensuremath{\input{decomp.tex}}
+}
+
+% environnement "ifactors_table"
+
+\begin{VerbatimOut}{decomp_table.cxx}
+maple_mode(0);
+n:=read("n.val");
+F:=ifactors(n);
+l:=size(F);
+for (k:=0;k<l;k:=k+2){ L[k/2]:=F[k]; }; 
+T:="\\begin{tabular}{r|l}";
+k:=0;
+while (n!=1) { T:=T+n+"&"; if (irem(n,L[k])==0) { T:=T+L[k]+"\\\\"; n:=n/L[k]; } else { k:=k+1; T:=T+L[k]+"\\\\"; n:=n/L[k]; };  };
+T:=T+"1 & \\\\\\end{tabular}";
+Sortie:=fopen("decomp_table.tex");
+fprint(Sortie,Unquoted,T);
+fclose(Sortie);
+\end{VerbatimOut}
+  
+\newenvironment*{ifactorstable}
+{\VerbatimEnvironment\begin{VerbatimOut}{n.val}}
+{\end{VerbatimOut}
+\immediate\write18{giac <decomp_table.cxx}
+\input{decomp_table.tex}
+}
\ No newline at end of file


Property changes on: trunk/Master/texmf-dist/doc/latex/pas-cours/macro-calculs.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/texmf-dist/doc/latex/pas-cours/macro-solides.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/pas-cours/macro-solides.tex	2016-09-11 01:17:18 UTC (rev 42035)
+++ trunk/Master/texmf-dist/doc/latex/pas-cours/macro-solides.tex	2016-09-11 22:32:47 UTC (rev 42036)
@@ -422,7 +422,8 @@
 %					coefopaq = coefficient d'opacité,
 %					grandcercle (booléen : si oui, le grand cercle est dessiné),
 %					legende (booléen),
-%					scale = coefficient d'agrandissement]
+%					scale = coefficient d'agrandissement,
+%					greenwich (booléen)]
 
 \define at boolkey[PAS] {boule} {border}[true]{}
 \define at cmdkey [PAS] {boule} {bordercolor}{}
@@ -433,7 +434,14 @@
 \define at cmdkey [PAS] {boule} {coefopaq}{}
 \define at boolkey[PAS] {boule} {grandcercle}[true]{}
 \define at boolkey[PAS] {boule} {legende}[true]{}
+\define at boolkey[PAS] {boule} {greenwich}[true]{}
+\define at boolkey[PAS] {boule} {greenwichlegende}[true]{}
+\define at boolkey[PAS] {boule} {equateurlegende}[true]{}
+\define at boolkey[PAS] {boule} {exemplecoord}[true]{}
 \define at cmdkey [PAS] {boule} {scale}{}
+\define at cmdkey [PAS] {boule} {greenwichcolor}{}
+\define at cmdkey [PAS] {boule} {exemplecoordcolor}{}
+\define at cmdkey [PAS] {boule} {exemplecoordname}{}
 
 \presetkeys    [PAS] {boule} {	border = false,
 								bordercolor = black,
@@ -444,6 +452,13 @@
  							 	scale = 1,
  							 	grandcercle = false,
  							 	legende = false,
+								greenwich = false, % NEW 2016-08-04
+								greenwichcolor = black, % NEW 2016-08-04
+								greenwichlegende = false, % NEW 2016-08-04
+								equateurlegende = false, % NEW 2016-08-04
+								exemplecoord = false, % NEW 2016-08-04
+								exemplecoordcolor = green!50!black, % NEW 2016-08-04
+								exemplecoordname = A, % NEW 2016-08-04
  							 	name = false}{}
 
 \newcommand*{\boule}[1][]{\pasBoule[#1]}
@@ -453,9 +468,9 @@
 	\begin{scope}[scale=\cmdPAS at boule@scale]
 		\ifPAS at boule@grandcercle		
 			\draw[\cmdPAS at boule@bordercolor,dotted] (2,0) arc (0:180:2cm and .5cm);
-		\fi
+		\fi	
 		\ifPAS at boule@name
-			\fill[\cmdPAS at boule@bordercolor] (0,0) circle (0.01cm) node[\cmdPAS at boule@poscentre,scale=\cmdPAS at boule@scale] {\cmdPAS at boule@centre};
+			\fill[\cmdPAS at boule@bordercolor] (0,0) circle (0.03cm) node[\cmdPAS at boule@poscentre,scale=\cmdPAS at boule@scale] {\cmdPAS at boule@centre};
 		\fi
 		\shade[shading=ball, ball color=\cmdPAS at boule@incolor,opacity=\cmdPAS at boule@coefopaq] (0,0) circle (2cm);
 		\ifPAS at boule@grandcercle	
@@ -464,6 +479,9 @@
 		\ifPAS at boule@border
 			\draw[\cmdPAS at boule@bordercolor] (0,0) circle (2cm);
 		\fi
+		\ifPAS at boule@greenwich
+			\draw[\cmdPAS at boule@greenwichcolor] (0,2) arc (90:270:1cm and 2cm);
+		\fi	
 		\ifPAS at boule@legende
 			\pgfmathparse{2*cos(-60)}\let\x\pgfmathresult
 			\pgfmathparse{.5*sin(-60)}\let\y\pgfmathresult	
@@ -475,8 +493,26 @@
 			\pgfmathparse{1.5*cos(38)}\let\x\pgfmathresult
 			\pgfmathparse{1.5*sin(38)}\let\y\pgfmathresult	
 			\draw[<-,>=stealth',\cmdPAS at boule@bordercolor!50!black] (\x,\y) to [bend right=30] (3,\y) node[right,\cmdPAS at boule@bordercolor!50!black] {\texttt{un autre grand cercle}};
-
 		\fi
+		\ifPAS at boule@greenwichlegende
+			\draw[<-,>=stealth',\cmdPAS at boule@greenwichcolor] (-0.6,-1.8) to [bend left=30] (-3,-1.9) node[left,\cmdPAS at boule@greenwichcolor] {\texttt{M\'eridien de Greenwich}};
+		\fi
+		\ifPAS at boule@equateurlegende
+			\draw[<-,>=stealth',\cmdPAS at boule@bordercolor] (1.8,-.3) to [bend right=30] (3,-0.4) node[right,\cmdPAS at boule@bordercolor] {\texttt{\'Equateur}};
+		\fi
+		\ifPAS at boule@exemplecoord
+			\filldraw[fill=\cmdPAS at boule@exemplecoordcolor!50,draw=\cmdPAS at boule@exemplecoordcolor] (0,0) -- (-155:0.4) arc (-110:-50:0.7 and 0.3) -- (-17:0.4)  -- (0,0);
+			\filldraw[fill=\cmdPAS at boule@exemplecoordcolor!25,draw=\cmdPAS at boule@exemplecoordcolor] (0,0) -- (-17:0.4) arc (-17:50:0.7 and 0.3) -- (50:0.4)  -- (0,0);
+			\node[\cmdPAS at boule@exemplecoordcolor,scale={\cmdPAS at boule@scale*0.6}] at (-102:0.4) {80$^\circ$};
+			\node[\cmdPAS at boule@exemplecoordcolor!70,scale={\cmdPAS at boule@scale*0.6}] at (20:0.6) {40$^\circ$};
+			\fill[fill=\cmdPAS at boule@exemplecoordcolor] (50:1.6cm) circle (0.05cm) node[right,\cmdPAS at boule@exemplecoordcolor] {\cmdPAS at boule@exemplecoordname};
+			\draw[dashed,\cmdPAS at boule@greenwichcolor] (-0.98,-0.43) -- (0,0);
+			\draw[dashed,\cmdPAS at boule@exemplecoordcolor] (0,0) -- (1.28,-0.38);
+			\draw[dashed,\cmdPAS at boule@exemplecoordcolor] (0,0) -- (50:1.6cm);
+			\fill[\cmdPAS at boule@greenwichcolor] (-0.98,-0.43) circle (0.05cm) node[below left,scale=\cmdPAS at boule@scale,color=\cmdPAS at boule@greenwichcolor] {G};
+			\draw[\cmdPAS at boule@exemplecoordcolor] (0,2) arc (90:-90:1.3cm and 2cm);
+			\fill[\cmdPAS at boule@exemplecoordcolor] (1.28,-0.38) circle (0.05cm) node[below right,scale=\cmdPAS at boule@scale,color=\cmdPAS at boule@exemplecoordcolor] {H};
+		\fi
 	\end{scope}
 }
 

Modified: trunk/Master/texmf-dist/doc/latex/pas-cours/macro-styles.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/pas-cours/macro-styles.tex	2016-09-11 01:17:18 UTC (rev 42035)
+++ trunk/Master/texmf-dist/doc/latex/pas-cours/macro-styles.tex	2016-09-11 22:32:47 UTC (rev 42036)
@@ -1,3 +1,5 @@
+\def\couleur{black}
+
 % Fichier comprenant les macros de styles
 
 \newcounter{cnt at chap}
@@ -26,7 +28,18 @@
 \define at boolkey[PAS] {env} {degrade}[true]{} 
 \define at boolkey[PAS] {env} {notitle}[true]{} 
 \define at boolkey[PAS] {env} {notitlebreak}[true]{}
-\presetkeys    [PAS] {env} {style= , name= , title= ,pluriel = false, color=, symb = $\blacksquare$, degrade = false, toc=false, notoc=false, notitle=false, notitlebreak=false, endsymb=false, num=false}{}
+\define at boolkey[PAS] {env} {effect}[true]{}
+\if at notitlebreak
+	\presetkeys[PAS] {env} {notitlebreak=true}{}
+\else
+	\presetkeys[PAS] {env} {notitlebreak=false}{}
+\fi
+\if at noeffect
+	\presetkeys[PAS] {env} {effect=false}{}
+\else
+	\presetkeys[PAS] {env} {effect=true}{}
+\fi
+\presetkeys    [PAS] {env} {style= , name= , title= ,pluriel = false, color=, symb = $\blacksquare$, degrade = false, toc=false, notoc=false, notitle=false, endsymb=false, num=false}{}
 
 \newcommand*{\env}[1][]{\pasEnv[#1]}
 
@@ -59,7 +72,7 @@
    	\stepcounter{cnt at prop}
    	\edef\texte{\texte~\thecnt at prop}
    \fi
-   \def\couleur{red}%
+   \def\couleur{prop}%
    }{}
    \IfStrEq{\cmdPAS at env@style}{demo}
    {%
@@ -72,7 +85,7 @@
    	\stepcounter{cnt at demo}
    	\edef\texte{\texte~\thecnt at demo}
    \fi
-   \def\couleur{black}%
+   \def\couleur{demo}%
    }{}
    \IfStrEq{\cmdPAS at env@style}{rem}{\ifPAS at env@pluriel\def\texte{Remarques}\else\def\texte{Remarque}\fi\def\couleur{rem}}{}
    \IfStrEq{\cmdPAS at env@style}{defi}
@@ -91,7 +104,7 @@
 	\IfStrEq{\cmdPAS at env@style}{thm}{\ifPAS at env@pluriel\def\texte{Th\'eor\`emes}\else\def\texte{Th\'eor\`eme}\fi\ifPAS at env@num\stepcounter{cnt at thm}\edef\texte{\texte~\thecnt at thm}\fi\def\couleur{thm}}{}
    \IfStrEq{\cmdPAS at env@style}{ex}{\ifPAS at env@pluriel\def\texte{Exemples}\else\def\texte{Exemple}\fi \ifPAS at env@num\stepcounter{cnt at ex}\edef\texte{\texte~\thecnt at ex}\fi\def\couleur{ex}}{}
    \IfStrEq{\cmdPAS at env@style}{nota}{\ifPAS at env@pluriel\def\texte{Notations}\else\def\texte{Notation}\fi \ifPAS at env@num\stepcounter{cnt at nota}\edef\texte{\texte~\thecnt at nota}\fi\def\couleur{nota}}{}
-   \IfStrEq{\cmdPAS at env@style}{act}{\ifPAS at env@pluriel\def\texte{Activit\'es}\else\def\texte{Activit\'e}\fi \ifPAS at env@num\stepcounter{cnt at act}\edef\texte{\texte~\thecnt at act}\fi\def\couleur{orange}}{}
+   \IfStrEq{\cmdPAS at env@style}{act}{\ifPAS at env@pluriel\def\texte{Activit\'es}\else\def\texte{Activit\'e}\fi \ifPAS at env@num\stepcounter{cnt at act}\edef\texte{\texte~\thecnt at act}\fi\def\couleur{act}}{}
 	\IfStrEq{\cmdPAS at env@style}{meth}{\ifPAS at env@pluriel\def\texte{M\'ethodes}\else\def\texte{M\'ethode}\fi \ifPAS at env@num\stepcounter{cnt at meth}\edef\texte{\texte~\thecnt at meth}\fi\def\couleur{brown}}{}
 	\IfStrEq{\cmdPAS at env@title}{}{}{\def\texte{\cmdPAS at env@title}}
 	\IfStrEq{\cmdPAS at env@color}{}{}{\def\couleur{\cmdPAS at env@color}}
@@ -113,10 +126,16 @@
       	\end{minipage}
    	};
    	\ifPAS at env@notitle\else
-   		\node[text=white,fill=\couleur,rectangle, shading=ball, ball color=\couleur, above right] (title) at ($(box.north west)+(-0.03,0)$)
+		\ifPAS at env@effect
+			\node[text=white,fill=\couleur,rectangle, shading=ball, ball color=\couleur, above right] (title) at ($(box.north west)+(-0.03,0)$)
    		{\kern-3pt\begin{ant}\textbf{\texte}\end{ant}};
+		\draw[color=\couleur!50!black,very thick] (box.north west)--(box.south west)--(box.south east);
+		\else
+			\node[text=white,fill=\couleur,rectangle, above right] (title) at ($(box.north west)+(-0.03,0)$)
+   		{\kern-3pt\begin{ant}\textbf{\texte}\end{ant}};
+			\draw[color=\couleur,very thick] (box.north west)--(box.south west)--(box.south east);
+		\fi
    	\fi
-   	\draw[color=\couleur!50!black,very thick] (box.north west)--(box.south west)--(box.south east);
    	\node[left,color=\couleur] at (box.north east) {\emph{\cmdPAS at env@name}};
    \end{tikzpicture}   
    \vspace{0.5cm}
@@ -285,20 +304,33 @@
    	};
    	\ifnum\thesuite at box=1
    		\edef\texte{\texte~(suite)}
-   		\ifPAS at env@notitlebreak\else\ifPAS at env@notitle\else
-   			\node[text=white,fill=\couleur,rectangle, shading=ball, ball color=\couleur, above right] (title) at ($(box.north west)+(-0.03,0)$)
-   			{\begin{ant}\kern-3pt\texte\end{ant}};
-   		\fi\fi
+   		\ifPAS at env@notitlebreak%
+		\else
+				\ifPAS at env@notitle
+				\else
+					\ifPAS at env@effect
+						\node[text=white,fill=\couleur,rectangle, shading=ball, ball color=\couleur, above right] (title) at ($(box.north west)+(-0.03,0)$){\begin{ant}\kern-3pt\texte\end{ant}};
+						\draw[color=\couleur!50!black,very thick] (box.north west)--(box.south west)--(box.south east);
+					\else
+						\node[text=white,fill=\couleur,rectangle, above right] (title) at ($(box.north west)+(-0.03,0)$){\kern-3pt\begin{ant}\textbf{\texte}\end{ant}};
+						\draw[color=\couleur, very thick] (box.north west)--(box.south west)--(box.south east);
+					\fi
+				\fi
+		\fi
    	\else
    		\ifPAS at env@notitle\else
-   			\node[text=white,fill=\couleur,rectangle, shading=ball, ball color=\couleur, above right] (title) at ($(box.north west)+(-0.03,0)$)
-   			{\kern-3pt\begin{ant}\texte\end{ant}};
-   		\fi
-   	\fi
-   		\draw[color=\couleur!50!black,very thick] (box.north west)--(box.south west)--(box.south east);
-   		\node[left,color=\couleur] at ($(box.north east)+(0,1pt)$) {\emph{\cmdPAS at env@name}};
-   		\end{tikzpicture}   
-   		\vspace{0.5cm}
+			\ifPAS at env@effect
+				\node[text=white,fill=\couleur,rectangle, shading=ball, ball color=\couleur, above right] (title) at ($(box.north west)+(-0.03,0)$){\kern-3pt\begin{ant}\texte\end{ant}};
+				\draw[color=\couleur!50!black,very thick] (box.north west)--(box.south west)--(box.south east);
+			\else
+				\node[text=white,fill=\couleur,rectangle, above right] (title) at ($(box.north west)+(-0.03,0)$){\kern-3pt\begin{ant}\texte\end{ant}};
+				\draw[color=\couleur,very thick] (box.north west)--(box.south west)--(box.south east);
+			\fi
+		\fi
+   	\fi	
+   	\node[left,color=\couleur] at ($(box.north east)+(0,1pt)$) {\emph{\cmdPAS at env@name}};
+   	\end{tikzpicture}   
+   	\vspace{0.5cm}
 }
 
 % \breakbox
@@ -314,8 +346,11 @@
 		\usebox{\pas at box}
    	};
    	\ifPAS at env@notitle\else
-   	\node[text=white,fill=\couleur,rectangle, shading=ball, ball color=\couleur, above right] (title) at ($(box.north west)+(-0.03,0)$)
-   		{\begin{ant}\textbf{\texte}\end{ant}};
+		\ifPAS at env@effect
+			\node[text=white,fill=\couleur,rectangle, shading=ball, ball color=\couleur, above right] (title) at ($(box.north west)+(-0.03,0)$){\begin{ant}\textbf{\texte}\end{ant}};
+		\else
+			\node[text=white,fill=\couleur,rectangle, above right] (title) at ($(box.north west)+(-0.03,0)$){\begin{ant}\textbf{\texte}\end{ant}};
+		\fi
    	\fi
    		\draw[color=\couleur!50!black,very thick] (box.north west)--(box.south west)--(box.south east);
    		\node[left,color=\couleur] at (box.north east) {\emph{\cmdPAS at env@name}};
@@ -333,17 +368,27 @@
 \define at cmdkey [PAS] {chap} {color}{}
 \define at cmdkey [PAS] {chap} {pos}{}
 \define at boolkey[PAS] {chap} {autonum}[true]{} 
+\define at boolkey[PAS] {chap} {nonewpage}[true]{} 
 \presetkeys    [PAS] {chap} {num = ,
  							 color = red,
  							 pos = right,
-							 autonum = false}{} % maj 19/08/2014
+							 autonum = false, % maj 19/08/2014
+							 nonewpage = false}{} % maj 22/03/2015
 
 \newcommand*{\chap}[1][]{\pasChap[#1]}
-
+\setcounter{cnt at chap}{0}
 \def\pasChap[#1]#2#3{
    \setkeys[PAS]{chap}{#1}
-   \setcounter{cnt at chap}{0}
-   \ifPAS at chap@autonum\stepcounter{cnt at chap}\def\titre at chapitre{\thecnt at chap}\else\def\titre at chapitre{\cmdPAS at chap@num} \clearpage \fi
+   \ifPAS at chap@autonum
+   	\stepcounter{cnt at chap}
+   	\def\titre at chapitre{\thecnt at chap}
+   \else
+   	\def\titre at chapitre{\cmdPAS at chap@num}
+   \fi
+   \ifPAS at chap@nonewpage
+   \else
+   	\clearpage 
+   \fi
    \IfStrEq{\cmdPAS at chap@pos}{right}
       { \tikzstyle{pastitrepos} = [text=\cmdPAS at chap@color,rectangle,left]
         \tikzstyle{pastrait} = [right color=\cmdPAS at chap@color, left color=white,thick]
@@ -380,12 +425,14 @@
 
 %%%%%%%%%%%% Définition d'un mot
 
-\newcommand{\definmot}[1]{\texttt{\textbf{\textcolor{\couleur}{#1}}}}
+\newcommand{\definmot}[1]
+{\texttt{\textbf{\textcolor{\couleur}{\boldmath#1}}}}
 
 % Itemclass
 
 \newcommand{\itemclass}[1] % #1 = couleur
 {
+	\if at noitemstyle\else
 	\setlist[itemize,1]{label={\color{#1!50!black}\textbullet}}
 	\setlist[itemize,2]{label={\color{#1!50!black}$\rightarrow$}}
 	\setlist[enumerate,1]
@@ -395,19 +442,36 @@
 		{\color{#1!20}\normalsize\bfseries\arabic*}
 	}
 	\setlist[enumerate,2]{label=\textcolor{#1!50!black}{\normalsize\bfseries\alph*.}}
+	\fi
 }
 \itemclass{black}{}
 
 %%%%%%%%%%%% Pour le sommaire
 
+\def\@dottedtocline#1#2#3#4#5{%
+  \ifnum #1>\c at tocdepth \else
+    \vskip \z@ \@plus.2\p@
+    {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
+     \parindent #2\relax\@afterindenttrue
+     \interlinepenalty\@M
+     \leavevmode
+     \@tempdima #3\relax
+     \advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip
+     {#4}\nobreak
+     \leaders\hbox{$\m at th
+        \mkern \@dotsep mu\hbox{.}\mkern \@dotsep
+        mu$}\hfill
+     \nobreak
+     \hb at xt@\@pnumwidth{\hfil #5}%
+     \par}%
+  \fi}
+  
 \renewcommand*\l at section{\color{blue!50!black}\def\@linkcolor{blue!50!black}\@dottedtocline{1}{1em}{2.3em}}
 \def\contentsline#1#2#3#4{%
   \ifx\\#4\\%
     \csname l@#1\endcsname{#2}{#3}%
   \else
-      \csname l@#1\endcsname{\hyper at linkstart{link}{#4}{#2}\hyper at linkend}{%
-        \hyper at linkstart{link}{#4}{#3}\hyper at linkend
-      }%
+      \csname l@#1\endcsname{\hyper at linkstart{link}{#4}{#2}\hyper at linkend}{\hyper at linkstart{link}{#4}{#3}\hyper at linkend}%
   \fi
 }
 \renewcommand{\contentsname}{\color{purple}\titreFONT\huge Sommaire}
@@ -447,6 +511,7 @@
 }
 
 %%%%%%%%%%%%%%% A RETENIR
+
 \newsavebox{\imageBox}
 \newlength{\largeurimageBox}
 \newsavebox{\aretenirBox}
@@ -474,11 +539,43 @@
 
 \newsavebox{\attentionBox}
 
+\define at cmdkey [PAS] {warning} {img}{}
+\define at cmdkey [PAS] {warning} {scale}{}
+\define at cmdkey [PAS] {warning} {margins}{}
+\define at cmdkey [PAS] {warning} {draw}{}
+\define at boolkey[PAS] {warning} {bg}[true]{} 
+\define at cmdkey [PAS] {warning} {bgcolor}{}
+\presetkeys    [PAS] {warning} {img=attention.eps,scale=1,margins=1pt,draw=red!50!black,bg=false}{}
+
+\newenvironment{warning}[1][]
+{%
+	\setkeys[PAS]{warning}{#1}
+	\begin{lrbox}{\imageBox}
+		\includegraphics[scale=\cmdPAS at warning@scale]{\cmdPAS at warning@img}
+	\end{lrbox}
+	\settowidth{\largeurimageBox}{\usebox{\imageBox}}%
+	\begin{lrbox}{\attentionBox}
+		\begin{minipage}{\dimexpr\linewidth-\largeurimageBox-1em-10pt}
+}
+{%
+		\end{minipage}
+	\end{lrbox}
+	\begin{tikzpicture}
+	\node[outer ysep=0pt,inner ysep=0pt] (icone) {\includegraphics[scale=\cmdPAS at warning@scale]{\cmdPAS at warning@img}};
+	\ifPAS at warning@bg
+		\node[below right,rounded corners,very thick,draw=\cmdPAS at warning@draw,inner sep=\cmdPAS at warning@margins,fill=\cmdPAS at warning@bgcolor] (box) at (icone.north east) {\usebox{\attentionBox}};
+	\else
+		\node[below right,rounded corners,very thick,draw=\cmdPAS at warning@draw,inner sep=\cmdPAS at warning@margins,outer sep=0pt] (box) at (icone.north east) {\usebox{\attentionBox}};
+	\fi
+	\end{tikzpicture}
+}
+
+
 \newenvironment{attention}[1][1]
 {%
-\def\sc{#1}
+\def\scale at img{#1}
 \begin{lrbox}{\imageBox}
-\includegraphics[scale=\sc]{attention.png}
+\includegraphics[scale=\scale at img]{attention.png}
 \end{lrbox}
 \settowidth{\largeurimageBox}{\usebox{\imageBox}}%
 \begin{lrbox}{\attentionBox}
@@ -488,8 +585,8 @@
 \end{minipage}
 \end{lrbox}
 \begin{tikzpicture}
-\node[below right,rounded corners,very thick,draw=red!60!black] (box) {\usebox{\attentionBox}};
-\node[below left] at ($(box.north west)+(0,0.8em)$) {\includegraphics[scale=\sc]{attention.png}};
+\node[outer ysep=0pt,inner ysep=0pt] (icone) {\includegraphics[scale=\scale at img]{attention.png}};
+\node[below right,rounded corners,very thick,draw=red!60!black] (box) at (icone.north east) {\usebox{\attentionBox}};
 \end{tikzpicture}
 \vspace*{2em}
 }
@@ -516,4 +613,4 @@
 \color{blue!40!black}Compl\'ement \thebonus : #1
 \endgroup
 \vspace*{1em}
-}
+}
\ No newline at end of file

Modified: trunk/Master/texmf-dist/doc/latex/pas-cours/pas-cours.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/pas-cours/pas-cours.tex	2016-09-11 01:17:18 UTC (rev 42035)
+++ trunk/Master/texmf-dist/doc/latex/pas-cours/pas-cours.tex	2016-09-11 22:32:47 UTC (rev 42036)
@@ -1,14 +1,19 @@
-\documentclass[12pt,french]{article}
+\documentclass[a4paper,french]{article}
 \usepackage[latin1]{inputenc}
-\usepackage{babel}
 \usepackage[T1]{fontenc}
-\usepackage{listings}
+\usepackage{babel} 
+\usepackage{etex}
+\usepackage{fourier}
+\usepackage[table]{xcolor}
 \usepackage[colorlinks=true,urlcolor=blue]{hyperref}
-\usepackage[vmargin=2cm,hmargin=2cm]{geometry}
+\usepackage[ant]{pas-cours}
 \usepackage{titlesec}
-\usepackage{kpfonts}
+\usepackage{tcolorbox}
+	\tcbuselibrary{skins}
+	\tcbuselibrary{theorems}
+	\tcbuselibrary{breakable}
 
-%--------- Propres \xE0 cette doc
+% --- Propre \xE0 cette doc
 
 \usepackage{cellspace}
 \setlength{\cellspacetoplimit}{4pt}
@@ -16,122 +21,37 @@
 \usepackage{tabularx}
 \usepackage{lipsum}
 \usepackage{multido}
-\usepackage[table]{xcolor}
-\usepackage[ant]{pas-cours}
+\usepackage{numprint}
 
-%------------------------------
+% ----------------------
 
-\makeatletter
+\setlength{\parindent}{0pt}
 
-% -------------------
-% TABLE DES MATIERES 
-% -------------------
+\input{doc.codes.tex}
+\input{doc.styles.tex}
 
-\addto{\captionsfrench}{\renewcommand*{\contentsname}{\begin{ant}\color{red!50!black}\Huge\bfseries Sommaire\end{ant}}}
+\begin{document}
 
-\def\@dottedtocline#1#2#3#4#5{%
-  \ifnum #1>\c at tocdepth \else
-    \vskip \z@ \@plus.2\p@
-    {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
-     \parindent #2\relax\@afterindenttrue
-     \interlinepenalty\@M
-     \leavevmode
-     \@tempdima #3\relax
-     \advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip
-     {#4}\nobreak
-     \leaders\hbox{$\m at th
-        \mkern \@dotsep mu\hbox{.}\mkern \@dotsep
-        mu$}\hfill
-     \nobreak
-     \hb at xt@\@pnumwidth{\hfil\normalfont #5}%
-     \par}%
-  \fi}
+\begin{center}
+\begin{tcolorbox}[head]
+{\bfseries\LARGE Documentation \texttt{pas-cours} }\\[3mm]
+{\large Version 1.6 -- \today}
+\end{tcolorbox}
 
-\renewcommand*\l at section
-{%
-\color{blue!50!black}\large
-\def\@linkcolor{blue!50!black}\@dottedtocline{1}{1.5em}{2.3em}
-}
+{\large 
+\href{http://www.mathweb.fr/contact.html}{St\xE9phane Pasquet}}
+\end{center}
 
-\renewcommand*\l at subsection
-{%
-\color{green!50!black}\normalsize
-\def\@linkcolor{green!50!black}
-\@dottedtocline{1}{2.3em}{2.6em}
-}
-
-\renewcommand*\l at subsubsection
-{%
-\color{orange!80!black}\normalsize
-\def\@linkcolor{orange!80!black}
-\@dottedtocline{1}{3em}{3.3em}
-}
-
-\def\contentsline#1#2#3#4{%
-  \ifx\\#4\\%
-    \csname l@#1\endcsname{#2}{#3}%
-  \else
-      \csname l@#1\endcsname{\hyper at linkstart{link}{#4}{#2}\hyper at linkend}{%
-        \hyper at linkstart{link}{#4}{#3}\hyper at linkend
-      }%
-  \fi
-}
-
-% --------------------
-% TITRES DES SECTIONS 
-% --------------------
-
-\titleformat{\section}[block]
-{\helvbx\Large\color{blue}}
-{\fcolorbox{blue}{blue}{\textcolor{white}{\bfseries\thesection}}}
-{1em}
-{\helvbx}
-
-\titleformat{\subsection}[block]
-{\helvbx\large\color{blue}}
-{\thesubsection}
-{1em}
-{\helvbx}
-
+\begin{tcolorbox}[toc]
+\makeatletter
+\@starttoc{toc}
 \makeatother
+\end{tcolorbox}
 
-\newcommand{\helvbx}{\usefont{T1}{phv}{m}{n}}
 
-\title{pas-cours.sty\\\small v1.09d}
-\date{\today}
-\author{St\xE9phane PASQUET\\\href{mailto:contact at mathweb.fr}{contact at mathweb.fr}}
-
-\lstset{
-	numbers=left, 
-	numberstyle=\tiny, 
-	stepnumber=1, 
-	numbersep=3pt, 
-	language=[LaTeX]TeX, 
-	backgroundcolor=\color{blue!5},
-	frame=shadowbox,
-	rulesepcolor=\color{blue},
-	rulecolor=\color{blue},
-	framexleftmargin=10pt,
-	keywordstyle=\color{blue}\bfseries,
-	basicstyle=\ttfamily,
-  columns=flexible,
-  keepspaces=true,
-  upquote=true,
-  commentstyle=\color{gray},
-  morekeywords={bonus,itemclass,breakbox,multido,geometry,chap,definmot,env,cube,cone,boule,cylindre,pyramreg,prismereg,patronpave,patroncone,patroncylindre,patronpyramreg,patronprismereg}
-}
-
-\setlength{\parindent}{0pt}
-\begin{document} 
-
-\maketitle
-
-\tableofcontents
-
-
 \section{Pr\xE9sentation et Installation}
 
-Le package \texttt{pas-cours.sty} a \xE9t\xE9 cr\xE9\xE9 dans le but d'avoir une belle pr\xE9sentation de cours et de dessiner des figures usuelles 3D tr\xE8s simplement.
+L'extension \texttt{pas-cours.sty} a \xE9t\xE9 cr\xE9\xE9e dans le but d'avoir une belle pr\xE9sentation de cours et de dessiner des figures usuelles 3D tr\xE8s simplement.
 
 \medskip
 
@@ -139,7 +59,7 @@
 
 \medskip
 
-Ce package charge automatiquement les extensions suivantes :
+Cette extension charge automatiquement les extensions suivantes :
 
 \medskip
 
@@ -153,9 +73,67 @@
 
 \medskip
 
-Je vous conseille d'installer manuellement ce package (dans le r\xE9pertoire \texttt{texmf-local/tex/latex/pas-cours} par exemple) afin d'avoir acc\xE8s \xE0 la documentation \xE0 tout moment avec la commande \texttt{texdoc pas-cours} car on m'a report\xE9 un probl\xE8me pour les utilisateurs de TeXLive et MacTeX. 
+\begin{itemize}
+\item Sous Ubuntu, on pourra d\xE9compresser \texttt{pas-cours.zip} dans le r\xE9pertoire :
 
+\begin{verbatim}
+./texlive/texmf-local/tex/latex/
+\end{verbatim}
 
+de sorte \xE0 avoir :
+
+
+\begin{verbatim}
+./texlive/texmf-local/tex/latex/pas-cours/latex/attention.png
+\end{verbatim}
+\begin{verbatim}
+./texlive/texmf-local/doc/latex/pas-cours/latex/coeur.png
+\end{verbatim}
+\begin{verbatim}
+./texlive/texmf-local/doc/latex/pas-cours/latex/prerequis.png
+\end{verbatim}
+\begin{verbatim}
+./texlive/texmf-local/doc/latex/pas-cours/latex/macro-patrons.tex
+\end{verbatim}
+\begin{verbatim}
+./texlive/texmf-local/doc/latex/pas-cours/latex/macro-solides.tex
+\end{verbatim}
+\begin{verbatim}
+./texlive/texmf-local/doc/latex/pas-cours/latex/macro-styles.tex
+\end{verbatim}
+\begin{verbatim}
+./texlive/texmf-local/tex/latex/pas-cours/latex/pas-cours.sty
+\end{verbatim}
+\begin{verbatim}
+./texlive/texmf-local/doc/latex/pas-cours/doc/pas-cours.pdf
+\end{verbatim}
+\begin{verbatim}
+./texlive/texmf-local/doc/latex/pas-cours/doc/doc.codes.tex
+\end{verbatim}
+\begin{verbatim}
+./texlive/texmf-local/doc/latex/pas-cours/doc/doc.styles.tex
+\end{verbatim}
+\begin{verbatim}
+./texlive/texmf-local/doc/latex/pas-cours/doc/pas-cours.tex
+\end{verbatim}
+
+Apr\xE8s installation, n'oubliez pas de taper la commande \texttt{texhash} dans le terminal pour mettre \xE0 jour la base de donn\xE9es des extensions.
+
+\item Sous Windows, on pourra d\xE9compresser \texttt{pas-cours.zip} dans le r\xE9pertoire :
+
+\texttt{C:\textbackslash texmf\textbackslash tex\textbackslash latex\textbackslash pas-cours\textbackslash}
+
+par exemple (je vous conseille de cr\xE9er un tel r\xE9pertoire dans l'\xE9ventualit\xE9 o\xF9 vous seriez amen\xE9s plus tard \xE0 mettre \xE0 jour Miktex; cela \xE9vite de perdre les extensions install\xE9es manuellement). Dans ce cas, n'oubliez pas d'informer ce chemin dans le manager de Miktex (sous Windows 10, tapez \og Miktex \fg{} dans la barre de recherche du menu d\xE9marrer, puis s\xE9lectionnez \og Miktex  setting (Admin)\fg. S\xE9lectionnez l'onglet \og roots \fg{}  (en haut de la fen\xEAtre qui s'est ouverte), puis cliquez sur le bouton \og 
+Add... \fg{}  (en bas). Choisissez alors le r\xE9pertoire cr\xE9\xE9.
+
+N'oubliez pas de faire un \og Refresh  FNDB \fg{} lorsque vous en aurez termin\xE9.
+\end{itemize}
+
+\bigskip 
+
+Avec macTex (sous Mac OS), j'imagine que l'arborescence ressemble \xE0 ce qui est \xE9crit pr\xE9c\xE9demment pour Ubuntu (mais \xE0 confirmer...).
+
+
 \section{Pr\xE9ambule}
 
 Le pr\xE9ambule de votre fichier \texttt{tex} doit comporter n\xE9cessairement la ligne suivante :
@@ -162,59 +140,88 @@
 
 \medskip
 
-\begin{lstlisting}
+\begin{tcblisting}{codeTEX,title={Appel \xE0 l'extension}}
 \usepackage{pas-cours}
-\end{lstlisting}
+\end{tcblisting}
 
-\medskip
+\subsection{L'option g\xE9n\xE9rale : \texttt{ant}}
 
 Si vous souhaitez que les titres soient \xE9crits avec la police \texttt{anttlc}, vous pouvez passer l'option \texttt{ant} en appelant le package \texttt{pas-cours} :
 
 \medskip
 
-\begin{lstlisting}
+\begin{tcblisting}{codeTEX,title={Appel \xE0 l'extension avec param\xE8tre}}
 \usepackage[ant]{pas-cours}
-\end{lstlisting}
+\end{tcblisting}
 
 \medskip
 
 \`A titre d'information, ce document a \xE9t\xE9 compil\xE9 avec l'option \texttt{ant} (donc en utilisant la police \texttt{anttlc}). Regardez le titre de chaque environnement (propri\xE9t\xE9s, th\xE9or\xE8mes, etc.) plus loin ... vous verrez que ce n'est pas une police normale.
 
+\subsection{L'option g\xE9n\xE9rale : \texttt{noitemstyle}}
+\label{noitemstyle}
+
+Par d\xE9faut, \texttt{pas-cours} modifie le style des items. Si vous ne souhaitez pas que cette action soit faite, indiquez l'option suivante :
+
+\medskip
+
+\begin{tcblisting}{codeTEX,title={Pas de changement de style pour les items}}
+\usepackage[noitemstyle]{pas-cours}
+\end{tcblisting}
+
+\subsection{L'option g\xE9n\xE9rale : \texttt{notitlebreak}}
+
+C'est une option qui concerne l'environnement \texttt{pasbox} (voir section \label{pasbox} page \pageref{pasbox}).
+
+Quand celle-ci est appel\xE9e, et quand les cadres \og pasbox \fg{} sont coup\xE9s, le titre n'appara\xEEt pas au dessus du second cadre et des \xE9ventuels suivants (voir la commande \texttt{\textbackslash breakbox} page \pageref{breakbox}).
+
 \section{Titres de chapitre}
 
-\begin{lstlisting}
+\begin{tcblisting}{codeTEX,title={Affichage du titre du chapitre}}
 \chap[<options>]{Titre du chapitre}{Sous-titre du chapitre}
-\end{lstlisting}
+\end{tcblisting}
 
 \bigskip
 
 \begin{tabularx}{\textwidth}{rcX}
 \texttt{autonum} & : & bool\xE9en (par d\xE9faut : false). Indique si le num\xE9ro de chapitre doit \^etre automatiquement calcul\xE9.\\
-\texttt{num} & = & le num\xE9ro du chapitre (obligatoire si "autonum=false")\\
-\texttt{color} & = & couleur que vous voulez (option facultative ; en cas d'absence, la couleur sera rouge)\\
-\texttt{pos} & = & left ou right (option facultative ; en cas d'absence, la position du num\xE9ro du chapitre sera "right" donc \xE0 droite)
+\texttt{num} & = & le num\xE9ro du chapitre (obligatoire si "autonum=false").\\
+\texttt{color} & = & couleur que vous voulez (option facultative ; en cas d'absence, la couleur sera rouge).\\
+\texttt{pos} & = & left ou right (option facultative ; en cas d'absence, la position du num\xE9ro du chapitre sera "right" donc \xE0 droite).\\
+\texttt{nonewpage} & : & bool\xE9en (par d\xE9faut : false). Indique si l'on ne souhaite pas mettre le titre sur une nouvelle page.
 \end{tabularx}
 
 \medskip
 
-\begin{lstlisting}
+\begin{tcblisting}{codeTEX,title=D\xE9finition de l'environnement}
 \chap[num=1,color=blue]{Nombres entiers}{St\xE9phane PASQUET, \today}
-\end{lstlisting}
+\end{tcblisting}
 
 \medskip
 
-\emph{Voir ce que cela donne page suivante}
+\chap[num=1,color=blue,nonewpage]{Nombres entiers}{St\xE9phane PASQUET, \today}
 
 \newpage
 
-\chap[num=1,color=blue]{Nombres entiers}{St\xE9phane PASQUET, \today}
+\section{La commande \textbackslash definmot}
 
-\section{Propri\xE9t\xE9s, d\xE9finitions, etc.}
+Elle permet de mettre en relief un mot dans un cadre.
 
-\begin{lstlisting}
-\env[<options>]{texte}
-\end{lstlisting}
+\begin{tcblisting}{listing,title={Mot en exergue}}
+\begin{pasbox}[style=defi,name={Nombre premier},degrade]
+Un nombre est \definmot{premier} s'il n'est divisible que par 1 et lui-m\xEAme.
+\end{pasbox}
+\end{tcblisting}
 
+\section{L'environnement \og pasbox \fg}
+\label{pasbox}
+
+\begin{tcblisting}{codeTEX,title={L'environnement pasbox}}
+\begin{pasbox}[<options>]
+Contenu
+\end{pasbox}
+\end{tcblisting}
+
 \bigskip
 
 \begin{tabularx}{\textwidth}{rcX}
@@ -233,207 +240,163 @@
 \texttt{pluriel} & : & d\xE9signe s'il faut mettre un "s" \xE0 la fin du titre (Option facultative)\\
 \texttt{name} & = & nom de la propri\xE9t\xE9 (option facultative)\\
 \texttt{title} & = & titre que vous souhaitez mettre (si le titre par d\xE9faut ne vous convient pas)\\
+\end{tabularx}
+
+\begin{tabularx}{\textwidth}{rcX}
 \texttt{color} & = & couleur du cadre (si la couleur par d\xE9faut ne vous convient pas)\\
 \texttt{degrade} & : & bool\xE9en pour faire un d\xE9grad\xE9 dans le cadre\\
 \texttt{endsymb} & : & bool\xE9en qui met un symbole de fin quand il figure parmi les options (par d\xE9faut : $\blacksquare$)\\
 \texttt{symb} & = &  symbole que vous souhaitez mettre \xE0 la fin (si celui par d\xE9faut ne vous convient pas)\\
 \texttt{toc} & : & bool\xE9en pour mettre le \texttt{name} de l'environnement actuel dans la table des mati\xE8re (par d\xE9faut : \texttt{false})\\
-\texttt{notoc} & : & bool\xE9en pour indiquer de ne pas mettre le \texttt{name} de l'environnement actuel dans la table des mati\xE8res (par d\xE9faut : \texttt{false})
+\texttt{notoc} & : & bool\xE9en pour indiquer de ne pas mettre le \texttt{name} de l'environnement actuel dans la table des mati\xE8res (par d\xE9faut : \texttt{false})\\
+\texttt{effect} & : & bool\xE9en pour mettre un effet sur le titre de l'environnement (par d\xE9faut : \texttt{true})\\
 \end{tabularx}
 
 \subsection{Th\xE9or\xE8mes}
 
-\begin{lstlisting}
-\env[style=thm,name=Th\xE9or\xE8me de Pythagore,degrade]
-{Si ABC est un triangle rectangle en A, alors $BC^2=AB^2+AC^2$.}
-\end{lstlisting}
+\begin{tcblisting}{listing,title={Th\xE9or\xE8me}}
+\begin{pasbox}[style=thm,name={Th\xE9or\xE8me de Pythagore},degrade]
+Soit ABC un triangle rectangle en A. Alors, \[ BC^2=AB^2+AC^2\]\vskip-2.3em
+\end{pasbox}
+\end{tcblisting}
 
-\medskip
 
-\env[style=thm,name=Th\xE9or\xE8me de Pythagore,degrade]
-{Si ABC est un triangle rectangle en A, alors $BC^2=AB^2+AC^2$.}
+\begin{tcblisting}{listing,title={Th\xE9or\xE8me num\xE9rot\xE9}}
+\begin{pasbox}[style=thm,name={Th\xE9or\xE8me de Pythagore},degrade,num]
+Soit ABC un triangle rectangle en A. Alors, \[ BC^2=AB^2+AC^2\]\vskip-2.3em
+\end{pasbox}
+\end{tcblisting}
 
-\begin{lstlisting}
-\env[style=thm,name=Th\xE9or\xE8me de Pythagore,num]
-{Si ABC est un triangle rectangle en A, alors $BC^2=AB^2+AC^2$.}
-\end{lstlisting}
-
-\medskip
-
-\env[style=thm,name=Th\xE9or\xE8me de Pythagore,num]
-{Si ABC est un triangle rectangle en A, alors $BC^2=AB^2+AC^2$.}
-
 \subsection{D\xE9finitions}
 
-\begin{lstlisting}
-\env[style=defi,name=Centre de gravit\xE9,degrade,notitle]
-{Dans un triangle, le point d'intersection des m\xE9dianes est appel\xE9 le 
-\definmot{centre de gravit\xE9}.}
+\begin{tcblisting}{listing,title={D\xE9finition sans titre}}
+\begin{pasbox}[style=defi,name=Centre de gravit\xE9,degrade,notitle]
+Dans un triangle, le point d'intersection des m\xE9dianes est appel\xE9 le 
+\definmot{centre de gravit\xE9}.
+\end{pasbox}
+\end{tcblisting}
 
-\env[style=defi,pluriel]
-{
-Dans un triangle, \\ \\
-une droite passant par un sommet et par le milieu du c\xF4t\xE9 oppos\xE9 est appel\xE9e 
-une \definmot{m\xE9diane}.\\
-Une droite passant par un sommet et perpendiculaire au cot\xE9 oppos\xE9 est appel\xE9e 
-une \definmot{hauteur}.
-}
-\end{lstlisting}
+\begin{tcblisting}{listing,title={D\xE9finitions (au pluriel)}}
+\begin{pasbox}[style=defi,pluriel]
+Dans un triangle, une droite passant par un sommet et par le milieu du c\xF4t\xE9 oppos\xE9 est appel\xE9e une \definmot{m\xE9diane}.
 
-\medskip
+Une droite passant par un sommet et perpendiculaire au cot\xE9 oppos\xE9 est appel\xE9e une \definmot{hauteur}.
+\end{pasbox}
+\end{tcblisting}
 
-\env[style=defi,name=Centre de gravit\xE9,degrade,notitle]{Dans un triangle, le point d'intersection des m\xE9dianes est appel\xE9 le \definmot{centre de gravit\xE9}.}
+Notez la pr\xE9sence ici de la commande \texttt{$\backslash$definmot}, d\xE9finie dans ce package, pour mettre en valeur un mot.
 
-\env[style=defi,pluriel]{
-Dans un triangle, \\
-une droite passant par un sommet et par le milieu du c\xF4t\xE9 oppos\xE9 est appel\xE9e une \definmot{m\xE9diane}.}
-
-Notez la pr\xE9sence ici de la commande \texttt{$\backslash$definmot}, d\xE9finie dans ce package, pour mettre en valeur le mot d\xE9fini.
-
 \subsection{Propri\xE9t\xE9s}
 
-\begin{lstlisting}
-\env[style=prop]{Dans un triangle, les trois m\xE9dianes sont concourantes.}
-\end{lstlisting}
+\begin{tcblisting}{listing,title={Propri\xE9t\xE9}}
+\begin{pasbox}[style=prop]
+Dans un triangle, les trois m\xE9dianes sont concourantes.
+\end{pasbox}
+\end{tcblisting}
 
-\env[style=prop]{Dans un triangle, les trois m\xE9dianes sont concourantes.}
 
-\vspace*{-1em}
 \subsection{Exemples}
 
-\begin{lstlisting}
-\env[style=ex,pluriel]{
-1. $x+2=9$ donc $x=9-2$, soit $x=7$ \\
-2. $x-3=4$ donc $x=4+3$, soit $x=7$}
-\end{lstlisting}
+\begin{tcblisting}{listing,title={Exemple}}
+\begin{pasbox}[style=ex,pluriel]
+\begin{enumerate}
+\item $x+2=9$ donc $x=9-2$, soit $x=7$.
+\item $x-3=4$ donc $x=4+3$, soit $x=7$.
+\end{enumerate} 
+\end{pasbox}
+\end{tcblisting}
 
-\env[style=ex,pluriel]{1. $x+2=9$ donc $x=9-2$, soit $x=7$ \\2. $x-3=4$ donc $x=4+3$, soit $x=7$}
-
 \subsection{Notations}
 
-\begin{lstlisting}
-\env[style=nota,pluriel]{%
-1. $x \times x$ est not\xE9 $x^2$\\
-2. $x+x$ est not\xE9 $2x$\\
-3. $x+x+x$ est not\xE9 $3x$}
-\end{lstlisting}
+\begin{tcblisting}{listing,title={Notation}}
+\begin{pasbox}[style=nota,pluriel]
+\begin{enumerate}
+\item $x \times x$ est not\xE9 $x^2$.
+\item $x+x$ est not\xE9 $2x$.
+\item $x+x+x$ est not\xE9 $3x$.
+\end{enumerate}
+\end{pasbox}
+\end{tcblisting}
 
-\env[style=nota,pluriel]{%
-1. $x \times x$ est not\xE9 $x^2$\\
-2. $x+x$ est not\xE9 $2x$}
-
-\vspace*{-1em}
 \subsection{Remarques}
+\begin{tcblisting}{listing,title={Remarque}}
+\begin{pasbox}[style=rem,name=Note historique]
+Le symbole \og $\times$ \fg{} a \xE9t\xE9 introduit par William OUGHTRED (1574 - 1660).
+\end{pasbox}
+\end{tcblisting}
 
-\begin{lstlisting}
-\env[style=rem,name=Note historique]{%
-Le symbole "$\times$" a \xE9t\xE9 introduit par William OUGHTRED (1574 - 1660).}
-\end{lstlisting}
-
-\env[style=rem,name=Note historique]{%
-Le symbole "$\times$" a \xE9t\xE9 introduit par William OUGHTRED (1574 - 1660).}
-
 \subsection{Activit\xE9s}
 
-\begin{lstlisting}
-\env[style=act,name=Propri\xE9t\xE9s sur les droites]{%
-1. Tracez deux droites perpendiculaires (d) et (d').\\
-2. Tracez une droite (d'') perpendiculaire \xE0 (d).\\
-3. Comment semble \xEAtre (d'') par rapport \xE0 (d') ?}
-\end{lstlisting}
+\begin{tcblisting}{listing,title={Activit\xE9}}
+\begin{pasbox}[style=act,name=Propri\xE9t\xE9s sur les droites]
+\begin{enumerate}
+\item Tracez deux droites perpendiculaires $(d)$ et $(d')$.
+\item Tracez une droite $(d'')$ perpendiculaire \xE0 $(d)$.
+\item Comment semble \xEAtre $(d'')$ par rapport \xE0 $(d')$ ?
+\end{enumerate}
+\end{pasbox} 
+\end{tcblisting}
 
-\medskip
-
-\env[style=act,name=Propri\xE9t\xE9s sur les droites]{%
-1. Tracez deux droites perpendiculaires (d) et (d').\\
-2. Tracez une droite (d'') perpendiculaire \xE0 (d).\\
-3. Comment semble \xEAtre (d'') par rapport \xE0 (d') ?}
-
 \subsection{M\xE9thodes}
 
-\begin{lstlisting}
-\env[style=meth,name=Mesurer un angle,endsymb,symb=$\bigstar$]{On ins\xE8re ici
-les sch\xE9mas}
-\end{lstlisting}
+\begin{tcblisting}{listing,title={M\xE9thode}}
+\begin{pasbox}[style=meth,name=Trouver la forme irr\xE9ductible d'une fraction,endsymb,symb=$\bigstar$]
+Pour simplifier au maximum la fraction $\dfrac{\numprint{29700}}{\numprint{35100}}$, on d\xE9compose en produit de facteurs premiers le num\xE9rateur et le d\xE9nominateur :
+\[
+\dfrac{\numprint{29700}}{\numprint{35100}}=\dfrac{2^2\times3^3\times5^5\times11}{2^2\times3^3\times5^5\times13}=\dfrac{11}{13}.
+\]
+\end{pasbox}
+\end{tcblisting}
 
-\medskip
-
-\env[style=meth,name=Mesurer un angle,endsymb,symb=$\bigstar$]{%
-On ins\xE8re ici les sch\xE9mas}
-
 \subsection{D\xE9monstrations}
 
-\begin{lstlisting}
-\env[name=Th\xE9or\xE8me de Pythagore,endsymb,title=D\xE9monstration,style=demo]{%
+\begin{tcblisting}{listing,title={D\xE9monstration}}
+\begin{pasbox}[name=Th\xE9or\xE8me de Pythagore,endsymb,title=D\xE9monstration,style=demo]
 Ici, on r\xE9dige la preuve du th\xE9or\xE8me de Pythagore.\\
-C'est un peu long ...}
-\end{lstlisting}
+C'est un peu long...
+\end{pasbox}
+\end{tcblisting}
 
-\medskip
-
-\env[name=Th\xE9or\xE8me de Pythagore,endsymb,title=D\xE9monstration,style=demo]{%
-Ici, on r\xE9dige la preuve du th\xE9or\xE8me de Pythagore.\\
-C'est un peu long ...}
-
 \subsection{Noms avec virgule}
 
-Si un encadr\xE9 doit avoir un nom avec une ou plusieurs virgules, il faut mettre le \texttt{name} entre accolades.
+Si un encadr\'e doit avoir un nom avec une ou plusieurs virgules, il faut mettre le \texttt{name} entre accolades.
 
 \medskip
 
-\begin{lstlisting}
-\env[style=defi,pluriel,name={dixi\xE8mes, centi\xE8mes et milli\xE8mes}]{%
-On ins\xE8re ici les d\xE9finitions}
-\end{lstlisting}
+\begin{tcblisting}{listing,title={Noms avec virgules}}
+\begin{pasbox}[style=defi,pluriel,name={dixi\xE8mes, centi\xE8mes et milli\xE8mes}]
+On ins\xE8re ici les d\xE9finitions.
+\end{pasbox}
+\end{tcblisting}
 
-\medskip
+\subsection{D\xE9finition d'un autre style}
 
-\env[style=defi,pluriel,name={dixi\xE8mes, centi\xE8mes et milli\xE8mes}]{%
-On ins\xE8re ici les d\xE9finitions}
+Je n'ai pas pu mettre tous les styles de cadres possibles, mais uniquement les plus r\xE9pandus.
 
-\subsection{Environnement rempla\xE7ant la macro (ajout du 05 mai 2013)}
+Cependant, on peut d\xE9finir soit-m\xEAme son cadre \og Corollaire \fg{} par exemple :
 
-La macro \texttt{\textbackslash env} a \xE9t\xE9 cr\xE9\xE9e \xE0 l'origine de l'extension ; depuis, quelques progr\xE8s ont \xE9t\xE9 faits de mon c\^ot\xE9, et ces progr\xE8s m'ont permis de faire \xE9voluer cette macro en un environnement (bien plus pratique). Vous noterez que le contenu des cadres n'est plus en italique par d\xE9faut.
-
-De plus, j'avais constat\xE9 un probl\xE8me majeur : lorsque l'on arrive \xE0 la fin d'une page, les macros d\xE9finissent un cadre qui passe \xE0 la page suivante si sa hauteur est plus grande que la hauteur disponible (ce qui peut cr\xE9er des probl\xE8mes de mise en page).
-
-\medskip
-
-C'est la raison pour laquelle j'ai cr\xE9\xE9 une commande qui permet de \og casser  \fg{} le cadre.
-
-\subsubsection{L'environnement \og pasbox\fg{} }
-
-\begin{lstlisting}
-\begin{pasbox}[<options>]
-Contenu
+\begin{tcblisting}{listing,title={Exemple de cassage d'un cadre}}
+\definecolor{macouleur}{cmyk}{0,0.27,0.03,0}
+\newenvironment{corollaire}[1][]
+{%
+\begin{pasbox}[degrade,color=macouleur,title=Corollaire,name={#1}]
+}
+{%
 \end{pasbox}
-\end{lstlisting}
+}
+\begin{corollaire}[Relatif \xE0 la propri\xE9t\xE9 2]
+Mon corollaire ici.
+\end{corollaire}
+\end{tcblisting}
 
-Les options sont les m\^emes que pour la commande \texttt{\textbackslash env}. On a par exemple :
 
-\medskip
+\section{Cassage d'un cadre : la commande \textbackslash breakbox}
+\label{breakbox}
 
-\begin{lstlisting}
-\begin{pasbox}[style=thm,name={Th\xE9or\xE8me de Pythagore},degrade]
-Soit ABC un triangle rectangle en A. Alors, \[ BC^2=AB^2+AC^2\]\vskip-2.3em
-\end{pasbox}
-\end{lstlisting}
+\begin{tcblisting}{listing,title={Exemple de cassage d'un cadre}}
+\begin{pasbox}[style=ex,pluriel,degrade,name={Th\xE9or\xE8me de Pythagore},effect=false]
+ABC est un triangle rectangle en A tel que $\text{AB}=5$ et $\text{AC}=7$.
 
-\medskip
-
-qui donne :
-
-\medskip
-
-\begin{pasbox}[style=thm,name={Th\xE9or\xE8me de Pythagore},degrade]
-Soit ABC un triangle rectangle en A. Alors, \[ BC^2=AB^2+AC^2 \]\vskip-2.3em
-\end{pasbox}
-
-\subsubsection{Cassage d'un cadre : la commande \textbackslash breakbox}
-
-\begin{lstlisting}
-\begin{pasbox}[style=ex,pluriel,degrade,name={Th\xE9or\xE8me de Pythagore}]
-ABC est un triangle rectangle en A tel que $\text{AB}=5$ et $\text{AC}=7$.\\
 On a alors :
 \begin{align*}
 BC^2 & = AB^2+AC^2\\
@@ -445,64 +408,39 @@
 CD^2 & = BD^2+BC^2\\
 CD^2 & = 36+74\\
 CD^2 & = 110
-\end{align*}\vskip-2.3em
-\end{pasbox}
-\end{lstlisting}
-
-\begin{pasbox}[style=ex,pluriel,degrade,name={Th\xE9or\xE8me de Pythagore}]
-ABC est un triangle rectangle en A tel que $\text{AB}=5$ et $\text{AC}=7$.\\
-On a alors :
-\begin{align*}
-BC^2 & = AB^2+AC^2\\
-BC^2& = 74\\
-BC & =\sqrt{74}
 \end{align*}
-\breakbox
-De m\xEAme, dans le triangle BCD rectangle en D, avec $\text{BD}=6$, on a :
-\begin{align*}
-CD^2 & = BD^2+BC^2\\
-CD^2 & = 36+74\\
-CD^2 & = 110
-\end{align*}\vskip-2.3em
 \end{pasbox}
+\end{tcblisting}
 
-\medskip
-
 \paragraph*{N.B.} Dans l'\xE9ventualit\xE9 o\xF9 vous souhaiteriez enlever le titre de la seconde bo\^ite, utilisez l'option \texttt{notitlebreak} :
 
 \medskip
 
-\begin{lstlisting}
+\begin{tcblisting}{listing,title={Autre exemple de cassage}}
 \begin{pasbox}[style=ex,notitlebreak]
 Premier cadre
 \breakbox
 Second cadre
 \end{pasbox}
-\end{lstlisting}
+\end{tcblisting}
 
-Qui donnera :
 
-\medskip
+\paragraph*{Remarque :} si vous mettez l'option \texttt{notitle}, il n'y aura pas de titre au 1\ier{} et 2\ieme{} cadre.
 
-\begin{pasbox}[style=ex,notitlebreak]
-Premier cadre
-\breakbox
-Second cadre
-\end{pasbox}
+\newpage
 
-\paragraph*{Remarque :} si vous mettez l'option \texttt{notitle}, il n'y aura pas de titre au 1\ier{} et 2\ieme{} cadre.
+\section{Ins\xE9rer un item dans la table des mati\xE8res}
 
-\subsection{Ins\xE9rer un item dans la table des mati\xE8res}
+Par d\xE9faut, rien n'est ins\xE9r\xE9 dans la table des mati\xE8res.
 
-Par d\xE9faut, rien n'est ins\xE9r\xE9 dans la table des mati\xE8res.\\
 Si l'on veut qu'il n'en soit pas ainsi, on utilisera l'option \texttt{toc} comme dans l'exemple suivant :
 
-\begin{lstlisting}
+\begin{tcblisting}{listing,title={Insertion du titre d'un environnement dans le sommaire}}
 \begin{pasbox}[style=thm,name=Pythagore,toc]
 Si un triangle ABC est rectangle en A, alors :
 \[ BC^2=AB^2+AC^2.\]
 \end{pasbox}
-\end{lstlisting}
+\end{tcblisting}
 
 \medskip
 
@@ -510,73 +448,78 @@
 
 \medskip
 
-\begin{lstlisting}
+\begin{tcblisting}{codeTEX,title={Tous les noms dans le sommaire}}
 \usepackage[everytoc]{pas-cours}
-\end{lstlisting}
+\end{tcblisting}
 
-Dans ce cas, tous les environnements o\xF9 \texttt{name} sera inform\xE9, \texttt{name} sera ins\xE9r\xE9 dans la table des mati\xE8res.\\
+Dans ce cas, tous les environnements o\xF9 \texttt{name} sera inform\xE9, \texttt{name} sera ins\xE9r\xE9 dans la table des mati\xE8res.
+
 Si on ne souhaite pas qu'un \texttt{name} figure dans cette table, on utilisera l'option \texttt{notoc}.
 
 \medskip
 
-\begin{lstlisting}
+\begin{tcblisting}{listing,title={Un nom ne figurant pas dans le sommaire}}
 \begin{pasbox}[style=prop,notoc]
 La, je suis s\xFBr que cette bo\xEEte ne figurera pas dans la TOC.
 \end{pasbox}
-\end{lstlisting}
+\end{tcblisting}
 
-\section{Environnements \og \`A retenir \fg, \og Attention \fg{} et \og Pr\xE9requis \fg{}  }
+\section{Environnements \og \`A retenir \fg, \og Attention \fg{} et\\ \og Pr\xE9requis \fg{}  }
 
 \subsection{\`A retenir}
 
-\begin{lstlisting}
+\begin{tcblisting}{listing,title={\`A retenir}}
 \begin{aretenir}[0.5]
 \lipsum[1]
 \end{aretenir}
-\end{lstlisting}
+\end{tcblisting}
 
-\begin{aretenir}[0.5]
-\lipsum[1]
-\end{aretenir}
-
 Le nombre entre crochets est un coefficient pour agrandir ou r\xE9duire la taille de l'image.
 
+L'image affich\xE9e se nomme \og coeur.png \fg{} ; elle se trouve dans le r\xE9pertoire d'installation du package \texttt{pas-cours.sty}.
+
 \subsection{Attention}
 
-\begin{lstlisting}
+\begin{tcblisting}{listing,title={Attention}}
 \begin{attention}[0.5]
 \lipsum[1]
 \end{attention}
-\end{lstlisting}
+\end{tcblisting}
 
-\begin{attention}[0.5]
-\lipsum[1]
-\end{attention}
-
 Le nombre entre crochets est un coefficient pour agrandir ou r\xE9duire la taille de l'image.
 
+L'image affich\xE9e se nomme \og attention.png \fg{} ; ele se trouve dans le r\xE9pertoire d'installation du package \texttt{pas-cours.sty}.
+
+\medskip
+
+Apr\xE8s avoir remarqu\xE9 que cet environnement ne fonctionnait pas selon le mode de compilation, j'ai cr\xE9\xE9 un autre environnement plus souple :
+
+\begin{tcblisting}{listing,title={Warning}}
+\begin{warning}[scale=0.05,img=warning-perso.png,margins=1em,bg,bgcolor=blue!10,draw=blue!50!black]
+Ceci est le nouvel environnement en date du 29 avril 2015.
+\end{warning}
+\end{tcblisting}
+
+Cet environnement comporte les options suivantes :
+\begin{itemize}
+\item \texttt{scale} : l'\xE9chelle de l'image affich\xE9e ;
+\item \texttt{img} : nom de l'image souhait\xE9e (doit \xEAtre dans le r\xE9pertoire courant) ;
+\item \texttt{margins} : marges internes ;
+\item \texttt{draw} : couleur du cadre  (par d\xE9faut : red!50!black) ;
+\item \texttt{bg} : bool\xE9en (par d\xE9faut : false) ;
+\item \texttt{bgcolor} : couleur de fond (si \texttt{bg=true}).
+\end{itemize}
+
 \subsection{Pr\xE9requis}
 
-\begin{minipage}{0.33\linewidth}
-\begin{lstlisting}
+\begin{tcblisting}{listing,title={Pr\xE9requis}}
 \begin{prerequis}
 \item Pr\xE9requis 1
 \item Pr\xE9requis 2
 \end{prerequis}
-\end{lstlisting}
-\vspace*{1.5cm}
-\phantom{-}
-\end{minipage}
-\begin{minipage}{1cm}
-~
-\end{minipage}
-\begin{minipage}{0.5\linewidth}
-\begin{prerequis}
-\item Pr\xE9requis 1
-\item Pr\xE9requis 2
-\end{prerequis}
-\end{minipage}
+\end{tcblisting}
 
+
 \section{Commande \og bonus \fg{} }
 
 Cette commande s'utilise g\xE9n\xE9ralement en fin de chapitre, lorsque l'enseignant(e) souhaite ins\xE9rer des fiches.
@@ -583,10 +526,10 @@
 
 \medskip
 
-\begin{lstlisting}
+\begin{tcblisting}{codeTEX,title={Insertion d'une page Bonus}}
 \bonus{Titre} % Ins\xE8re le titre dans le sommaire
 \bonus*{Titre} % N'ins\xE8re pas le titre dans le sommaire
-\end{lstlisting}
+\end{tcblisting}
 
 Elle ex\xE9cute un saut de page (avec la commande \textbackslash newpage), puis ins\xE8re un titre sous la forme \og Compl\xE9ment <num> : Titre \fg{} (les num\xE9ros sont automatiquement calcul\xE9s).
 
@@ -596,22 +539,15 @@
 
 \medskip\itemclass{black}
 
-\begin{minipage}{0.25\textwidth}
-\begin{lstlisting}
+
+\begin{tcblisting}{listing,title={Listes \og enumerate \fg}}
 \begin{enumerate}
 \item Item 1
 \item Item 2
 \end{enumerate}
-\end{lstlisting}
-\end{minipage}
-\begin{minipage}{0.25\textwidth}
-\begin{enumerate}
-\item Item 1
-\item Item 2
-\end{enumerate}
-\end{minipage}
-\begin{minipage}{0.25\textwidth}
-\begin{lstlisting}
+\end{tcblisting}
+
+\begin{tcblisting}{listing,title={Listes \og itemize \fg}}
 \begin{itemize}
 \item Item 1
 \item  Item 2
@@ -619,17 +555,7 @@
 \item Sous-Item 1
 \end{itemize}
 \end{itemize}
-\end{lstlisting}
-\end{minipage}
-\begin{minipage}{0.25\textwidth}
-\begin{itemize}
-\item Item 1
-\item Item 2
-\begin{itemize}
-\item Sous-Item 1
-\end{itemize}
-\end{itemize}
-\end{minipage}
+\end{tcblisting}
 
 \medskip
 
@@ -639,8 +565,7 @@
 
 \medskip
 
-\begin{minipage}{0.5\textwidth}
-\begin{lstlisting}
+\begin{tcblisting}{listing,title={Listes \og enumerate \fg{} avec couleur personnalis\xE9e}}
 \itemclass{red}
 \begin{enumerate}
 \item Item 1
@@ -649,21 +574,16 @@
 \begin{enumerate}[start=2]
 \item Item 2
 \end{enumerate}
-\end{lstlisting}
-\end{minipage}
-\begin{minipage}{0.5\textwidth}
-\itemclass{red}
-\begin{enumerate}
-\item Item 1
-\end{enumerate}
-\itemclass{blue}
-\begin{enumerate}[start=2]
-\item Item 2
-\end{enumerate}
-\end{minipage}
+\end{tcblisting}
 
 Dans l'\xE9ventualit\xE9 o\xF9 ces styles ne vous plaisent pas, vous pouvez toujours utiliser les outils du package \texttt{enumitem} pour les changer (dans ce cas, reportez-vous \xE0 sa documentation).
 
+\medskip
+
+Mais si vous ne souhaitez pas que le style des listes change par d\xE9faut, faites appel \xE0 ce package avec l'option \texttt{noitemstyle} (voir paragraphe \ref{noitemstyle} page \pageref{noitemstyle}).
+
+\newpage
+
 \section{Figures usuelles 3D}
 
 En coll\xE8ge, on a affaire tr\xE8s souvent aux m\xEAmes figures 3D. Voici quelques outils qui vous permettrons de les dessiner plus rapidement :
@@ -672,11 +592,11 @@
 
 \subsection{Le cube et le parall\xE9l\xE9pip\xE8de rectangle}
 
-\begin{lstlisting}
+\begin{tcblisting}{codeTEX,title={Cube}}
 \begin{tikzpicture}
 \cube[<options>]
 \end{tikzpicture}
-\end{lstlisting}
+\end{tcblisting}
 
 \bigskip
 
@@ -693,51 +613,37 @@
 
 \bigskip
 
-\begin{lstlisting}
+\begin{tcblisting}{listing,title={Un exemple de cube avec l\xE9gende}}
 \begin{tikzpicture}
 \cube[bordercolor=orange,incolor=green!50!black,angle=30, coefopaq=0.2,scale=3,
 name,legende]
 \end{tikzpicture}
-\end{lstlisting}
+\end{tcblisting}
 
-\begin{center}
-\begin{tikzpicture}
-\cube[bordercolor=orange,incolor=green!50!black,angle=30,coefopaq=0.2,scale=3,name,legende]
-\end{tikzpicture}
-\end{center}
+\newpage
 
-
-\begin{lstlisting}
+\begin{tcblisting}{listing,title={Un autre exemple de cube sans l\xE9gende}}
 \begin{tikzpicture}
 \cube[bordercolor=blue,incolor=blue,angle=45,coefopaq=0.3,scale=2]
 \end{tikzpicture}
-\end{lstlisting}
+\end{tcblisting}
 
-\begin{center}
-\begin{tikzpicture}
-\cube[bordercolor=blue,incolor=blue,angle=45,coefopaq=0.3,scale=2]
-\end{tikzpicture}
-\end{center}
 
-\begin{lstlisting}
+\begin{tcblisting}{listing,title={Un exemple de parall\xE9l\xE9pip\xE8de rectangle}}
 \begin{tikzpicture}
 \cube[bordercolor=purple,incolor=purple,angle=30,scale=2,prof=3,coefopaq=0.2]
 \end{tikzpicture}
-\end{lstlisting}
+\end{tcblisting}
 
-\begin{center}
-\begin{tikzpicture}
-\cube[bordercolor=purple,incolor=purple,angle=30,scale=2,prof=3,coefopaq=0.2]
-\end{tikzpicture}
-\end{center}
+\newpage
 
 \subsection{Le c\xF4ne de r\xE9volution}
 
-\begin{lstlisting}
+\begin{tcblisting}{codeTEX,title={C\^one de r\xE9volution}}
 \begin{tikzpicture}
 \cone[<options>]
 \end{tikzpicture}
-\end{lstlisting}
+\end{tcblisting}
 
 \bigskip
 
@@ -763,23 +669,15 @@
 
 \bigskip
 
-\begin{minipage}{0.5\linewidth}
-\begin{lstlisting}
+\begin{tcblisting}{listing,title={Un exemple de c\^one simple}}
 \begin{tikzpicture}
 \cone
 \end{tikzpicture}
-\end{lstlisting}
-\end{minipage}
-\begin{minipage}{0.5\linewidth}
-\begin{center}
-\begin{tikzpicture}
-\cone
-\end{tikzpicture}
-\end{center}
-\end{minipage}
+\end{tcblisting}
 
-\begin{minipage}{0.5\linewidth}
-\begin{lstlisting}
+\newpage
+
+\begin{tcblisting}{listing,title={Un exemple de c\^one avec deux points}}
 \begin{tikzpicture}
 \cone[incolor=purple,bordercolor=purple,
 coefopaq=0.3,incl=0.1,rayon=3,hauteur=3,
@@ -786,19 +684,10 @@
 name,sommet=A,centre=B,poscentre=right,
 scalecentre=3]
 \end{tikzpicture}
-\end{lstlisting}
-\end{minipage}
-\begin{minipage}{0.5\linewidth}
-\begin{center}
-\begin{tikzpicture}
-\cone[incolor=purple,bordercolor=purple,coefopaq=0.3,incl=0.1,rayon=3,hauteur=3,
-name,sommet=A,centre=B,poscentre=right,scalecentre=3]
-\end{tikzpicture}
-\end{center}
-\end{minipage}
+\end{tcblisting}
 
-\begin{minipage}{0.52\linewidth}
-\begin{lstlisting}
+
+\begin{tcblisting}{listing,title={Un exemple de c\^one avec l\xE9gende}}
 \begin{tikzpicture}
 \cone[incolor=green,coefopaq=0.3,rayon=3,
 hauteur=3,name,sommet=A,centre=B,axe,
@@ -805,24 +694,16 @@
 legende,posommet={above right},
 poscentre=right,incl=0.1,scalecentre=3]
 \end{tikzpicture}
-\end{lstlisting}
-\end{minipage}
-\begin{minipage}{0.48\linewidth}
-\begin{center}
-\begin{tikzpicture}[scale=0.8]
-\cone[incolor=green,coefopaq=0.3,rayon=3,hauteur=3,name,sommet=A,centre=B,axe,legende,
-posommet={above right},poscentre=right,incl=0.1,scalecentre=3]
-\end{tikzpicture}
-\end{center}
-\end{minipage}
+\end{tcblisting}
 
+
 \subsection{Le cylindre de r\xE9volution}
 
-\begin{lstlisting}
+\begin{tcblisting}{codeTEX,title={Cylindre de r\xE9volution}}
 \begin{tikzpicture}
 \cylindre[<options>]
 \end{tikzpicture}
-\end{lstlisting}
+\end{tcblisting}
 
 \scalebox{0.9}{%
 \begin{tabular}{rcl}
@@ -848,24 +729,15 @@
 
 \bigskip
 
-\begin{minipage}{0.5\linewidth}
-\begin{lstlisting}
+\begin{tcblisting}{listing,title={Un exemple de cylindre simple}}
 \begin{tikzpicture}
 \cylindre
 \end{tikzpicture}
-\end{lstlisting}
-\end{minipage}
-\begin{minipage}{0.5\linewidth}
-\centering
-\begin{tikzpicture}
-\cylindre
-\end{tikzpicture}
-\end{minipage}
+\end{tcblisting}
 
-\medskip
+\newpage
 
-\begin{minipage}{0.5\linewidth}
-\begin{lstlisting}
+\begin{tcblisting}{listing,title={Un exemple de cylindre avec deux points}}
 \begin{tikzpicture}
 \cylindre[incolor=purple,bordercolor=
 purple,coefopaq=0.3,incl=0.1,rayon=3,
@@ -873,20 +745,11 @@
 poscentrehaut=left,poscentrebas=left,
 scalecentre=3]
 \end{tikzpicture}
-\end{lstlisting}
-\end{minipage}
-\begin{minipage}{0.5\linewidth}
-\centering
-\begin{tikzpicture}
-\cylindre[incolor=purple,bordercolor=purple,coefopaq=0.3,incl=0.1,rayon=3,hauteur=3,
-name,centrehaut=A,poscentrehaut=left,poscentrebas=left,scalecentre=3]
-\end{tikzpicture}
-\end{minipage}
+\end{tcblisting}
 
 \medskip
 
-\begin{minipage}{0.5\linewidth}
-\begin{lstlisting}
+\begin{tcblisting}{listing,title={Un exemple de cylindre avec l\xE9gende}}
 \begin{tikzpicture}
 \cylindre[incolor=blue,bordercolor=red,
 coefopaq=0.2,name,legende,rectgener,axe,
@@ -893,23 +756,15 @@
 poscentrehaut=left,poscentrebas=left,
 scalecentre=3]
 \end{tikzpicture}
-\end{lstlisting}
-\end{minipage}
-\begin{minipage}{0.5\linewidth}
-\centering
-\begin{tikzpicture}[scale=0.9]
-\cylindre[incolor=blue,bordercolor=red,coefopaq=0.2,name,legende,rectgener,axe,
-poscentrehaut=left,poscentrebas=left,scalecentre=3]
-\end{tikzpicture}
-\end{minipage}
+\end{tcblisting}
 
 \subsection{Sph\xE8re et boule}
 
-\begin{lstlisting}
+\begin{tcblisting}{codeTEX,title={Sph\xE8re \& boule}}
 \begin{tikzpicture}
 \boule[<options>]
 \end{tikzpicture}
-\end{lstlisting}
+\end{tcblisting}
 
 \bigskip
 
@@ -923,91 +778,67 @@
 					&  & \small Possibilit\xE9s : below, left, right, above, above right, above left, below right et below left\\
 \texttt{scale} & = &  coefficient d'agrandissement de la boule\\
 \texttt{name} & : & option bool\xE9enne ; si elle ne para\xEEt pas, le centre ne sera pas dessin\xE9\\
-\texttt{grandcercle} & : & option bool\xE9enne ; si elle ne para\xEEt pas, le grand cercle ne sera pas dessin\xE9\\
 \texttt{legende}  & : & option bool\xE9enne ; si elle ne para\xEEt pas, la l\xE9gende ne sera pas mise\\
+\texttt{greenwich}  & : & option bool\xE9enne ; si elle para\xEEt, le m\xE9ridien de Greenwich est trac\xE9\\
+\texttt{greenwichcolor}  & : & couleur du m\xE9ridien de Greenwich\\
+\texttt{greenwichlegende}  & : & option bool\xE9enne ; si elle para\xEEt, la l\xE9gende du m\xE9ridien de Greenwich appara\xEEt\\
+\texttt{grandcercle} & : & option bool\xE9enne ; si elle para\xEEt, l'\xE9quateur sera dessin\xE9\\
+\texttt{equateurlegende}  & : & option bool\xE9enne ; si elle para\xEEt, la l\xE9gende sera mise par rapport \xE0 l'\xE9quateur\\
+& &  (grand cercle). Il faut donc que grandcercle=true\\
+\texttt{exemplecoord} & : & option bool\xE9enne ; si elle para\xEEt, un exemple de coordonn\xE9es sph\xE9riques est trac\xE9\\
+\texttt{exemplecoordcolor} & : & couleur dominante de l'exemple (par d\xE9faut, vert fonc\xE9)\\
+\texttt{exemplecoordname} & : & nom du point dans l'exemple. Par d\xE9faut, \og A \fg{} \\
 \end{tabular}
 
 \medskip
 
-\begin{minipage}{0.5\linewidth}
-\begin{lstlisting}
+\begin{tcblisting}{listing,title={Une boule simple}}
 \begin{tikzpicture}
 \boule
 \end{tikzpicture}
-\end{lstlisting}
-\end{minipage}
-\begin{minipage}{0.5\linewidth}
-\centering
-\begin{tikzpicture}
-\boule
-\end{tikzpicture}
-\end{minipage}
+\end{tcblisting}
 
 \medskip
 
-\begin{minipage}{0.5\linewidth}
-\begin{lstlisting}
+\begin{tcblisting}{listing,title={Une boule avec grands cercles}}
 \begin{tikzpicture}
-\boule[grandcercle,name,incolor=blue,
-bordercolor=blue,legende]
+\boule[grandcercle,name,incolor=blue, bordercolor=blue,legende]
 \end{tikzpicture}
-\end{lstlisting}
-\end{minipage}
-\begin{minipage}{0.5\linewidth}
-\centering
-\begin{tikzpicture}[scale=0.8,every node/.style={scale=0.8}]
-\boule[grandcercle,name,incolor=blue,
-bordercolor=blue,legende]
-\end{tikzpicture}
-\end{minipage}
+\end{tcblisting}
 
 \medskip
 
-\begin{minipage}{0.5\linewidth}
-\begin{lstlisting}
+\begin{tcblisting}{listing,title={Une sph\xE8re}}
 \begin{tikzpicture}
 \boule[coefopaq=0,border,grandcercle,
 name,poscentre={below right}]
 \end{tikzpicture}
-\end{lstlisting}
-\end{minipage}
-\begin{minipage}{0.5\linewidth}
-\centering
-\begin{tikzpicture}
-\boule[coefopaq=0,border,grandcercle,name,poscentre={below right}]
-\end{tikzpicture}
-\end{minipage}
+\end{tcblisting}
 
-\medskip
 
-\begin{minipage}{0.6\linewidth}
-\begin{lstlisting}
+Dans le programme qui entre en vigueur \xE0 la rentr\xE9e 2017 au coll\xE8ge, sont introduites les coordonn\xE9es sph\xE9riques.
+
+Afin de faciliter la t\xE2che aux enseignants, j'ai ajout\xE9 \xE0 la macro \textbackslash boule des options qui permettent d'afficher un exemple :
+
+
+\begin{tcblisting}{listing,title={Coordonn\xE9es sph\xE9riques}}
 \begin{tikzpicture}
-\boule[coefopaq=0.2,grandcercle,name,centre=A,
-incolor=green,scale=0.5,poscentre=right]
+\boule[grandcercle,greenwich,greenwichcolor=red,greenwichlegende,border,equateurlegende,name,poscentre=above left,exemplecoord,coefopaq=0]
 \end{tikzpicture}
-\end{lstlisting}
-\end{minipage}
-\begin{minipage}{0.4\linewidth}
-\centering
-\begin{tikzpicture}
-\boule[coefopaq=0.2,grandcercle,name,centre=A,incolor=green,scale=0.5,poscentre=right]
-\end{tikzpicture}
-\end{minipage}
+La longitude de A est:$80^\circ$.\\La latitude de A est:$40^\circ$.
+\end{tcblisting}
 
-\newpage
-
 \subsection{Pyramide \xE0 base r\xE9guli\xE8re}
 
-\begin{lstlisting}
+\begin{tcblisting}{codeTEX,title={Pyramide}}
 \begin{tikzpicture}
 \pyramreg[<options>]
 \end{tikzpicture}
-\end{lstlisting}
+\end{tcblisting}
 
 \bigskip
 
-\begin{tabular}{rcl}
+\begin{tabularx}{\linewidth}{rcX}
 \texttt{n} &=& nombre de c\xF4t\xE9s de la base (par d\xE9faut : 3)\\
 \texttt{bordercolor} & = &  la couleur du bord (par d\xE9faut, elle sera noire)\\
 \texttt{incolor} & =  & la couleur de la boule (par d\xE9faut, elle sera blanche)\\
@@ -1028,94 +859,52 @@
 \texttt{incl}&=& coefficient d'inclinaison de la base\\
 \texttt{legende} &:& option bool\xE9enne ; si elle ne para\xEEt pas, la l\xE9gende ne sera pas mise\\
 \texttt{rotat}&=& angle (en degr\xE9) de rotation de la vue (par d\xE9faut, il est nul)
-\end{tabular}
+\end{tabularx}
 
 \medskip
 
-\begin{minipage}{0.5\linewidth}
-\begin{lstlisting}
+\begin{tcblisting}{listing,title={Une pyramide simple}}
 \begin{tikzpicture}
 \pyramreg
 \end{tikzpicture}
-\end{lstlisting}
-\end{minipage}
-\begin{minipage}{0.5\linewidth}
-\centering
-\begin{tikzpicture}
-\pyramreg
-\end{tikzpicture}
-\end{minipage}
+\end{tcblisting}
 
 \medskip
 
-\begin{minipage}{0.4\linewidth}
-\vspace*{4em}
-\begin{lstlisting}
-\begin{tikzpicture}
-\pyramreg[n=6,axe,name,
-posommet={above right},
-poscentre=right,
-incolor=green!50!black,
-bordercolor=green!50!black,
-hauteur=3,rayon=3,scalecentre=5,
-poscentre=left,legende]
+\begin{tcblisting}{listing,title={Une pyramide avec l\xE9gende}}
+\begin{tikzpicture}[scale=0.8,every node/.style={scale=0.8}]
+\pyramreg[n=6,axe,name,posommet={above right}, poscentre=right, incolor=green!50!black, bordercolor=green!50!black, hauteur=3, rayon=3, scalecentre=5, poscentre=left,legende]
 \end{tikzpicture}
-\end{lstlisting}
-\end{minipage}
-\begin{minipage}{0.6\linewidth}
-\centering
-\begin{tikzpicture}[scale=0.6,every node/.style={scale=0.6}]
-\pyramreg[n=6,axe,name,posommet={above right},poscentre=right,incolor=green!50!black,
-bordercolor=green!50!black,hauteur=3,rayon=3,scalecentre=5,poscentre=left,legende]
-\end{tikzpicture}
-\end{minipage}
+\end{tcblisting}
 
 \medskip
 
-\begin{minipage}{0.55\linewidth}
-\begin{lstlisting}
+\begin{tcblisting}{listing,title={Une autre pyramide}}
 \begin{tikzpicture}
 \pyramreg[n=5,incolor=blue,bordercolor=red,
 hauteur=4,incl=0.5]
 \end{tikzpicture}
-\end{lstlisting}
-\end{minipage}
-\begin{minipage}{0.45\linewidth}
-\centering
-\begin{tikzpicture}
-\pyramreg[n=5,incolor=blue,bordercolor=red,hauteur=4,incl=0.5]
-\end{tikzpicture}
-\end{minipage}
+\end{tcblisting}
 
 \medskip
 
-\begin{minipage}{0.5\linewidth}
-\begin{lstlisting}
+\begin{tcblisting}{listing,title={Une pyramide vide}}
 \begin{tikzpicture}
 \pyramreg[n=13,coefopaq=0,name]
 \end{tikzpicture}
-\end{lstlisting}
-\end{minipage}
-\begin{minipage}{0.5\linewidth}
-\centering
-\begin{tikzpicture}
-\pyramreg[n=13,coefopaq=0,name]
-\end{tikzpicture}
-\end{minipage}
+\end{tcblisting}
 
-\newpage
-
 \subsection{Prisme \xE0 base r\xE9guli\xE8re}
 
-\begin{lstlisting}
+\begin{tcblisting}{codeTEX,title={Prisme}}
 \begin{tikzpicture}
 \prismereg[<options>]
 \end{tikzpicture}
-\end{lstlisting}
+\end{tcblisting}
 
 \bigskip
 
-\begin{tabular}{rcl}
+\begin{tabularx}{\linewidth}{rcX}
 \texttt{n}&=& nombre de c\xF4t\xE9s de la base (par d\xE9faut : 3)\\
 \texttt{bordercolor}&=& la couleur du bord (par d\xE9faut, elle sera noire)\\
 \texttt{incolor}&=& la couleur de la boule (par d\xE9faut, elle sera blanche)\\
@@ -1128,68 +917,45 @@
 \texttt{legende}&:&  option bool\xE9enne ; si elle ne para\xEEt pas, la l\xE9gende ne sera pas mise\\
 \texttt{rotat}&=& angle de rotation de la vue (par d\xE9faut, il est nul sauf pour n=3 o\xF9 il est \xE9gal \xE0 10$^{\circ}$)\\
 \texttt{name}&:&  option bool\xE9enne ; si elle ne para\xEEt pas, le nom des points ne figurera pas\\
-\end{tabular}
+\end{tabularx}
 
-\begin{minipage}{0.5\linewidth}
-\begin{lstlisting}
+\begin{tcblisting}{listing,title={Un prisme simple}}
 \begin{tikzpicture}
-\prismereg[n=5,rotat=20,incolor=blue,
-bordercolor=red,rayon=3,hauteur=2,name]
+\prismereg
 \end{tikzpicture}
-\end{lstlisting}
-\end{minipage}
-\begin{minipage}{0.5\linewidth}
-\centering
-\begin{tikzpicture}
-\prismereg[n=5,rotat=20,incolor=blue,bordercolor=red,rayon=3,hauteur=2,name]
-\end{tikzpicture}
-\end{minipage}
+\end{tcblisting}
 
-\begin{minipage}{0.5\linewidth}
-\begin{lstlisting}
+\medskip
+
+\begin{tcblisting}{listing,title={Un prisme avec noms des sommets}}
 \begin{tikzpicture}
-\prismereg
+\prismereg[n=5,rotat=20,incolor=blue,
+bordercolor=red,rayon=3,hauteur=2,name]
 \end{tikzpicture}
-\end{lstlisting}
-\end{minipage}
-\begin{minipage}{0.5\linewidth}
-\centering
-\begin{tikzpicture}
-\prismereg
-\end{tikzpicture}
-\end{minipage}
+\end{tcblisting}
 
 \medskip
 
-\begin{minipage}{0.35\linewidth}
-\begin{lstlisting}
-\begin{tikzpicture}
-\prismereg[n=6,coefopaq=0,
-incl=0.2,rotat=20,legende,
+\begin{tcblisting}{listing,title={Un prisme avec l\xE9gende}}
+\begin{tikzpicture}[scale=0.8,every node/.style={scale=0.8}]
+\prismereg[n=6,coefopaq=0,incl=0.2,rotat=20,legende,
 incolor=black,axe]
 \end{tikzpicture}
-\end{lstlisting}
-\end{minipage}
-\begin{minipage}{0.7\linewidth}
-\centering
-\begin{tikzpicture}
-\prismereg[n=6,coefopaq=0,incl=0.2,rotat=20,legende,incolor=black,axe]
-\end{tikzpicture}
-\end{minipage}
+\end{tcblisting}
 
 \section{Patrons de figures 3D}
 
 \subsection{Pav\xE9 droit}
 
-\begin{lstlisting}
+\begin{tcblisting}{codeTEX,title={Patron d'un pav\xE9 droit}}
 \begin{tikzpicture}
 \patronpave[<options>]
 \end{tikzpicture}
-\end{lstlisting}
+\end{tcblisting}
 
 \bigskip
 
-\begin{tabular}{rcl}
+\begin{tabularx}{\linewidth}{rcX}
 \texttt{a}&=& mesure de la premi\xE8re ar\xEAte (par d\xE9faut : 3 cm)\\
 \texttt{b}&=& mesure de la seconde ar\xEAte (par d\xE9faut : 3 cm)\\
 \texttt{c}&=& mesure de la troisi\xE8me ar\xEAte (par d\xE9faut : 3 cm)\\
@@ -1196,217 +962,140 @@
 \texttt{pos}&=& position des faces du dessus (1, 2, 3 ou 4) - par d\xE9faut : 2\\
 \texttt{legende}&:& option bool\xE9enne ; si elle ne figure pas, la l\xE9gende ne sera pas indiqu\xE9e\\
 \texttt{codages}&:&  option bool\xE9enne ; si elle ne figure pas, les codages ne seront pas indiqu\xE9s\\
-\end{tabular}
+\end{tabularx}
 
-\newpage
-
-\begin{lstlisting}
-\begin{tikzpicture}
+\begin{tcblisting}{listing,title={Patron d'un pav\xE9 droit}}
+\begin{tikzpicture}[scale=0.8]
 \patronpave
 \end{tikzpicture}
-\end{lstlisting}
+\end{tcblisting}
 
-\begin{center}
-\begin{tikzpicture}
-\patronpave
-\end{tikzpicture}
-\end{center}
-
 \medskip
 
-\begin{lstlisting}
+\begin{tcblisting}{listing,title={Patron d'un pav\xE9 droit avec l\xE9gende}}
 \begin{tikzpicture}
 \patronpave[pos=1,codages,legende,a=1,b=2,c=3]
 \end{tikzpicture}
-\end{lstlisting}
+\end{tcblisting}
 
-\begin{center}
-\begin{tikzpicture}
-\patronpave[pos=1,codages,legende,a=1,b=2,c=3]
-\end{tikzpicture}
-\end{center}
-
 \bigskip
 
 Pour obtenir tous les patrons d'un pav\xE9, il suffit de faire une boucle (avec le package \texttt{multido}) comme dans l'exemple page suivante :
 
-\newpage
 
-\begin{lstlisting}
+\begin{tcblisting}{listing,title={Une pyramide simple}}
 \multido{\i=1+1}{4}{%
-\begin{tikzpicture}
+\begin{tikzpicture}[scale=0.68]
 \patronpave[pos=\i,codages,a=1,b=2,c=3]
 \end{tikzpicture}
 \ifnum\i=2 \\ \fi}
-\end{lstlisting}
+\end{tcblisting}
 
-\medskip
 
-\multido{\i=1+1}{4}{%
-\begin{tikzpicture}
-\patronpave[pos=\i,codages,a=1,b=2,c=3]
-\end{tikzpicture}
-\ifnum\i=2 \\ \fi}
-
-\newpage
-
 \subsection{C\xF4ne de r\xE9volution}
 
-\begin{lstlisting}
+\begin{tcblisting}{codeTEX,title={Patron d'un c\^one de r\xE9volution}}
 \begin{tikzpicture}
 \patroncone[<options>]
 \end{tikzpicture}
-\end{lstlisting}
+\end{tcblisting}
 
 \medskip
 
-\begin{tabular}{rcl}
+\begin{tabularx}{\linewidth}{rcX}
 \texttt{r}&=& rayon du disque de base (par d\xE9faut : 3 cm)\\
 \texttt{h}&=& hauteur du c\xF4ne (par d\xE9faut : 5 cm)\\
 \texttt{legende}&:& option bool\xE9enne ; si elle ne figure pas, la l\xE9gende ne sera pas indiqu\xE9e
-\end{tabular}
+\end{tabularx}
 
 \bigskip
 
-\begin{lstlisting}
+\begin{tcblisting}{listing,title={Patron d'un c\^one simple}}
 \begin{tikzpicture}
 \patroncone
 \end{tikzpicture}
-\end{lstlisting}
+\end{tcblisting}
 
-\medskip
 
-\begin{center}
+\begin{tcblisting}{listing,title={Patron avec l\xE9gende d'un c\^one}}
 \begin{tikzpicture}
-\patroncone
-\end{tikzpicture}
-\end{center}
-
-\newpage
-
-\begin{lstlisting}
-\begin{tikzpicture}
 \patroncone[legende,r=2,h=3]
 \end{tikzpicture}
-\end{lstlisting}
+\end{tcblisting}
 
-\medskip
 
-\begin{center}
-\begin{tikzpicture}
-\patroncone[legende,r=2,h=3]
-\end{tikzpicture}
-\end{center}
-
 \subsection{Cylindre de r\xE9volution}
 
-\begin{lstlisting}
+\begin{tcblisting}{codeTEX,title={Patron d'un cylindre de r\xE9volution}}
 \begin{tikzpicture}
 \patroncylindre[<options>]
 \end{tikzpicture}
-\end{lstlisting}
+\end{tcblisting}
 
 \bigskip
 
-\begin{tabular}{rcl}
+\begin{tabularx}{\linewidth}{rcX}
 \texttt{r}&=& rayon du disque de base (par d\xE9faut : 2 cm)\\
 \texttt{h}&=& hauteur du c\xF4ne (par d\xE9faut : 5 cm)\\
 \texttt{legende}&:& option bool\xE9enne ; si elle ne figure pas, la l\xE9gende ne sera pas indiqu\xE9e
-\end{tabular}
+\end{tabularx}
 
-\newpage
 
-\begin{lstlisting}
-\begin{tikzpicture}
+\begin{tcblisting}{listing,title={Patron d'un cylindre simple}}
+\begin{tikzpicture}[scale=0.7]
 \patroncylindre
 \end{tikzpicture}
-\end{lstlisting}
+\end{tcblisting}
 
-\medskip
 
-\begin{center}
+\begin{tcblisting}{listing,title={Patron avec l\xE9gende d'un cylindre}}
 \begin{tikzpicture}
-\patroncylindre
-\end{tikzpicture}
-\end{center}
-
-\newpage
-
-\begin{lstlisting}
-\begin{tikzpicture}
 \patroncylindre[legende,r=1,h=1]
 \end{tikzpicture}
-\end{lstlisting}
+\end{tcblisting}
 
-\medskip
 
-\begin{center}
-\begin{tikzpicture}
-\patroncylindre[legende,r=1,h=1]
-\end{tikzpicture}
-\end{center}
-
-
 \subsection{Pyramide \xE0 base r\xE9guli\xE8re}
 
-\begin{lstlisting}
+\begin{tcblisting}{codeTEX,title={Patron d'une pyramide}}
 \begin{tikzpicture}
 \patronpyramreg[<options>]
 \end{tikzpicture}
-\end{lstlisting}
+\end{tcblisting}
 
 \bigskip
 
-\begin{tabular}{rcl}
+\begin{tabularx}{\linewidth}{rcX}
 \texttt{n}&=& nombre de c\xF4t\xE9s du polygone de base (par d\xE9faut : 3)\\
 \texttt{r}&=& rayon du cercle circonscrit au polygone de base (par d\xE9faut : 3 cm)\\
 \texttt{h}&=& hauteur de la pyramide (par d\xE9faut : 5 cm)\\
 \texttt{legende}&:& option bool\xE9enne ; si elle ne figure pas, la l\xE9gende ne sera pas indiqu\xE9e
-\end{tabular}
+\end{tabularx}
 
-\newpage
 
-\begin{lstlisting}
+\begin{tcblisting}{listing,title={Patron simple d'une pyramide}}
 \begin{tikzpicture}
 \patronpyramreg
 \end{tikzpicture}
-\end{lstlisting}
+\end{tcblisting}
 
-\medskip
-
-\begin{center}
+\begin{tcblisting}{listing,title={Patron avec l\xE9gende d'une pyramide}}
 \begin{tikzpicture}
-\patronpyramreg
-\end{tikzpicture}
-\end{center}
-
-\newpage
-
-\begin{lstlisting}
-\begin{tikzpicture}
 \patronpyramreg[legende,r=2,h=4]
 \end{tikzpicture}
-\end{lstlisting}
+\end{tcblisting}
 
-\medskip
-
-\begin{center}
-\begin{tikzpicture}
-\patronpyramreg[legende,r=2,h=4]
-\end{tikzpicture}
-\end{center}
-
 \subsection{Prisme \xE0 base r\xE9guli\xE8re}
 
-\begin{lstlisting}
+\begin{tcblisting}{codeTEX,title={Patron d'un prisme}}
 \begin{tikzpicture}
 \patronprismereg[<options>]
 \end{tikzpicture}
-\end{lstlisting}
+\end{tcblisting}
 
 \bigskip
 
-\begin{tabular}{rcl}
+\begin{tabularx}{\linewidth}{rcX}
 \texttt{n}&=& nombre de c\xF4t\xE9s du polygone de base (par d\xE9faut : 3)\\
 \texttt{r}&=& rayon du cercle circonscrit au polygone de base (par d\xE9faut : 3 cm)\\
 \texttt{h}&=& hauteur du prisme (par d\xE9faut : 5 cm)\\
@@ -1413,63 +1102,32 @@
 \texttt{legende}&:& option bool\xE9enne ; si elle ne figure pas, la l\xE9gende ne sera pas indiqu\xE9e\\
 \texttt{pos}&=& position de la face du haut dans le patron (par d\xE9faut, cette valeur vaut 1). \\
 & & Ici, vous pouvez mettre un nombre de 1 \xE0 n.\\
-\end{tabular}
+\end{tabularx}
 
-\newpage
-
-\begin{lstlisting}
-\begin{tikzpicture}
+\begin{tcblisting}{listing,title={Patron d'un prisme}}
+\begin{tikzpicture}[scale=0.8]
 \patronprismereg
 \end{tikzpicture}
-\end{lstlisting}
+\end{tcblisting}
 
-\medskip
-
-\begin{center}
-\begin{tikzpicture}
-\patronprismereg
-\end{tikzpicture}
-\end{center}
-
-\newpage
-
-\begin{lstlisting}
-\begin{tikzpicture}
+\begin{tcblisting}{listing,title={Patron avec l\xE9gende d'un prisme}}
+\begin{tikzpicture}[scale=0.8]
 \patronprismereg[legende,r=2,h=4,n=5]
 \end{tikzpicture}
-\end{lstlisting}
+\end{tcblisting}
 
-\medskip
-
-\begin{center}
+\begin{tcblisting}{listing,title={Autre patron d'un prisme}}
 \begin{tikzpicture}
-\patronprismereg[legende,r=2,h=4,n=5]
-\end{tikzpicture}
-\end{center}
-
-\newpage
-
-\begin{lstlisting}
-\begin{tikzpicture}
 \patronprismereg[r=1,h=2,n=6,pos=2]
 \end{tikzpicture}
-\end{lstlisting}
+\end{tcblisting}
 
-\medskip
 
-\begin{center}
-\begin{tikzpicture}
-\patronprismereg[r=1,h=2,n=6,pos=2]
-\end{tikzpicture}
-\end{center}
-
 \section{Juxtaposition de figures}
 
-Par rapport \xE0 la version initiale du package, j'ai choisi de placer les commandes de constructions g\xE9om\xE9triques dans un environnement TiKZ explicitement pour pouvoir m\xE9langer des figures.
-
 \subsection{Patron et solide c\xF4te-\xE0-c\xF4te}
 
-\begin{lstlisting}
+\begin{tcblisting}{listing,title={Solide \& patron}}
 \begin{tikzpicture}
 \begin{scope}
 \cone[incolor=purple!20,bordercolor=purple,coefopaq=0.3,incl=0.1,rayon=2,
@@ -1479,39 +1137,13 @@
 \patroncone[legende,r=2,h=3]
 \end{scope}
 \end{tikzpicture}
-\end{lstlisting}
+\end{tcblisting}
 
-\medskip
-
-\begin{center}
-\begin{tikzpicture}
-\begin{scope}
-\cone[incolor=purple!20,bordercolor=purple,coefopaq=0.3,incl=0.1,rayon=2,hauteur=3,
-name,sommet=A,centre=B,poscentre=right,scalecentre=3]
-\end{scope}
-\begin{scope}[xshift=8cm,yshift=3cm]
-\patroncone[legende,r=2,h=3]
-\end{scope}
-\end{tikzpicture}
-\end{center}
-
 \subsection{Juxtaposition de deux solides}
 
-\begin{minipage}{.3\textwidth}
+\begin{tcblisting}{listing,title={Juxtaposition de deux solides}}
 \begin{tikzpicture}
 \begin{scope}
-\cone[incolor=green!20,bordercolor=green!50!black,coefopaq=0.3,
-incl=0.1,rayon=2,hauteur=3,scalecentre=3]
-\end{scope}
-\begin{scope}[xshift=2cm,yshift=-2cm]
-\boule[incolor=green!20,bordercolor=green!50!black,coefopaq=.3]
-\end{scope}
-\end{tikzpicture}
-\end{minipage}
-\begin{minipage}{.7\textwidth}
-\begin{lstlisting}
-\begin{tikzpicture}
-\begin{scope}
 \cone[incolor=green!20,bordercolor=green!50!black,
 coefopaq=0.3,incl=0.1,rayon=2,hauteur=3,scalecentre=3]
 \end{scope}
@@ -1520,9 +1152,57 @@
 coefopaq=.3]
 \end{scope}
 \end{tikzpicture}
-\end{lstlisting}
-\end{minipage}
+\end{tcblisting}
 
+\section{Les calculs}
+
+\emph{Cette section voit le jour \xE0 partir de la version 1.6. Pour le moment, les calculs ne portent que sur la d\xE9composition en produit de facteurs premiers, mais il est fort \xE0 parier que je vais ajouter d'autres fonctions. N'h\xE9sitez pas \xE0 me faire part de vos souhaits.}
+
+\begin{attention}
+Tous les calculs se font \xE0 l'aide de XCAS. Il faut donc le t\xE9l\xE9charger sur la page : \href{https://www-fourier.ujf-grenoble.fr/~parisse/giac_fr.html}{Xcas} et l'installer avant toute compilation.
+
+Il faut aussi v\xE9rifier que la compilation se fasse avec l'option :
+\begin{center}
+\texttt{--shell-escape}
+\end{center}
+\end{attention}
+
+\subsection{D\xE9composition en produits de facteurs premiers}
+
+\begin{tcblisting}{listing,title={D\xE9composition en produit de facteurs premiers}}
+\[
+\numprint{5260}=
+\begin{ifactors}
+5260
+\end{ifactors}
+\]
+\end{tcblisting}
+
+\begin{tcblisting}{listing,title={D\xE9composition en produit de facteurs premiers}}
+On a : \numprint{5260} = 
+\begin{ifactors}
+5260
+\end{ifactors}
+\end{tcblisting}
+
+\paragraph*{Remarque :} il y a un bug d\xE8s lors que l'on souhaite mettre cette derni\xE8re \xE9galit\xE9 entre deux \og \verb+$+ \fg{} et je n'arrive pas \xE0 y rem\xE9dier donc si quelqu'un a le courage de regarder ce qui se passe... son aide sera la bienvenue !
+
+\begin{tcblisting}{listing,title={D\xE9composition en produit de facteurs premiers : table}}
+\begin{center}
+\begin{ifactorstable}
+2486
+\end{ifactorstable}
+\end{center}
+\end{tcblisting}
+
+
+\paragraph*{Remarque :} cet environnement cr\xE9\xE9 des fichiers auxiliaires : 
+\begin{itemize}
+\item n.val : contient le nombre \xE0 d\xE9composer
+\item decomp.cxx ou decomp\verb+_+table.cxx : contient le script XCAS
+\item decomp.tex ou decomp\verb+_+table.tex : contient le r\xE9sultat
+\end{itemize}
+
 \section{Historique de l'extension}
 
 \arrayrulecolor{red!50!black}
@@ -1556,16 +1236,32 @@
 \hline
 26/11/2014 & Version V1.09b & Am\xE9lioration de la correction concernant la largeur des environnements (defi,thm,...).\\
 \hline
+\end{tabularx}
+
+\begin{tabularx}{\linewidth}{|>{\ttfamily\arraybackslash}Sl>{\ttfamily\arraybackslash\columncolor{red!10}}SlX|}
+\hline
 27/11/2014 & Version V1.09c & Correction concernant l'option \og ant \fg{} (fonte en gras).\\
 \hline
 11/12/2014 & Version V1.09d & Correction concernant les environnements \texttt{aretenir} et \texttt{prerequis} (r\xE9ajustement de la largeur).\\
 & & Correctif de la commande \textbackslash\texttt{breakbox} (erreur de largeur)\\
 \hline
+22/03/2015 & Version V1.10 & Ajout de l'option \og nonewpage \fg{} \xE0 la commande \texttt{chap}\\
+\hline
+29/04/2015 & Version V1.20 & Ajout de l'environnement \og warning \fg{} et am\xE9lioration l\xE9g\xE8re de l'environnement \og attention \fg{}\\
+\hline
+24/07/2016 & Version V1.3 & Ajout de l'option \og noitemstyle \fg{} \\
+\hline
+29/07/2016 & Version V1.4 & Modification de la macro \og definmot \fg{} pour qu'elle mette en gras le mode math\xE9matique\\
+04/08/2016 & Version V1.5 & Ajout des options g\xE9n\xE9rales \og notitlebreak \fg{}  et \og noeffect \fg{} \\
+& & Ajout d'option \xE0 la macro \textbackslash boule afin de prendre en compte les coordonn\xE9es sph\xE9riques (nouveau programme Coll\xE8ge)\\
+\hline
+18/08/2016 & Version V1.6 & Ajout de l'environnement \texttt{ifactors} et \texttt{ifactorstable} permettant de d\xE9composer un entier en produit de facteurs premiers\\
+\hline
 \end{tabularx}
 
 \section{Remarques et suggestions}
 
-On m'a fait remarqu\xE9 que je pourrais rendre automatique la liste \xE0 puces dans le cas o\xF9 l'option \texttt{pluriel} \xE9tait inform\xE9 dans un environnement (thm, defi, ...).
+On m'a fait remarquer que je pourrais rendre automatique la liste \xE0 puces dans le cas o\xF9 l'option \texttt{pluriel} \xE9tait inform\xE9e dans un environnement (thm, defi, ...).
 
 Je n'ai pas souhait\xE9 cette automatisation car je pense que certaines personnes n'aimeraient pas cela.
 

Added: trunk/Master/texmf-dist/doc/latex/pas-cours/warning-perso.png
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/pas-cours/warning-perso.png
===================================================================
--- trunk/Master/texmf-dist/doc/latex/pas-cours/warning-perso.png	2016-09-11 01:17:18 UTC (rev 42035)
+++ trunk/Master/texmf-dist/doc/latex/pas-cours/warning-perso.png	2016-09-11 22:32:47 UTC (rev 42036)

Property changes on: trunk/Master/texmf-dist/doc/latex/pas-cours/warning-perso.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+image/png
\ No newline at end of property
Modified: trunk/Master/texmf-dist/tex/latex/pas-cours/pas-cours.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/pas-cours/pas-cours.sty	2016-09-11 01:17:18 UTC (rev 42035)
+++ trunk/Master/texmf-dist/tex/latex/pas-cours/pas-cours.sty	2016-09-11 22:32:47 UTC (rev 42036)
@@ -1,10 +1,10 @@
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %                                                               %
-%     pas-cours.sty V1.09d    encodage : UTF8                   %
+%     pas-cours.sty V1.6    encodage : UTF8                     %
 %                                                               %
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %                                                               %
-%           Créé par Stéphane PASQUET 		             	  	    %
+%           Créé par Stéphane PASQUET 		             	  	%
 %                                                               %
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %% Objet :  Outils pour la création de cours
@@ -30,10 +30,17 @@
 %								correction du bug concernant l'option "ant" lors de l'appel de l'extension (texte en gras)
 % Ajout du 08/12/2014 : réajustement des dimensions de l'environnement "prerequis" 
 % Ajout du 11/12/2014 : réajustement des dimensions de l'environnement "aretenir" et correctif de la commande \breakbox
+% Ajout du 22/03/2015 : ajout de l'option "nonewpage" à la commande \chap
+% Ajout du 29/04/2015 : ajout de l'environnement "warning" et amélioration légère de l'environnement "attention"
+% Ajout du 01/07/2015 : ajout de la définition des couleurs prop, demo, act et meth pour faciliter le changement 
+% Ajout du 24/07/2016 : ajout de l'option "noitemstyle" pour ne pas modifier le style des items
+% Ajout du 29/07/2016 : modification de ma macro "definmot" pour mettre en gras le mode mathématique
+% Ajout du 04/08/2016 : ajout de l'option générale "noeffect" et "notitlebreak". Ajout d'options à \boule.
+% Ajout du 18/08/2016 : ajout de l'environnnement "ifactors" (décomposition en produit de facteurs premiers)
 
 % Informations générales
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{pas-cours}[2014/11/27]
+\ProvidesPackage{pas-cours}[2016/08/04]
 
 %% Chargement des packages nécessaires
 
@@ -43,11 +50,17 @@
 \@ifpackageloaded{tikz}{}{\RequirePackage{tikz}}
 \usetikzlibrary{calc,arrows,fadings}
 \@ifpackageloaded{enumitem}{}{\RequirePackage{enumitem}}
-
+\@ifpackageloaded{fancyvrb}{}{\RequirePackage{fancyvrb}}
 \newif\if at ant
 \newif\if at everytoc
+\newif\if at noitemstyle % NEW 2016-07-24
+\newif\if at noeffect % NEW 2016-08-04
+\newif\if at notitlebreak % NEW 2016-08-04
 \DeclareOption{ant}{\@anttrue}
 \DeclareOption{everytoc}{\@everytoctrue}
+\DeclareOption{noitemstyle}{\@noitemstyletrue}
+\DeclareOption{noeffect}{\@noeffecttrue}
+\DeclareOption{notitlebreak}{\@notitlebreaktrue}
 \ProcessOptions
 
 \newenvironment{ant}{
@@ -65,9 +78,13 @@
 \definecolor{nota}{rgb}{0.564,0.21,0.87}
 \definecolor{rem}{rgb}{0.5,0.5,0.5}
 \definecolor{thm}{cmyk}{0,0.96,0.63,0.19}
+\definecolor{prop}{cmyk}{0,1,1,0} % red
+\definecolor{demo}{cmyk}{0,0,0,1} % black
+\definecolor{act}{cmyk}{0,0.5,1,0} % traditional orange
+\definecolor{meth}{rgb}{0.59, 0.29, 0.0} % traditional brown
 
 \input{macro-patrons.tex}
 \input{macro-solides.tex}
 \input{macro-styles.tex}
-
+\input{macro-calculs.tex}
 \endinput

Modified: trunk/Master/tlpkg/libexec/ctan2tds
===================================================================
--- trunk/Master/tlpkg/libexec/ctan2tds	2016-09-11 01:17:18 UTC (rev 42035)
+++ trunk/Master/tlpkg/libexec/ctan2tds	2016-09-11 22:32:47 UTC (rev 42036)
@@ -5306,6 +5306,7 @@
     "darwin_x86_i386"    => "universal-darwin",
     "i386-freebsd"       => "i386-freebsd",
     "i386-pc-solaris2"   => "i386-solaris",
+    "linux_armel"        => "armel-linux",
     "linux_x86_32"       => "i386-linux",
     "linux_x86_64"       => "x86_64-linux",
     "x86_64-pc-solaris2" => "x86_64-solaris",
@@ -5331,7 +5332,7 @@
     # really need to do svn cp for this (in place, can't do it here).
     my $bindir = "$TOPDEST/bin/$tl_platform";
     &SYSTEM ("mkdir -p $bindir/");
-    &SYSTEM ("$MV $biber_binary $bindir/"); # bindir should already exist    
+    &SYSTEM ("$MV $biber_binary $bindir/") || die; #bindir should already exist
   }
 
   # don't keep binary archives around in Master tree.



More information about the tex-live-commits mailing list