This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Changing PDF bookmarks


camille writes:

> Could someone please point me to the customization to change the way PDF
> bookmarks for chapter are generated?

dbcompon.dsl:

(define ($component-title$)
 .
 .
 .
    (make sequence
      (make paragraph
        font-family-name: %title-font-family%
        font-weight: 'bold
        font-size: (HSIZE 4)
        line-spacing: (* (HSIZE 4) %line-spacing-factor%)
        space-before: (* (HSIZE 4) %head-before-factor%)
        start-indent: 0pt
        first-line-start-indent: 0pt
        quadding: %component-title-quadding%
        heading-level: (if %generate-heading-level% 1 0)
        keep-with-next?: #t

        (if (string=? (element-label) "")
            (empty-sosofo)
            (literal (gentext-element-name-space (current-node))
;                     ^^^ "Chapter "
                     (element-label)
;                     ^^^ "1"
                     (gentext-label-title-sep (gi))))
;                     ^^^ ". "

The best solution would probably be to refactor this into a
locale-specific format string for each component type.

-- 
Peter Eisentraut   peter_e@gmx.net


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]