Xymacro "PN" may not work properly with compose division by range

Just found that the xymacro "PN" may cause inconsistent result when compose the division by range. It is not alerted in the Xymacro manual.

For example: a division containing 6 pages. At the beginning of page 3, the <pn;4;1;1> inserted to change the page number on page 3 to "1" and the rest of the pages. If the "Compose Range for 2 pages" is executed on page 2, the page number of page 2 will be changed to "page 1" unintentionally.

Could anyone help to explain why it could happen.

Thank you

Parents
  • Yes, the "Page numbering error" message is not written to the job.log or job.worklog files unless you are using Auto Loose-leaf mode. If not, you will only see this message when you do Search > Find Errors (in loose-leaf mode you also see an '*' next to a page number in the loose-leaf manifest as well to indicate this error).

    Again, as I mentioned, since you are not also changing one of the %p1 through %p3 values at the same time as you are re-setting %p4 to 1 you are not really giving the page numbering logic a chance to work correctly (with the Range composition scenario).

    If you don't want to do anything more than what you are already doing with your described scenario, then I suggest that you have your operators always do a Whole Division compose.

    Another option would be to separate these different "sections" of the document into different divisions, and use Job Processing to put them together when you produce a PDF.

    Jonathan Dagresta
    RWS Group/
    XPP Development

  • Hi, Jonathan,

    Referring to the above Xyvision sample job, Xybase2, I try add in the section number with %p3 in the page number format as follows:

    1) In the PL table, recto1 and verso1, the frill block content changed from [folio] to [pgnum]

    2) In the ItemFormat table, the [pgnum] prestring changed as below:

       <la;15q>− <mc;%p3=0;nul;ri(%p3,%fmt3)><mc;%p1=0;nul;ri(%p1,%fmt1)><mc;(%p1=0)*(%p3=0);nul;ti(-)><mc;%p2=0;nul;ri(%p2,%fmt2)><mc;%p2=0;ri(%p4,an);ri(%p4,abc)> −

    3) In the Division ticket, Multi-part page "p3" changed to 1

    4) At the beginning of page 3, add in the macros as : <pn;3;2> and <pn;4;1>

    After whole compose, the page number shows 1-1, 1-2, 2-1, 2-2, 2-3.....

    However, if the the Range Compose is executed at page 2 and number of page = 2, the error still occurred that page number would be changed to "1-1"...

    As such, adding the %p3 section value does not help.

    We wish to know if there is any special macro to be set at the end of page 2 so that the page number can be frozen and it would not be affected by the <pn> macro.

    Thank you in advance.

Reply
  • Hi, Jonathan,

    Referring to the above Xyvision sample job, Xybase2, I try add in the section number with %p3 in the page number format as follows:

    1) In the PL table, recto1 and verso1, the frill block content changed from [folio] to [pgnum]

    2) In the ItemFormat table, the [pgnum] prestring changed as below:

       <la;15q>− <mc;%p3=0;nul;ri(%p3,%fmt3)><mc;%p1=0;nul;ri(%p1,%fmt1)><mc;(%p1=0)*(%p3=0);nul;ti(-)><mc;%p2=0;nul;ri(%p2,%fmt2)><mc;%p2=0;ri(%p4,an);ri(%p4,abc)> −

    3) In the Division ticket, Multi-part page "p3" changed to 1

    4) At the beginning of page 3, add in the macros as : <pn;3;2> and <pn;4;1>

    After whole compose, the page number shows 1-1, 1-2, 2-1, 2-2, 2-3.....

    However, if the the Range Compose is executed at page 2 and number of page = 2, the error still occurred that page number would be changed to "1-1"...

    As such, adding the %p3 section value does not help.

    We wish to know if there is any special macro to be set at the end of page 2 so that the page number can be frozen and it would not be affected by the <pn> macro.

    Thank you in advance.

Children
No Data