# Book layout: bottom external page number

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.

-

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{}
\fancyfoot[RO, LE]{\thepage}
\pagestyle{fancy}

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

I don't know how to achieve this just with the plain book class. But if you can add the scrpage2 package, then something like to following should work (untested):

\usepackage{scrpage2}
\ofoot{\arabic{page}}

-

You could use the fancyhdr package. It offers quite a bit of flexibility on where things get placed int he header/footer.

\documentclass{book}

\usepackage{fancyhdr}
\usepackage{lipsum}

\pagestyle{fancy}