Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

This is my code:

\usepackage[french]{minitoc}
\fancyfoot{}
\fancyfoot[RO,LE]{ \textbf{ \small \textsf{\thepage}}}
\documentclass[12pt,a4paper]{book} 
\usepackage[T1]{fontenc}
\renewcommand{\baselinestretch}{1.5} 
\begin{document}
\include{Chapter1}
\include{Chapter2}
\end{document}

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
add comment

1 Answer

up vote 6 down vote accepted

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

\fancyfoot[C]{\textbf{\small\textsf{\thepage}}}

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

\fancypagestyle{plain}{
     \fancyfoot{}
     \fancyfoot[C]{\textbf{\small\textsf{\thepage‌​}}}
}

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.
\usepackage{lastpage}
\fancypagestyle{detailed}{
    \fancyhf{} % clear all header and footers
    \fancyfoot[R]{\footnotesize{Page. \thepage~of~\pageref{LastPage}}}
    \renewcommand{\headrulewidth}{1pt}
    \renewcommand{\footrulewidth}{1pt}
 }

Then you can call

\thispagestyle{detailed}

for a single (local) instance, or,

\pagestyle{detailed}

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
show 4 more comments

Your Answer

 
discard

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.