Index: Force it to end on an even page?

This forum is for all Flare issues related to PDF, eBook, Microsoft Word, Adobe FrameMaker, XPS, and XHTML book targets.
Post Reply
TheWriteStuff
Jr. Propeller Head
Posts: 7
Joined: Mon Jun 23, 2014 7:11 am
Location: Gloucester, UK

Index: Force it to end on an even page?

Post by TheWriteStuff »

I'm fairly new to Flare, so am still getting to grips with it. My colleague has set up a document structure that includes an index, which is working fine. What I want to know is whether it is possible to force the index to end on an even page. In other words, if the index finishes on an odd page, can you force an extra page that includes the page header and footer without any other content?

Thanks.
kwag_myers
Propellus Maximus
Posts: 810
Joined: Wed Jul 25, 2012 11:36 am
Location: Ann Arbor, MI

Re: Index: Force it to end on an even page?

Post by kwag_myers »

Take a look at the Page Layouts section of Flare Help. I think what you're looking for is Empty Left or Empty Right.
"I'm tryin' to think, but nothin' happens!" - Curly Joe Howard
TheWriteStuff
Jr. Propeller Head
Posts: 7
Joined: Mon Jun 23, 2014 7:11 am
Location: Gloucester, UK

Re: Index: Force it to end on an even page?

Post by TheWriteStuff »

I've tried setting "Auto-end on 'left page" to "Enabled" for the index, but it doesn't make any difference. Is that what you were referring to?
kwag_myers
Propellus Maximus
Posts: 810
Joined: Wed Jul 25, 2012 11:36 am
Location: Ann Arbor, MI

Re: Index: Force it to end on an even page?

Post by kwag_myers »

No. I'm saying you need to add another page to your PageLayout. Open the PageLayout for your Index. If you don't have a separate PageLayout, you're going to need one. In the right pane is (most likely) a thumbnail page with N. Right-click in a blank area of that pane and go to Add Page > Empty Left Page. If your Index ends on the right, Flare inserts a blank page. If the Index ends on the left, then no blank page.
"I'm tryin' to think, but nothin' happens!" - Curly Joe Howard
TheWriteStuff
Jr. Propeller Head
Posts: 7
Joined: Mon Jun 23, 2014 7:11 am
Location: Gloucester, UK

Re: Index: Force it to end on an even page?

Post by TheWriteStuff »

The PageLayout for the Index already had an Empty Left Page defined. Unfortunately it doesn't seem to get used. From reading the Help, I get the impression that empty left pages are only injected to make sure the next section starts on a right-hand page. As the Index is the final section of the document, could that be why no empty left page is being injected?
kwag_myers
Propellus Maximus
Posts: 810
Joined: Wed Jul 25, 2012 11:36 am
Location: Ann Arbor, MI

Re: Index: Force it to end on an even page?

Post by kwag_myers »

I stumbled on a setting in the Target Editor that may help you. On the Advanced tab is a check box labeled: Inject empty pages as needed to ensure TOC nodes start on their selected pages. It might be worth a try.
"I'm tryin' to think, but nothin' happens!" - Curly Joe Howard
TheWriteStuff
Jr. Propeller Head
Posts: 7
Joined: Mon Jun 23, 2014 7:11 am
Location: Gloucester, UK

Re: Index: Force it to end on an even page?

Post by TheWriteStuff »

That setting is already selected. It works fine for adding an empty page at the end of sections that finish on an odd-numbered page, but doesn't add an empty even-numbered page at the end of the document.

It's not a big issue really, but it would have been a nice-to-have feature.
kwag_myers
Propellus Maximus
Posts: 810
Joined: Wed Jul 25, 2012 11:36 am
Location: Ann Arbor, MI

Re: Index: Force it to end on an even page?

Post by kwag_myers »

I was able to hack it by adding a paragraph containing a space below the output index proxy and adding a page break:

Code: Select all

    <body>
        <h1>Index</h1>
        <MadCap:indexProxy />
        <p style="page-break-before: always;"> </p>
    </body>
It's not automatic, but if you know the section ends on the left it works.
"I'm tryin' to think, but nothin' happens!" - Curly Joe Howard
TheWriteStuff
Jr. Propeller Head
Posts: 7
Joined: Mon Jun 23, 2014 7:11 am
Location: Gloucester, UK

Re: Index: Force it to end on an even page?

Post by TheWriteStuff »

Thank you for the suggested solution! That's the equivalent of adding a page break at the end of the index in Word, which is also a manual process. I'll give it a try. :)
Post Reply