Skip to main content
1-Visitor
December 9, 2014
Question

blank page and chapter page counter

  • December 9, 2014
  • 14 replies
  • 4502 views

I have a doc made up of chapters that require individual LOEPs and Total Page count on the first page of each chapter. For some reason, these are only working correctly when the chapter has only recto and verso pages. If a chapter has any blank page in it, the total page count does not increment correctly and the blank pages don't show up in the leop. EXCEPT for the last chapter in the doc which works correctly. That's got to be a clue to what I'm doing wrong!but I just can't find the error.


I've got two page total counters:


<counter initial="0" enumid="totalpagect">
<counter initial="0" enumid="chpagect">


The totalpagect for the doc is always correct and the frontmatter leop is working fine. I have these page counters incrementing in all the pages in the body pageset including the blank page.


I am using a TIV in each page to capture the loep information for each chapter:


<savetext textid="chlep.tiv" conrule="&lt;newline">,folio[BO],dotfill,1pi,</newline>" placemnt="after" append="1">


The TIV is defined with a chapter scope: <stringdecl textid="chlep.tiv" status="1" scope="chapter">


If I change the scope for the chpagect string to doc instead of chapter, I can pull everything into a full document loep just fine including all the blanks.


The body pageset uses a recto, verso, rectobb, and blank. The page numbering on all pages is working fine. If we had to, we could manually tag the loep stuff for each chapter, but I really need to get the chapter page count working!


Thanks in advance for any help!


KM

    14 replies

    kmccain1-VisitorAuthor
    1-Visitor
    April 17, 2015

    So I've run into a problem with this again. When I have a chapter with only one page of text (followed by a blank), I again don't get the correct chapter page count (it counts only the text page and not the blank), and I also don't get the Page/Blank Page page number in my footer.


    I suspect this has something to do with my pageset. I had to add in a second recto page to capture page ranges for each chapter loep,so I now have this: recto1, recto2,verso, rectobb, blank page set. The loep page range also doesn't work with a one-page chapter.


    Any suggestions??

    1-Visitor
    April 20, 2015
    The solution is the same as before. Two counters, one initialized to 0 for the current page number, the other to 1 for the next page number. On the rectobb page model, save the next page number. On the other page models, save the current page number.
    Good luck!
    Suzanne Napoleon
    www.FOSIexpert.com"WYSIWYG is last-century technology!"



    kmccain1-VisitorAuthor
    1-Visitor
    April 23, 2015

    The strange thing is that I was able to get the page count total and lep to work but only by adding the savetexts to the first recto page. I still get no blank page footer. It seems like the FOSI doesn't see the first page in a single page chapter as a rectobb page at all, but as the recto1 page instead. The rectobb stuff only gets called if there is a 2nd recto page in the chapter. I ended up having to add the blank page number footer in the composed PDF to get the TM out the door.


    There must be some way to make this work, but it will take more experimentation I guess.

    1-Visitor
    April 24, 2015
    The attached PDF shows how to code a FOSI to identify page models for debugging purposes. An ACL variable controls whether the debugging information is output.
    Please let me know any questions or comments.
    Thanks!
    Suzanne Napoleonwww.FOSIexpert.com"WYSIWYG is last-century technology!"