[Tutorial] Page numbering
Posted: Fri Dec 28, 2007 3:56 pm
Have some difficulties putting the page number on your document ? Here are some basics and a link to a detailed tutorial.
Executive summary
- Page number is a field that must be placed either in the header or in the footer.
- Header/footer are configured in the Page style (each has its own tab in the properties of the page style).
So:
- Double-click the page style name in the status bar (bottom of the main window).
- Go to the Header or Footer tab and activate it, click OK.
- Put the cursor in the Header/Footer created and go to Insert>Fields>Page number.
More information on the wiki: Page Numbering in OpenOffice.org Writer.
There is also a GUI as extension: Pagination extension.
Left/Center/Right alignment
Both the Header and Footer paragraph styles (automatically selected in those areas) have customized tabulations; first is left aligned, second is centered and third is right aligned.
Just hit the Tab key to navigate to the 2nd (middle) and 3rd (right) positions.
NB: if those strings are too long, they may push the next to the next tab slot and ruin the layout. In such case, you can use a table (with no borders) to limit the width of each place. Text will be wrapped in each cell without interfering with the others.
Odd and Even pages alignment
In the Header or Footer tab of the page style properties, you can uncheck the Same content left/right option. Then, you'll be able to have a left aligned page number on even pages (left) and right aligned page number on odd pages (right) without using 2 pages styles.
Numeral and non-numeral formatting
The formatting of the page number is not controlled with its field itself but with the Page style.
See: Changing the number format (wiki).
Common problems
You see a gray background on your page number? No worry, hit Ctrl+F8 or View>Field Shadings. The shading is not printed (disappears in Print Preview). It is just a reminder that this item is a field, a dynamic placeholder.
You see "Page numbers" instead of the actual number? No worry, hit Ctrl+F9 or View>Field Names. This is the identification of the field (replaced by the actual number in Print Preview).
Example
Here is a test file with examples of the methods described in this topic (Original file and its PDF rendering).
Blank pages were exported, it can then be printed as is, directly double sided.
Executive summary
- Page number is a field that must be placed either in the header or in the footer.
- Header/footer are configured in the Page style (each has its own tab in the properties of the page style).
So:
- Double-click the page style name in the status bar (bottom of the main window).
- Go to the Header or Footer tab and activate it, click OK.
- Put the cursor in the Header/Footer created and go to Insert>Fields>Page number.
More information on the wiki: Page Numbering in OpenOffice.org Writer.
There is also a GUI as extension: Pagination extension.
Left/Center/Right alignment
Both the Header and Footer paragraph styles (automatically selected in those areas) have customized tabulations; first is left aligned, second is centered and third is right aligned.
Just hit the Tab key to navigate to the 2nd (middle) and 3rd (right) positions.
NB: if those strings are too long, they may push the next to the next tab slot and ruin the layout. In such case, you can use a table (with no borders) to limit the width of each place. Text will be wrapped in each cell without interfering with the others.
Odd and Even pages alignment
In the Header or Footer tab of the page style properties, you can uncheck the Same content left/right option. Then, you'll be able to have a left aligned page number on even pages (left) and right aligned page number on odd pages (right) without using 2 pages styles.
Numeral and non-numeral formatting
The formatting of the page number is not controlled with its field itself but with the Page style.
See: Changing the number format (wiki).
Common problems
You see a gray background on your page number? No worry, hit Ctrl+F8 or View>Field Shadings. The shading is not printed (disappears in Print Preview). It is just a reminder that this item is a field, a dynamic placeholder.
You see "Page numbers" instead of the actual number? No worry, hit Ctrl+F9 or View>Field Names. This is the identification of the field (replaced by the actual number in Print Preview).
Example
Here is a test file with examples of the methods described in this topic (Original file and its PDF rendering).
Blank pages were exported, it can then be printed as is, directly double sided.