Comment modifier la numérotation des pages ?

recherche d'un mot
* Il faut modifier la commande \thepage.

Exemple (P. van Oostrum) :

% chapter-page numbering
% reset page number when chapter is stepped
% The next magic makes the page counter be reset to one rather
% than zero
\def\@stpelt#1{\global\csname c@#1\endcsname
               \expandafter\ifx \csname#1\endcsname \page
                  \z@ \fi}
%%%% fin exemple %%%%

* Il existe également le package ci-dessous de A. Kielhorn.
%%%% debut macro %%%%
%% This is page-per-chapter-package
%% version 2.0
%% Don't use it with refrep!
%% Refrep has these commands already implemented
%% This version forces openright!!
%% Index-commands should work in chapters and appedices,
%% they will not work as expected in the preface when the
%% pagenumbering is not arabic. (MakeIndex can't sort roman-
%% numbers)
%% Bugs:
%%       The index is sortet according to the pagenumber
%%       without looking at the chapternumber.
%%       I don't think MakeIndex could handle that.


  You can't number your pages per chapter\MessageBreak when you
  have no chapters
  Use ``report'' or ``book'' instead.

%% Reset the pagecounter to 1 at the start of a new chapter

%% Force a pagebreak at the start of the appendix, otherwise
%% the number of the page right before the appendix comes
%% out wrong

\newif\if@pageperchapter \@pageperchapterfalse

%% This command enables Page-per-Chapter, it is *not* on by
%% default to allow roman pagenumbers in the preface
%% (see sample-document)
     % Remember old setting for chapter 0 = preface
     % The new number needs more space
     \renewcommand\ at pnumwidth{2.55em}
     % Here it comes :-)
       \ifnum \c@chapter = \z@
          \thechapter\ -- \arabic{page}

%% This is a hack to make MakeIndex happy :-(
%% You can't use the |-form of an indexentry because
%% it is used to store the chapternumber.
   \ifnum \c@chapter = \z@
      % The above is wrong if pagenumbering!=arabic,
      % but I think this is better than nothing.

%% This prints the pagenumber in the index
\def\ppc#1#2{#1 -- #2}

%%%% fin macro %%%%

* Pour changer la valeur du compteur de page, il suffit
d'utiliser :

Retour à la FAQ LaTeX
Proposition de modification de la FAQ LaTeX :
bayartb at edgard point fdn point fr
Commentaire sur la version HTML de cette FAQ :
Fabien Torre
© Copyright 1997 Marie-Paule Kluth. Tous droits réservés.

Valid XHTML 1.0! Valid CSS!