TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This is my code:

\fancyfoot[RO,LE]{ \textbf{ \small \textsf{\thepage}}}

With this code, I have the number of pages: one on the left and one the right. I ask how can change it all on the middle? And the first page of each chapter (which contains the minitoc) is without number, I ask how can add a number of page in this page?

share|improve this question
Please expand your code to a fully compilable minimal working example (MWE), i.e. don't use \include. There are packages that produce filler text, e.g. lipsum, blindtext, or kantlipsum. Make sure to include things like minitocs, but don't just paste your original document, reduce it to the minimum necessary to show all features present. – doncherry Dec 29 '12 at 19:34
up vote 6 down vote accepted

The first part of your question should be fixed with this...


To change the plain fancy page style, which gets called at the start of the chapter


The above can also be used to create a new fancy page style by changing plain to xyz, for example, I have used this for various documents, it is a more comprehensive command than the above, since it resets everything first via the \fancyhf{} command.

%Header and Footer.
    \fancyhf{} % clear all header and footers
    \fancyfoot[R]{\footnotesize{Page. \thepage~of~\pageref{LastPage}}}

Then you can call


for a single (local) instance, or,


to set the pagestyle from that point forward or until something else changes it.

share|improve this answer
For the minitoc this is the package \usepackage[french]{minitoc}, i'll edit my question – researcher Dec 29 '12 at 19:51
are you also using fancychap? – Nicholas Hamilton Dec 29 '12 at 19:53
no, just pagestyle{fancy} – researcher Dec 29 '12 at 19:54
i have in the beginning of chapter \thispagestyle{empty} , when i delete it i have the number of page but it haven't the same style like other pages – researcher Dec 29 '12 at 19:55
when i add \fancypagestyle{plain} i have lost the style of number i have defined.. – researcher Dec 29 '12 at 20:17

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.