4

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?

1
  • 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
    Commented Dec 29, 2012 at 19:34

1 Answer 1

6

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.

9
  • For the minitoc this is the package \usepackage[french]{minitoc}, i'll edit my question
    – researcher
    Commented Dec 29, 2012 at 19:51
  • are you also using fancychap? Commented Dec 29, 2012 at 19:53
  • no, just pagestyle{fancy}
    – researcher
    Commented Dec 29, 2012 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
    Commented Dec 29, 2012 at 19:55
  • when i add \fancypagestyle{plain} i have lost the style of number i have defined..
    – researcher
    Commented Dec 29, 2012 at 20:17

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .