Remove hyphens from page number | page number format / style

This forum is for all Flare issues related to PDF, eBook, Microsoft Word, Adobe FrameMaker, XPS, and XHTML book targets.
Post Reply
madharrison
Jr. Propeller Head
Posts: 9
Joined: Tue Mar 23, 2021 5:36 pm

Remove hyphens from page number | page number format / style

Post by madharrison »

Hi there,

In my page layout, I added a page number variable to the footer.

The page number displays as: -x-
So if I was on page 5, the page number would display as: -5-

How can I remove the hyphens and add 'Page' before the number? So instead of -5-, I'd like it to display as Page 5.

Thank you.
robdocsmith
Sr. Propeller Head
Posts: 248
Joined: Thu May 24, 2018 3:11 pm
Location: Queensland, Australia

Re: Remove hyphens from page number | page number format / s

Post by robdocsmith »

Are you using the standard System.PageNumber variable? The default System.PageNumber variable doesn't include hyphens. For example, I use it in my footer like this:

<p class="footertext">Page <MadCap:variable xhtml:name="System.PageNumber" /></p>

The type of Page numbering itself is defined in the TOC Editor. Check that in the Printed Output section for a document in your TOC, the Page Number section isn't specifying adding hyphens (for example in my docs I use chapter numbering so I have the string "{chapnum}-{n}" and the format is set to text. The final page number in the footer looks like "Page 6-12").

Rob
Post Reply