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

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!!
 
G

Guest

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"}" ""}.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top