LyXPage Numbering & Custom Headings

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
peytonator
Posts: 8
Joined: Fri Dec 04, 2009 1:50 pm

Page Numbering & Custom Headings

Post by peytonator »

Hi there,

I am having trouble with two things:

1) How do I put the page number at the bottom right of each page?
My attempt: in the MikTeX package manager, I see that the fancyhdr package is installed. I then added the following to the preamble:

Code: Select all

\usepackage{fancyhdr}
\pagestyle{fancy}
\rfoot{\thepage}
But this did nothing at all.

2) How do I change the style of the Section and chapter headings? E.g., how do I specify the font size and justification of Chapter headings?
I found this article: http://wiki.lyx.org/FAQ/ChangeFontUsingLatex
However, it was too complicated to understand.

I am using Windows 7, with LyX 1.6 and MikTeX 2.8. I am also using the book class. Also my experience with LyX and LaTeX in very minimal! Please help!

Thanks :)

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Page Numbering & Custom Headings

Post by meho_r »

These questions have been answered more than hundred times here, so you really should use "Search" function. Beside that, take a look at Resources for beginners section.

However, the solution for your queries are two packages: titlesec for customizing sectioning commands and fancyhdr for customizing headers and footers. I've attached a .lyx file with a simple example. Note that I'm using book document class in the example with "twoside document" option enabled. Analyze the code in the Preamble and read manuals for above mentioned packages for more detailed infos.
Attachments
example.lyx.zip
(882 Bytes) Downloaded 453 times
peytonator
Posts: 8
Joined: Fri Dec 04, 2009 1:50 pm

Page Numbering & Custom Headings

Post by peytonator »

Thanks for the reply,

I have another question relating to the harvard referencing system. I installed the harvard package using MikTeX and then tried to reconfigure LyX. However, after restarting LyX, I find that the agsm style and a few others are not on the list of bibliographic styles. When I try add

\usepackage{harvard}

to the preamble I get all sorts of errors. I am using Natbib (author-year).

What do I do?

Thanks again
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Re: Page Numbering & Custom Headings

Post by meho_r »

For starters, open a new thread for all new questions not related to page numbering and headings.

If you're using Natbib, you should remove \usepackage{harvard} from the Preamble. Just choose agsm for Bibliography Style and Natbib will do the job.
peytonator
Posts: 8
Joined: Fri Dec 04, 2009 1:50 pm

Page Numbering & Custom Headings

Post by peytonator »

Ok sorry. But since the question is on this post, I might as well continue here...
peytonator wrote:after restarting LyX, I find that the agsm style and a few others are not on the list of bibliographic styles.
Whether \usepackage{harvard} is there or not, I still can't find agsm on the list.

Help! :?
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Re: Page Numbering & Custom Headings

Post by meho_r »

Sorry, missed that :oops:

I do not use MikTeX so I have no idea how it works or what should be done, but some other users here can provide help. And, you really should start a new thread about this and put its link in your next post :)
Post Reply