%------------------ chargement de packages -----------------------% % alternative à voir --> eso-pic.sty, wallpaper \usepackage[absolute]{textpos} % placement absolu sur la page \usepackage{fancyhdr} % headers + placement par page %-------------------- Placement absolu ---------------------------% % 1- reglage de textpos \setlength{\TPHorizModule}{10mm} \setlength{\TPVertModule}{10mm} % 2- variables \newlength{\varX} % pour utiliser avec calc \newlength{\varY} % idem % 3- macros de positionnement absolu sur la page % On utilise textpos pour poser une pspicture 21x29.7 % Dans l'ideal le placement est le suivant : \newenvironment{psblock} {\begin{textblock}{0}(0,0) \begin{pspicture}(0,29.7)(0,29.7)} {\end{pspicture} \end{textblock}} % Ça marche presque partout % malheureusement quelque chose vient empecher ce bon placement % lorsque l'environnement est invoqué dans le corps du texte. On % corrigera donc à la fin, avec un réglage au quart de poil près ! \newenvironment{psblockc} {\begin{textblock}{0}(0,0) \begin{pspicture}(0.53,29.7)(0.53,29.7)} {\end{pspicture} \end{textblock}} %%%%% % On utilise les headers pour realiser le placement \cfoot{\thepage\ } \pagestyle{fancy} % \renewcommand{\chaptermark}[1]{\markboth{#1}{}} \renewcommand{\chaptermark}[1]{\markboth{#1}{}} \renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}} %\fancyhf{} \fancyhead{} \fancypagestyle{plain}{% <--- voila comment modifier le style plain \fancyhead{} % get rid of headers \renewcommand{\headrulewidth}{0pt} % and the line } \renewcommand{\headrulewidth}{0pt} % and the line \fancyhead[LE]{\rightmark} % \fancyhead[LO]{} % \fancyhead[RE]{\fancydecorationmargeeven} % voir onglets \fancyhead[RO]{\fancydecorationmargeodd\rightmark} % voir onglets %%% Local Variables: %%% mode: latex %%% TeX-master: "../main" %%% End: