"If" field code referencing a page # that includes chapter #

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

In order to omit a page header on the first page, but not use "first page different", I use a field code
{If {Page} > 1 {STYLEREF "Heading 1"} ""
This works fine, however when my page numbers are set to include chapter numbers then the value of {Page} on page one is either 1-1, 2-1, 3-1, 4-1, etc. ("Heading 1" is linked to outline level 1)
All chapters are individual docs. The TOC is an individual doc that uses {REF} to get chapter items
Becuase I require the chapter number to be included in the page numbers, how do I build the equation?
{If {Page} > {{STYLEREF "Heading 1" \r}-1} {STYLEREF "Heading 1"} ""}????
I need a generic field code so that it can be reused in any chapter, but I can't get the test to work
HELP!!
 
FYI - Fixed
My problem was that I needed to remove the chapter number from {PAGE} before I tested the value
{IF {PAGE *\Arabic} > 1 "{STYLEREF "Heading 1" \r} - {STYLEREF "Heading 1"}" ""}.
 
Back
Top