%---------------------- Titraille -------------------------% \newlength{\textwidthsaved} %%%%VIELLE VERSION % \newcommand{\sectionOLD}[2][oh]{% % %\medskip % \refstepcounter{section}% % \addcontentsline{toc}{section}{\thesection\ --\ #2}% % \par % \noindent\psframebox[framesep=0pt,fillstyle=none,fillcolor=red]{\parbox{1\linewidth}{\flushleft\pscharpath[fillstyle=solid,fillcolor=blue,linewidth=.4pt]{\bf\Large\fontedessections\thesection\ --\ #2}\rule[-.3cm]{0pt}{0pt}}}\nopagebreak\smallskip % \sectionmark{#2}\vspace{.5\baselineskip} % } %%%%%%%%%%%% Parties et chapitres \newcommand{\supprimefloats}{\suppressfloats}%RIEN % un bon vieux \suppressfloats recodé (conflit avec la biblio lipn) % {\makeatletter % \par % \global \@colnum \z@ % \global \@topnum \z@ % \global \@botnum \z@ % \par % \makeatothers} \makeatletter \renewcommand{\part}{\secdef\@part\@spart} % \makeatletter % \@afterindentfalse % \makeatother \renewcommand{\chapter}{\secdef\@chapter\@schapter} \renewcommand{\@spart}[2][]{DANGER MACRO VIDE}% INUTILISEE \renewcommand{\@part}[2][]{% \clearemptydoublepage \thispagestyle{empty} \supprimefloats \refstepcounter{part}% \refstepcounter{totalparts}% \setcounter{chapter}{0}% \tocongletpart{\protect~#1}% \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}% % initialitation des infos % \setfdcouleurpartie% \begin{psblockc} \grillepage \pscircle[fillstyle=solid,fillcolor=\fdcouleurpartie](20.5,14.85){14.35} \cput[linestyle=none](11,14.85){\parbox{8cm}{ \raggedleft \normalfont \huge\bfseries Partie\nobreakspace\thepart \par \Huge\bfseries #2% }}% \pscircle[fillstyle=none](11,14.85){4.85} \psline[linewidth=2pt](15.25,18.85)(15.25,10.85) \end{psblockc} \null\vfil \clearpage }% fin def part \renewcommand{\@chapter}[2][]{% % 1- Creation d'une nouvelle page, increment % \clearemptydoublepage \thispagestyle{plain} \supprimefloats \refstepcounter{chapter}% \refstepcounter{totalchapters}% \tocongletchapitre{\protect~#1}% %\addcontentsline{toc}{chapter}% % {\protect\numberline{\thechapter}\hspace{1cm}#1}% \typeout{\@chapapp\space\thechapter.}% \addcontentsline{toc}{chapter}% % {\protect\numberline{\thechapter}#1}% {\protect~#1} \chaptermark{#1}% %\@makechapterhead{#2}% A QUOI TU SERT? % \@afterheading % ET TOI ? % 2- Initialisations des infos % \setfdcouleurchapitre% \setfdhauteurchapitre% \infochapitre{#1}% <-- peut être changé après (réglages de fin) % 3- Positionnement % \begin{psblockc} \grillepage %\pscircle[fillstyle=solid,fillcolor=\fdcouleurchapitre](20.5,14.85){14.35} \psframe[linestyle=none,fillstyle=solid,fillcolor=\fdcouleurchapitre](0,0)(21,30) \cput[linestyle=none](10.75,21){\parbox{12cm}{ \raggedleft \normalfont \LARGE\bfseries Chapitre\nobreakspace\thechapter \par \huge\bfseries #2% }}% \pscircle[fillcolor=white,fillstyle=solid](0,0.5){20.5} \psline[linewidth=2pt](17,23)(17,19) \grillepage % <- pour débogage graphique \end{psblockc} ~\vspace{31\baselineskip}\par\noindent %\clearpage }% fin def chapter \renewcommand{\@schapter}[1]{% % 1- Creation d'une nouvelle page % \clearemptydoublepage \thispagestyle{plain} \supprimefloats % 2- Initialisations des infos % \renewcommand{\fdcouleurchapitre}{white} \setcounter{fdhauteurchapitre}{350}% <- vire les onglets \infochapitre{}% <-- vire le texte des onglets % 3- Positionnement % \begin{psblockc} \grillepage \psframe[linestyle=none,fillstyle=solid,fillcolor=\fdcouleurchapitre](0,0)(21,30) \cput[linestyle=none](10.75,21){\parbox{12cm}{ \raggedleft \normalfont \huge\bfseries #1% }}% \pscircle[fillcolor=white,fillstyle=solid](0,0.5){20.5} \psline[linewidth=2pt](17,23)(17,19) \grillepage % <- pour débogage graphique \end{psblockc} ~\vspace{33\baselineskip}\par\noindent \clearpage %<-- on démarre le texte sur une nouvelle page }% fin def chapter* %%%%% SECTIONS ET SOUS-SECTIONS \newcommand{\grigridessections}[1][2]{% %\setfdcouleurchapitre <-- accompli à la creation du chapitre \pscircle[linestyle=none,fillstyle=solid,fillcolor=\fdcouleurchapitre] (#1,0.6){0.6} \psframe[linestyle=none,fillstyle=solid,fillcolor=\fdcouleurchapitre] (0,0)(#1,1.2) } %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \iffalse % Debut de non inclusion de def de section \renewcommand{\section}{\secdef\sectionalt\sectionaltstar} \renewcommand{\subsection}{\secdef\subsectionalt\subsectionaltstar} \newcommand{\subsubsubsection}[1]{% comme un début de paragraphe \bigskip %\medskip \hspace{-1cm} {\textbf{#1}} \medskip } \newcommand{\sectionalt}[2][]{% \bigskip%\medskip \refstepcounter{section}% \tocongletsection{\protect~#1}% \addcontentsline{toc}{section}{\thesection\ --\ #1}% \noindent\parbox{1\linewidth}{\noindent% \flushleft\fontedessections \begin{pspicture}(0,0)(0,0) \psset{unit=1em} \put(-0.2,-.27){\grigridessections[1.7]} \put(0,0){\thesection} \end{pspicture}% \hspace{2.5em}#2%\rule[-.3cm]{0pt}{0pt} }\nopagebreak\bigskip\nopagebreak \sectionmark{#1}\vspace{.5\baselineskip}\nopagebreak\par }%fin def sectionalt \newcommand{\sectionaltstar}[1]{% \bigskip \noindent\parbox{1\linewidth}{\noindent% \flushleft\fontedessections \begin{pspicture}(0,0)(0,0) \psset{unit=1em} \put(-0.2,-.27){\grigridessections[1.7]} %\put(0,0){\thesection} \end{pspicture}% \hspace{2.5em}#1%\rule[-.3cm]{0pt}{0pt} }\nopagebreak\medskip\nopagebreak \sectionmark{#1}\vspace{.5\baselineskip}\nopagebreak\par }%fin def sectionaltstar \newcommand{\subsectionalt}[2][]{% \bigskip%\smallskip \refstepcounter{subsection}% \addcontentsline{toc}{subsection}{\thesubsection\ --\ #1}% \noindent\parbox{1\linewidth}{\noindent% \flushleft\fontedessoussections% \begin{pspicture}(0,0)(0,0) \psset{unit=1em} \put(-0.2,-.27){\grigridessections[2.7]} \put(0,0){\thesubsection} \end{pspicture}% \hspace{3.2em} #2%\rule[-.3cm]{0pt}{0pt} }\nopagebreak\medskip\nopagebreak \subsectionmark{#1}\vspace{.5\baselineskip}\nopagebreak\par }% fin def subsectionalt \newcommand{\subsectionaltstar}[1]{% \bigskip%\smallskip \noindent\parbox{1\linewidth}{\noindent% \flushleft\fontedessoussections% \begin{pspicture}(0,0)(0,0) \psset{unit=1em} \put(-0.2,-.27){\grigridessections[2.7]} \end{pspicture}% \hspace{3.2em} #1%\rule[-.3cm]{0pt}{0pt} }\nopagebreak\medskip\nopagebreak \subsectionmark{#1}\vspace{.5\baselineskip}\nopagebreak\par }% fin def subsectionaltstar \fi % fin de non inclusion des def de section %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Nouvelle version des def de section %%% Section %%% \def\section{\@ifnextchar*% \sectionstar% \sectionpasstar% } \def\sectionstar*{\@ifnextchar[%] \sectionstaroption% \sectionstarpasoption}% \def\sectionpasstar{\@ifnextchar[%] \sectionpasstaroption% \sectionpasstarpasoption}% %% \section{texte} \def\sectionpasstarpasoption#1{ \tocongletsection{#1}% \@startsection{section}{1}{\z@}% {-3.5ex \@plus -1ex \@minus -.2ex}% {2.3ex \@plus.2ex}% {\noindent\fontedessections \begin{pspicture}(0,0)(0,0) \psset{unit=1em} \put(-0.2,-.27){\grigridessections[1.7]} \end{pspicture}% \hspace{0.2em}}{#1}} %% \section[alt-texte]{texte} \def\sectionpasstaroption[#1]#2{ \tocongletsection{#1}% \@startsection {section}{1}{\z@}% {-3.5ex \@plus -1ex \@minus -.2ex}% {2.3ex \@plus.2ex}% {\noindent\fontedessections \begin{pspicture}(0,0)(0,0) \psset{unit=1em} \put(-0.2,-.27){\grigridessections[1.7]} \end{pspicture}% \hspace{0.2em}}[#1]{#2}} %% \section*{texte} \def\sectionstarpasoption#1{ %\tocongletsection{#1}% pas de toc onglet \@startsection {section}{1}{\z@}% {-3.5ex \@plus -1ex \@minus -.2ex}% {2.3ex \@plus.2ex}% {\noindent\fontedessections \begin{pspicture}(0,0)(0,0) \psset{unit=1em} \put(-0.2,-.27){\grigridessections[1.7]} \end{pspicture}% \hspace{0.2em}}*{#1}} %% \section*[alt-texte]{texte} \def\sectionstaroption[#1]#2{ %\tocongletsection{#1}% pas de toc onglet \@startsection {section}{1}{\z@}% {-3.5ex \@plus -1ex \@minus -.2ex}% {2.3ex \@plus.2ex}% {\noindent\fontedessections \begin{pspicture}(0,0)(0,0) \psset{unit=1em} \put(-0.2,-.27){\grigridessections[1.7]} \end{pspicture}% \hspace{0.2em}}*[#1]{#2}} %%% Subsection %%% \def\subsection{\@ifnextchar*% \subsectionstar% \subsectionpasstar% } \def\subsectionstar*{\@ifnextchar[%] \subsectionstaroption% \subsectionstarpasoption}% \def\subsectionpasstar{\@ifnextchar[%] \subsectionpasstaroption% \subsectionpasstarpasoption}% %% \subsection{texte} \def\subsectionpasstarpasoption#1{% \@startsection{subsection}{2}{\z@}% {-3.25ex\@plus -1ex \@minus -.2ex}% {1.5ex \@plus .2ex}% {\noindent% \flushleft\fontedessoussections% \begin{pspicture}(0,0)(0,0) \psset{unit=1em} \put(-0.2,-.27){\grigridessections[2.5]} \end{pspicture}% \hspace{0.2em}}{#1}} %% \subsection[alt-texte]{texte} \def\subsectionpasstaroption[#1]#2{% \@startsection{subsection}{2}{\z@}% {-3.25ex\@plus -1ex \@minus -.2ex}% {1.5ex \@plus .2ex}% {\noindent% \flushleft\fontedessoussections% \begin{pspicture}(0,0)(0,0) \psset{unit=1em} \put(-0.2,-.27){\grigridessections[2.5]} \end{pspicture}% \hspace{0.2em}}[#1]{#2}} %% \subsection*{texte} \def\subsectionstarpasoption#1{% \@startsection{subsection}{2}{\z@}% {-3.25ex\@plus -1ex \@minus -.2ex}% {1.5ex \@plus .2ex}% {\noindent% \flushleft\fontedessoussections% \begin{pspicture}(0,0)(0,0) \psset{unit=1em} \put(-0.2,-.27){\grigridessections[2.5]} \end{pspicture}% \hspace{3.2em}}*{#1}} %% \subsection*[alt-texte]{texte} \def\subsectionstaroption[#1]#2{% \@startsection{subsection}{2}{\z@}% {-3.25ex\@plus -1ex \@minus -.2ex}% {1.5ex \@plus .2ex}% {\noindent% \flushleft\fontedessoussections% \begin{pspicture}(0,0)(0,0) \psset{unit=1em} \put(-0.2,-.27){\grigridessections[2.5]} \end{pspicture}% \hspace{3.2em}}*[#1]{#2}} %% Subsection : comme d'habitude %% Subsubsection : comme d'habitude avec décalage gauche \renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}% {-3.25ex\@plus -1ex \@minus -.2ex}% {1.5ex \@plus .2ex}% {\noindent% %\begin{pspicture}(0,0)(0,0)% %\psset{unit=1mm}% \pscircle[fillstyle=solid,linestyle=none,fillcolor=\fdcouleurchapitre](.08,.09){.08}% %\end{pspicture}% %\quad\normalfont\normalsize\bfseries}} %\color{\fdcouleurchapitre}\bf *~~} ~~~\normalfont\normalsize\bfseries}} %% Subsubsubsection n'existe pas dans la classe report, a proscrire ! \newcommand{\subsubsubsection}[1]{\paragraph{#1}} \makeatother %%% Vielle version %%{\flushleft\thesubsection\ --\ #2\rule[-.1cm]{0pt}{0pt}\nobreak\hrule} %%\sectionmark{#2}\vspace{.5\baselineskip} %%% Local Variables: %%% mode: latex %%% TeX-master: "../main" %%% End: