Andreas K. wrote:
Luqman H <[EMAIL PROTECTED]> writes:

hi,

is it possible to align the page number
instead of just center align on default pagestyle ?

for ex. i want to align the page number on right bottom
of the page..

thanks...



You have to use the fancyheader package, see http://www.ctan.org/tex-
archive/macros/latex/contrib/fancyhdr/fancyhdr.pdf

An example is given here: http://www.mail-archive.com/lyx-
[EMAIL PROTECTED]/msg47016.html

I think you should write the following in the preamble:

\pagestyle{fancy}
\renewcommand{\headrulewidth}{0pt}
\rhead{}
\lhead{}
\rfoot{\thepage}
\lfoot{}
\cfoot{}

and \thispagestyle{fancy} using ERT at the start of the first line of the page.


If you want the page number bottom right on every page, some of this can be simplified. (Menu instructions below follow the LyX 1.4.x layout, but the same can be done in LyX 1.3.x.) First, go to Document->Settings...->Page Layout->Page style: and set it to fancy. This takes the place of the \pagestyle{fancy} command. Add the other commands Andreas recommended to the preamble (although you only need the ones with empty arguments, such as \cfoot{}, if there's something in the header or footer you want to turn off, such as a centered page number in the footer). I don't think you will need to add \thispagestyle{fancy} to the text.

/Paul

Reply via email to