Wednesday, February 16, 2011

How To: Page Numbering in Open Source Text Processors

Some time ago I made guest posting on Go2Linux.org site comparing Open Source Office applications. That time I complained that it was not obvious for me how to automatically number pages in the document using some of text processors reviewed there. Have you ever faced this issue? Hope this time I will open the secrets of three different packages and show you how to solve this issue.


I will take text document in .odt format for the test purposes. It is text of my guest posting, if you can read it on screenshots. Text is about 5 pages long. Let's assume that I need to add page number and total number of pages at the top centre part of each page.

OpenOffice.org Writer

There are just 5 steps to fulfil this task in OpenOffice.org Writer.
  1. Add header. Choose menu Insert - Header - Default. After that, you will see the frame at the top of each page which shows borders of the header area. Don't worry, these borders will not be printed, they are only shown for your convenience. If you need to do page numbers at the bottom of the page, you need use menu Insert - Footer - Default.
  2. You need to position cursor to header area, if it is not there. Double-click somewhere within the border.
  3. After that, we do two obvious steps:
  4. Add Page number. Choose menu Insert - Fields - Page Number.
  5. Add Page count. Choose menu Insert - Fields - Page Count.
  6. We are almost there. The thing which is still outstanding is some bells and whistles.
  7. Format text, for example centre it and add some static text (1 of 5). You can use your usual technique here.
Please note: I have not tried this approach in Libre Office, but since they are very close brothers so far, I would expect page numbering to work exactly the same way. Please tell me otherwise.

KWord

KWord is slightly different to OpenOffice.org Writer. Here we need to format headers (or footers, if you prefer) separately for odd and even pages.
  1. Add header. Choose menu Format - Include document headers. You should see rectangle at the top of the page. Again, if you want to place page numbers at the bottom of the page, choose menu Format - Include document footers.
  2. Activate headers frame. Double-click it.
  3. Here are 2 main steps.
  4. Add Page number. Choose menu Insert - Variable - Page Number.
  5. Add Page count. Choose menu Insert - Variable - Page Count.
  6. Format text, for example centre it and add some constant text (1 of 5). You can use your usual technique here.
  7. Now we are done with odd pages. Unfortunately (or fortunately) we now need to do the same for even pages.
  8. Scroll to the second page.
  9. Activate headers frame. Double-click it.
  10. Add Page number. Choose menu Insert - Variable - Page Number.
  11. Add Page count. Choose menu Insert - Variable - Page Count.
  12. Format text, for example centre it and add some constant text (2 of 5). You can use your usual technique here.

AbiWord

General technique for AbiWord is the same as for OOo Writer. But menu paths and approach is slightly different.
  1. Insert Page number. Choose menu Insert - Page Number. You should get a pop-up window. Here you can specify where you want to see your page number: top or bottom; left, right or centre. As a result, system will automatically create frame for header or footer, put page number into the frame and position it. It's easy, isn't it? But I also need page count to be there.
  2. So I continue...
  3. Activate header frame. Double-click it near the page number.
  4. Insert Page count. Choose menu Insert - Field... In the new window select Numbers - Number of Pages.
  5. Format text, for example centre add some constant text (1 of 6). You can use your usual technique here. You can see that AbiWord counted 6 pages in my document whereas other text processors only found 5. That is because AbiWord creates bigger frame for the header. Bigger header means less space for main text, so some text got wrapped to page 6.
Update: If you want to see video recordings with above mentioned HowTo's, please follow the link.

Do you like this post? Do you want to support this blog? Please consider Buying Linux CDs for financial support, or simply subscribe FOR FREE for moral support.

0 comments:

Post a Comment