← Prev in month ← Prev in thread
Next in thread → Next in month →

DOCBOOK-APPS: Page numbering in TOC when sect1 on new page

From
Dave Brooks, BCS Systems <>
Date
2001-08-23T23:47:48+00:00
ID
Thread
DOCBOOK-APPS: Page numbering in TOC when sect1 on new page
Hi,

I am getting sect1 (when role="screen") starting on a new page by using the 
following. However the page numbers are for the preceding page in the TOC.

openjade 1.3
pdfjadetex 3.11

Any suggestions


Thanks,

Dave

;; Start each sect1 on a new page when role="screen"
   (element sect1
     (make display-group
       space-before: %block-sep%
       space-after: %block-sep%
       start-indent: %body-start-indent%
       break-before: (if (and (attribute-string "role")
            (string=? (attribute-string "role") "screen")) 'page #f)
       (make sequence
         ($section-title$)
         (process-children)
       )
     )
   )
← Prev in month ← Prev in thread
Next in thread → Next in month →