Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a document (docA) with arabic page numbers in the header. Now docA is part of a thesis which has roman numbers in the footer.

So I want to add roman page numbers to docA. This is no problem. But now I want to adjust the numbering of the roman numbers (as the thesis has lets say five pages). This is what I want:

  • arabic page numbers in the header, starting at 1
  • roman page numbers in the footer, starting at VI

I tried this: I choosed 'Page Number', 'Page Number Format' and tried to adjust the starting point. However, this changes both page numbers.

How is it possible to have different numbering in the header and in the footer?

share|improve this question

1 Answer 1

up vote 5 down vote accepted

You can do this using field codes.

Press Alt+F9 to toggle displaying the field code and the calculated value. You'll notice that when you insert a page number, it's actually { PAGE }.

Note that the curly braces { } can't be typed, they must be inserted using Ctrl+F9.

What we need to do is use a formula. You want to offset the number by 5, so you want something like:

{ = { PAGE } + 5 \*ROMAN }

To insert this:

  1. Press Ctrl+F9 twice to get { { } }

  2. Type PAGE inside the inner braces

  3. Type the = between the first two (opening) braces

  4. Type + 5 \*ROMAN between the last two (closing) braces

  5. Press Alt+F9 to view the result


Explanation:

The = denotes a formula field. It's similar to an Excel formula, though a little more basic.

The { PAGE } inserts the current page number into the formula - the inner field is calculated first. If you were on the first page, the formula field would see something like { = 1 + 5 \*ROMAN }. If PAGE were not denoted as a field code by enclosing it in braces, you insert the text PAGE into the formula field which interprets that as a bookmark.

The addition should be obvious.

The \* specifies the displayed format. ROMAN means upper case Roman numerals, roman means lower case Roman numerals. It defaults to Arabic numerals if you don't specify a format.

share|improve this answer
    
Thanks for your fast answer. Works perfect. Sorry, I can't upvote your answer, as I have not enough reputation to do so. –  user1251007 Jul 6 '12 at 8:39

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.