\documentclass[12pt]{report}
\usepackage[greek,frenchb]{babel}
\usepackage[latin1]{inputenc}
\parindent0pt
\usepackage[dvips,a4paper,margin=1.5cm,nohead]{geometry}
\usepackage[dvips]{graphicx}

\usepackage{amsmath,amssymb,pst-all,tabls,array,tabularx,framed,calc,multicol,xlop,colortbl,marvosym,lscape,fancybox}

\usepackage{hyperref}
\usepackage[french]{minitoc}
\graphicspath{{/home/christophe/Documents/4eme/livret/figures/}}

\newcommand{\affichage}[3]{%chemin/nb exo/prefixe exo
\newcount\x
\x=0 \loop
\advance \x by 1
\ifnum \x<#2
\par\vspace{2mm}\par\psshadowbox{\exo -- #1/#3\the\x}\par
\input{exercices/#1/#3\the\x}
\par
\repeat
}

\definecolor{fond1}{rgb}{1,1,.8}%jaune clair
\definecolor{fond2}{rgb}{.8,.9,1}%bleu clair
\definecolor{fond3}{rgb}{.9,.9,.9}%gris clair
\definecolor{fond4}{rgb}{0.55,1,0.6}%vert clair
\definecolor{fond5}{rgb}{1,0.6,0.55}%rouge clair
\definecolor{fond6}{rgb}{1,0.8,0}%orange
\newcommand{\encadrecouleur}[2]{
\psframebox[fillstyle=solid,fillcolor=#1,framearc=0.15]{
\begin{minipage}{\textwidth-25\fboxsep}
#2
\end{minipage}
}}


\newcommand{\pstreetitre}[1]{\Tr{\psshadowbox[fillstyle=solid,fillcolor=LightOrange]{\Large #1}}}
\newcommand{\methode}[1]{\Tr{\psshadowbox[fillstyle=solid,fillcolor=LightGray]{\begin{minipage}{5cm}#1\end{minipage}}}}
\newcommand{\exemple}[1]{\Tr{\psshadowbox{\begin{minipage}{5cm}#1\end{minipage}}}}

\newcommand{\Hypo}[1]
{\Tr{\psshadowbox[fillstyle=solid,fillcolor=LightGreen]{#1}}}
\newcommand{\Hysion}[1]
{\Tr{\psshadowbox[fillstyle=solid,fillcolor=LightOrange]{#1}}}
\newcommand{\Conclu}[1]
{\Tr{\psshadowbox[fillstyle=solid,fillcolor=LightRed]{#1}}}
\newcommand{\Defi}[1]
{\Tr{\psshadowbox[fillstyle=solid,fillcolor=LightBlue]{#1}}}
\newcommand{\Propri}[1]
{\Tr{\psshadowbox[linestyle=dashed,doubleline=true,fillstyle=solid]{#1}}}
\newcommand{\Raccord}{\Tc*{1mm}}

\newpsstyle{FondFrame}{linestyle=dashed,fillstyle=hlines,hatchwidth=0.1pt,hatchsep=2pt}
\definecolor{LightGray}{gray}{0.9}
\definecolor{LightGreen}{rgb}{0.5,1,0.5}
\definecolor{LightRed}{rgb}{1,0.5,0.5}
\definecolor{LightBlue}{rgb}{0.5,0.5,1}
\definecolor{LightOrange}{rgb}{1,0.7,0}

\input christ5.tex

%%essai de changement de style 
\makeatletter
\def\thickhrulefill{\leavevmode \leaders \hrule height 1ex \hfill \kern \z@}
\def\@makechapterhead#1{%
\vspace*{10\p@}%
{\parindent \z@ \centering \reset@font
\thickhrulefill\quad
\scshape \@chapapp{} %\thechapter
\quad \thickhrulefill
\par\nobreak
\vspace*{10\p@}%
\interlinepenalty\@M
\hrule
\vspace*{10\p@}%
\Huge \bfseries #1\par\nobreak
\par
\vspace*{10\p@}%
\hrule
%\vskip 40\p@
\vskip 50\p@
}}
\def\@makeschapterhead#1{%
%\vspace*{50\p@}%
\vspace*{10\p@}%
{\parindent \z@ \centering \reset@font
\thickhrulefill
\par\nobreak
\vspace*{10\p@}%
\interlinepenalty\@M
\hrule
\vspace*{10\p@}%
\Huge \bfseries #1\par\nobreak
\par
\vspace*{10\p@}%
\hrule
%\vskip 40\p@
\vskip 50\p@
}}

\makeatletter
\def\section{\@ifstar\unnumberedsection\numberedsection}
\def\numberedsection{\@ifnextchar[%]
\numberedsectionwithtwoarguments\numberedsectionwithoneargument}
\def\unnumberedsection{\@ifnextchar[%]
\unnumberedsectionwithtwoarguments\unnumberedsectionwithoneargument}
\def\numberedsectionwithoneargument#1{\numberedsectionwithtwoarguments[#1]{#1}}
\def\unnumberedsectionwithoneargument#1{\unnumberedsectionwithtwoarguments[#1]{#1}}
\def\numberedsectionwithtwoarguments[#1]#2{%
\ifhmode\par\fi
\removelastskip
\vskip 5ex\goodbreak
\refstepcounter{section}%
\hbox to \hsize{%\hss
\vbox{%\advance\hsize by 1cm
\noindent
\leavevmode\Large\bfseries\raggedright
\thesection.\
#2\par
\vskip -2ex
\noindent\hrulefill
}}\nobreak
\vskip 2ex\nobreak
\addcontentsline{toc}{section}{%
\protect\numberline{\thesection}%
#1}%
}
\def\unnumberedsectionwithtwoarguments[#1]#2{%
\ifhmode\par\fi
\removelastskip
\vskip 5ex\goodbreak
% \refstepcounter{section}%
\hbox to \hsize{%\hss
\vbox{%\advance\hsize by 1cm
\noindent
\leavevmode\Large\bfseries\raggedright
% \thesection\
#2\par
\vskip -2ex
\noindent\hrulefill
}}\nobreak
\vskip 2ex\nobreak
\addcontentsline{toc}{section}{%
% \protect\numberline{\thesection}%
#1}%
}
\makeatother
%fin d'essai de changement de style

\begin{document}
\input Puissancesseul.tex
\end{document}