Skip to main content
Michael314
Inspiring
April 22, 2014
Question

need more flexible system variables

  • April 22, 2014
  • 2 replies
  • 461 views

Hi,

I looked through several discussions of variables but did not find what I was looking for. I wanted a page # variable for the front matter and then a page # of # for the rest of the manual.

Framemaker 7.0 defines 12 running H/F system variables plus a few others for page numbers but you are limited as to how you can edit them. For example, I was trying to make a variable that displayed current page only. None of the running H/F variables offers a building block called <$curpagenum>.

I have a system variable called Current Page # and I was able to edit it down to just the Page #. I also have two other variables called Page x of x and Page xxx of xxx but they act like user variables. Any editing of their building blocks screws them up. Plus I don't know where they came from, unless from the original installation.

Any suggestions?

Yours,

Michael F

=========

This topic has been closed for replies.

2 replies

Arnis Gubins
Inspiring
April 22, 2014

Note: the <$lastpagenum> building block refers to the last page number of the current document. If you want to use the last page number of the book, you have to use a cross-reference to the last page and create a paragraph that uses that page's current page number.

Bob_Niland
Community Expert
Community Expert
April 22, 2014

> ... <$lastpagenum> building block refers to the last page number of the current document.

Thanks for pointing that out. It will work fine for a monolithic document, and avoids the complexity of an Xref and target para tag.

> ... use a cross-reference to the last page ...

That is in fact how we do it when need the last pagenum. The back matter is a separate component file in the book, with the last para being a unique format, in invisible text color,  that also maps in our standard back cover MP.

Bob_Niland
Community Expert
Community Expert
April 22, 2014

Typically, doing this is simple:

  1. For the front matter, either put those pages in their own component file of a Book, or use custom Master Pages that are mapped by Apply Master Pages, triggered by paragraph formats unique to the front matter content.
  2. The front matter MPs would have just system variable <$curpagenum> ("Current Page #") in a background text frame.
  3. For the main body pages, use default Left/Right and/or custom MPs as needed, and put "Page "<$curpagenum>" of "<$lastpagenum>" ("Page Count") in the background text frames.

In neither case do you need to create a new variable. Just insert the plain text and system vars as needed.

Using book format simplifies the MP use, and also provides the capability to use different numbering schemes. For example, the front matter could be roman numeral starting with "i", and the body pages arabic starting with "1".