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.

Remove hyphens from page number | page number format / style

Postby madharrison on Tue Apr 06, 2021 10:27 pm

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.
Jr. Propeller Head
Posts: 4
Joined: Tue Mar 23, 2021 5:36 pm

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

Postby robdocsmith on Wed Apr 07, 2021 4:29 pm

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

Propeller Head
Posts: 98
Joined: Thu May 24, 2018 3:11 pm

Return to Printed Documentation Targets

Who is online

Users browsing this forum: No registered users and 11 guests