This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: page break before each <sect1>?
- To: Norman Walsh <ndw at nwalsh dot com>
- Subject: Re: DOCBOOK-APPS: page break before each <sect1>?
- From: Dan York <dyork at e-smith dot com>
- Date: Thu, 12 Apr 2001 12:54:55 -0400
- Cc: docbook-apps at lists dot oasis-open dot org
- Organization: e-smith, Inc.
- References: <20010316092724.D21317@e-smith.com> <87puf6l8kw.fsf@nwalsh.com>
Norm,
By the way, making this change didn't work... adding the one line
break-before: 'page
Any other ideas?
Thanks,
Dan
On Sat, Mar 24, 2001 at 09:50:00PM -0800, Norman Walsh wrote:
> / Dan York <dyork@e-smith.com> was heard to say:
> | I'm putting together some courseware and I would like to have each
> | <sect1> start at the top of a new page. I've looked through the
>
> Try this in your customization layer:
>
> (define ($section$)
> (if (node-list=? (current-node) (sgml-root-element))
> (make simple-page-sequence
> page-n-columns: %page-n-columns%
> page-number-restart?: (or %page-number-restart%
> (book-start?)
> (first-chapter?))
> page-number-format: ($page-number-format$)
> use: default-text-style
> left-header: ($left-header$)
> center-header: ($center-header$)
> right-header: ($right-header$)
> left-footer: ($left-footer$)
> center-footer: ($center-footer$)
> right-footer: ($right-footer$)
> start-indent: %body-start-indent%
> input-whitespace-treatment: 'collapse
> quadding: %default-quadding%
> (make sequence
> ($section-title$)
> (process-children)))
> (make display-group
> space-before: %block-sep%
> space-after: %block-sep%
> start-indent: %body-start-indent%
> break-before: 'page
> (make sequence
> ($section-title$)
> (process-children)))))
>
> Be seeing you,
> norm
>
> --
> Norman Walsh <ndw@nwalsh.com> | Man is the only animal who causes
> http://www.oasis-open.org/docbook/ | pain to others with no other
> Chair, DocBook Technical Committee | object than wanting to do
> | so.--Schopenhauer
>
> ------------------------------------------------------------------
> To unsubscribe from this elist send a message with the single word
> "unsubscribe" in the body to: docbook-apps-request@lists.oasis-open.org
>
--
Dan York, Director of Training dyork@e-smith.com
Ph: +1-613-751-4401 Mobile: +1-613-263-4312 Fax: +1-613-564-7739
e-smith, inc. 150 Metcalfe St., Suite 1500, Ottawa,ON K2P 1P1 Canada
http://www.e-smith.com/ open source, open mind
------------------------------------------------------------------
To unsubscribe from this elist send a message with the single word
"unsubscribe" in the body to: docbook-apps-request@lists.oasis-open.org