Skip to main content
Known Participant
April 14, 2008
Question

Automating detection of Odd/Blank Page in the footer

  • April 14, 2008
  • 7 replies
  • 1064 views
Hello,

I would like to know if there is a way to automate (e.g. variable) the footer within a chapter, so that whenever the chapter ends on an odd page, Framemaker will change the footer as such:

From: Page 9
To: Page 9/10 BLANK

Then, I would also like to have a blank page inserted at the tenth page.

Of course, it would be great if this could work for any odd number ending chapter.

Is this something that has to be done from within the Master Pages of FrameMaker, as in a template that would be applied against every chapter in a book? Or, can it be deployed at the book level to check and correct all odd number ending chapters?

Thanks for your input.

Regards,

Jim
    This topic has been closed for replies.

    7 replies

    April 4, 2009
    Known Participant
    April 18, 2008
    Hello Martin,

    Thanks for the response. Yes, I definitely need to look at the FDK for FM8 and FrameScripts in general. It sounds like there are a lot of possibilities. Thanks for your posting.

    Regards,

    Jim
    Known Participant
    April 18, 2008
    Hello Ken,

    Thanks for the posting - just noticed it now. I will try that approach and see how it works. Thanks for taking the time to write back. I appreciate it.

    Regards,

    Jim
    Known Participant
    April 18, 2008
    Hello,

    Sorry for getting back on this posting late. It has been a very busy week.

    Thanks for the advice Mr. Nielsen. That approach sounds like it will work, but I still need to have the footer on that odd page say display:

    From:

    100-9

    To:

    100-9/10 Blank

    The word / space and word Blank would be boiler plate. Is it possible to automatically have this done, based on whether the chapter ends on an odd page or not? Or, do I have to go to that odd page in each chapter and insert a variable or wordsmith that footer?

    Thanks again for the suggestions.

    Regards,

    Jim
    Legend
    April 15, 2008
    I've been meaning for a while now to post my thanks to Sheila, who gave a tip on this question some months back.

    My double-sided layouts now have a default Left master page for the intentionally-left-blank, and a master page imaginatively named realLeft for the others. I then set master-page usage (afaik, in one test document I then lazily copy through to others) to use realLeft for even pages, and when the pagination setting Make Page Count Even kicks in and adds a new page it automatically takes Left. (with, indeed, the correct page number)

    I tried with a special paragraph style and mapping master pages, but concluded - long enough ago to have forgotten why - that I felt more comfortable with the Make Page Count Even approach. Thanks for the tip, Sheila!
    Participating Frequently
    April 14, 2008
    You should be able to do this with a master page mapping table.

    This link (from Shlomo Perets) explains how to make Frame apply an
    "Intentionally Left Blank" master page to blank lefts
    (http://lists.frameusers.com/pipermail/framers/2008-March/011367.html),
    but the concept is the same, regardless of whether you want the message
    on your blank or not.

    For the chapter-ending right page, make a special right master page with
    an altered footer and set the table to apply this based on a special
    paragraph tag it will only find at the end of each chapter. Make it
    apply this special right for right pages and a regular left for left pages.

    I haven't figured out yet how to make the special right display
    currentpage+1, but if you could change the text to "Page 9/Next Page
    Blank" you'd be all set.

    --
    Kenneth Benson
    Pegasus Type, Inc.
    www.pegtype.com
    Participating Frequently
    April 14, 2008
    Hi Jim,

    This type of automation is easily accomplished using FrameScript or by writing a plug-in using the FDK (Frame Developers Kit). Developing in FrameScript is faster and easier, though you do need the FrameScript interpreter. If you go the FrameScript route, you will have access to a wide range of freely-available scripts from other FrameScript users and developers such as myself.

    You have several options. You could run a script against a book file that would automatically apply your last page preferences for every chapter in the book. You could also intercept FrameMakers save or document close event, in which case you could enforce your last-page preferences automatically as users save or close FrameMaker documents.

    You can check out my web site at http://www.golehtek.com for freely available scripts that run under FrameScript. Feel free to contact me off list if you would like any additional information.

    Best regards,

    Martin

    Martin R. Smith
    www.golehtek.com
    martin.smith@golehtek.com