[Tex/LaTex] Book layout: bottom external page number

header-footerlyxpage-numbering

I'm using Lyx 2.0 to format my text with LaTex.

I'm using the predefined "book" template. On the first, non-title page I have the page number "1" centered on the bottom, while on the other pages the page number appears top-right.

I'd like the numbering to be always on the external (right on the pages on the right, left on the pages on the left), bottom corner.

How to get this? Thanks in advance.

Best Answer

You can use the titlesec package to easily define page styles:

\documentclass{book}
\usepackage[pagestyles]{titlesec}   
\usepackage{lipsum}

\newpagestyle{mystyle}{\setfoot[\thepage][][]{}{}{\thepage}}
\pagestyle{mystyle}

\begin{document}
\lipsum[1-8]
\end{document}

Another option would be to use the fancyhdr package:

\documentclass{book}
\usepackage{fancyhdr}   
\usepackage{lipsum}

\fancyhf{}
\renewcommand\headrulewidth{0pt}
\fancyfoot[RO, LE]{\thepage}
\pagestyle{fancy}

\begin{document}
\lipsum[1-8]
\end{document}
Related Question