summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/pas-cours/macro-styles.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/pas-cours/macro-styles.tex')
-rw-r--r--Master/texmf-dist/doc/latex/pas-cours/macro-styles.tex55
1 files changed, 35 insertions, 20 deletions
diff --git a/Master/texmf-dist/doc/latex/pas-cours/macro-styles.tex b/Master/texmf-dist/doc/latex/pas-cours/macro-styles.tex
index b58cc8bdf8a..0a0b3314dda 100644
--- a/Master/texmf-dist/doc/latex/pas-cours/macro-styles.tex
+++ b/Master/texmf-dist/doc/latex/pas-cours/macro-styles.tex
@@ -96,16 +96,16 @@
\IfStrEq{\cmdPAS@env@title}{}{}{\def\texte{\cmdPAS@env@title}}
\IfStrEq{\cmdPAS@env@color}{}{}{\def\couleur{\cmdPAS@env@color}}
\ifPAS@env@degrade
- \tikzstyle{noeud} = [rectangle,inner sep=10pt,fill=\couleur!10,path fading=east]
+ \tikzstyle{noeud} = [rectangle,inner ysep=10pt, inner xsep=5pt, fill=\couleur!10,path fading=east]
\else
- \tikzstyle{noeud} = [rectangle,inner sep=10pt,fill=\couleur!10]
+ \tikzstyle{noeud} = [rectangle,inner ysep=10pt, inner ysep=5pt, fill=\couleur!10]
\fi
\itemclass{\couleur}
\noindent
\begin{tikzpicture}
\node [noeud] (box)
{%
- \begin{minipage}{\textwidth}
+ \begin{minipage}{\dimexpr\textwidth-40pt}
\itshape #2
\ifPAS@env@endsymb
\hfill \cmdPAS@env@symb
@@ -114,7 +114,7 @@
};
\ifPAS@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}};
+ {\kern-3pt\begin{ant}\textbf{\texte}\end{ant}};
\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@env@name}};
@@ -264,13 +264,13 @@
\IfStrEq{\cmdPAS@env@title}{}{}{\def\texte{\cmdPAS@env@title}}
\IfStrEq{\cmdPAS@env@color}{}{}{\def\couleur{\cmdPAS@env@color}}
\ifPAS@env@degrade
- \tikzstyle{noeud} = [rectangle,inner sep=10pt,fill=\couleur!10,path fading=east]
+ \tikzstyle{noeud} = [rectangle,inner ysep=10pt, inner xsep=5pt, fill=\couleur!10,path fading=east,outer sep=0pt]
\else
- \tikzstyle{noeud} = [rectangle,inner sep=10pt,fill=\couleur!10]
+ \tikzstyle{noeud} = [rectangle,inner ysep=10pt, inner xsep=5pt, fill=\couleur!10,outer sep=0pt]
\fi
\itemclass{\couleur}
\begin{lrbox}{\pas@box}
- \begin{minipage}{0.93\linewidth}
+ \begin{minipage}{\dimexpr\linewidth-\parindent-14pt}
}
{
\ifPAS@env@endsymb
@@ -287,16 +287,16 @@
\edef\texte{\texte~(suite)}
\ifPAS@env@notitlebreak\else\ifPAS@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}};
+ {\begin{ant}\kern-3pt\texte\end{ant}};
\fi\fi
\else
\ifPAS@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}};
+ {\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) {\emph{\cmdPAS@env@name}};
+ \node[left,color=\couleur] at ($(box.north east)+(0,1pt)$) {\emph{\cmdPAS@env@name}};
\end{tikzpicture}
\vspace{0.5cm}
}
@@ -322,11 +322,13 @@
\node[rounded corners=3pt,draw=\couleur!50!black,very thick,left,fill=white] at ($(box.south east)+(-0.5,0)$) {...};
\end{tikzpicture}\par
\begin{lrbox}{\pas@box}
- \begin{minipage}{0.93\linewidth}
+ \begin{minipage}{\dimexpr\linewidth-\parindent-14pt}
}
%%%%%%%%%% définition du titre
+\newlength\pas@titlelinewidth
+
\define@cmdkey [PAS] {chap} {num}{}
\define@cmdkey [PAS] {chap} {color}{}
\define@cmdkey [PAS] {chap} {pos}{}
@@ -346,7 +348,7 @@
{ \tikzstyle{pastitrepos} = [text=\cmdPAS@chap@color,rectangle,left]
\tikzstyle{pastrait} = [right color=\cmdPAS@chap@color, left color=white,thick]
\tikzstyle{passstitre} = [\cmdPAS@chap@color,left,scale=0.5]
- \edef\PASx{-\textwidth}
+ \setlength{\pas@titlelinewidth}{\dimexpr2cm-\linewidth}
\def\PASpos{box.north west}
\def\PAStrait{box.west}
\def\PASsstitre{box.south west}
@@ -355,24 +357,30 @@
{ \tikzstyle{pastitrepos} = [text=\cmdPAS@chap@color,rectangle,right]
\tikzstyle{pastrait} = [left color=\cmdPAS@chap@color, right color=white,thick]
\tikzstyle{passstitre} = [\cmdPAS@chap@color,right,scale=0.5]
- \edef\PASx{\textwidth}
+ \setlength{\pas@titlelinewidth}{\dimexpr\linewidth-2cm}
\def\PASpos{box.north east}
\def\PAStrait{box.east}
\def\PASsstitre{box.south east}
\def\PAStitrealign{flushleft}
}
\noindent
+ \begin{\PAStitrealign}
\begin{tikzpicture}
- \node[fill=\cmdPAS@chap@color, shading=ball, ball color=\cmdPAS@chap@color, very thick,circle, inner xsep=5pt, inner ysep=2pt] (box) at (0,0) {\begin{Large}\textcolor{white}{\begin{ant} \textbf{\titre@chapitre} \end{ant}}\end{Large}};
- \node[pastitrepos] at (\PASpos) {\begin{minipage}{\textwidth}\begin{\PAStitrealign} \begin{Large}\textcolor{\cmdPAS@chap@color}{ \begin{ant} #2 \end{ant}}\end{Large} \end{\PAStitrealign} \end{minipage}};
- \shade[pastrait] (\PAStrait) rectangle +(\PASx,-0.01);
+ % Le numero de chapitre
+ \node[fill=\cmdPAS@chap@color, shading=ball, ball color=\cmdPAS@chap@color, very thick,circle, inner xsep=5pt, inner ysep=2pt] (box) at (0,0) {\kern-5pt\begin{Large}\textcolor{white}{\begin{ant}\textbf{\titre@chapitre}\end{ant}}\end{Large}};
+ % le titre
+ \node[pastitrepos] at (\PASpos) {\begin{minipage}{\dimexpr\textwidth-2cm}\begin{\PAStitrealign} \begin{Large}\textcolor{\cmdPAS@chap@color}{ \begin{ant} #2 \end{ant}}\end{Large} \end{\PAStitrealign} \end{minipage}};
+ % la ligne
+ \shade[pastrait] (\PAStrait) rectangle +(\pas@titlelinewidth,-0.01);
+ % le sous-titre
\node[passstitre] at (\PASsstitre) {\begin{ant}#3\end{ant}};
\end{tikzpicture}
+ \end{\PAStitrealign}
}
%%%%%%%%%%%% Définition d'un mot
-\newcommand{\definmot}[1]{\texttt{\textbf{\textcolor{defi}{#1}}}}
+\newcommand{\definmot}[1]{\texttt{\textbf{\textcolor{\couleur}{#1}}}}
% Itemclass
@@ -412,10 +420,17 @@
%%%%%%%%%%% PREREQUIS
\newsavebox{\prerequisBox}
+\newsavebox{\imgPrerequis}
+\newlength{\largeurimgPrerequis}
+
\newenvironment{prerequis}
{%
+ \begin{lrbox}{\imgPrerequis}
+ \includegraphics[scale=0.25]{prerequis.png}
+ \end{lrbox}
+ \settowidth{\largeurimgPrerequis}{\usebox{\imgPrerequis}}%
\begin{lrbox}{\prerequisBox}
- \begin{minipage}{0.9\linewidth}
+ \begin{minipage}{\dimexpr\textwidth-0.5\largeurimgPrerequis-15pt}
\begin{itemize}[leftmargin=1em,label={\color{purple}$\bullet$}]
\tocFONT
}
@@ -443,7 +458,7 @@
\end{lrbox}
\settowidth{\largeurimageBox}{\usebox{\imageBox}}%
\begin{lrbox}{\aretenirBox}
-\begin{minipage}{\dimexpr\linewidth-\largeurimageBox-1em}
+\begin{minipage}{\dimexpr\linewidth-\largeurimageBox-1em-10pt}
}
{%
\end{minipage}
@@ -467,7 +482,7 @@
\end{lrbox}
\settowidth{\largeurimageBox}{\usebox{\imageBox}}%
\begin{lrbox}{\attentionBox}
-\begin{minipage}{\dimexpr\linewidth-\largeurimageBox-1em}
+\begin{minipage}{\dimexpr\linewidth-\largeurimageBox-1em-10pt}
}
{%
\end{minipage}