|
Subject: Re: (dsssl) rules in headers/footers From: Tammy Fox <tfox@xxxxxxxxxx> Date: Wed, 7 Nov 2001 13:28:56 -0500 |
Curt,
Try this:
(define ($custom-header-footer$)
(let ((component (ancestor-member (current-node)
(append (division-element-list)
(component-element-list)))))
(make sequence
font-weight: 'bold
font-posture: 'upright
(make rule
orientation: 'horizontal
length: %text-width%
line-thickness: 1pt
start-indent: 0pt
space-before: (/ %block-sep% 4))
(literal "For internal use only"))))
(define (page-inner-footer gi)
(empty-sosofo))
(define (page-center-footer gi)
(cond
((equal? (normalize gi) (normalize "dedication")) (empty-sosofo))
((equal? (normalize gi) (normalize "lot")) (empty-sosofo))
((equal? (normalize gi) (normalize "part")) (empty-sosofo))
((equal? (normalize gi) (normalize "toc")) (empty-sosofo))
(else ($custom-header-footer$))))
--
Tammy
On Wed, Nov 07, 2001 at 09:08:07AM -0800, curt brune wrote:
> I'm targeting the tex backend (ultimately to make pdf). I am trying to use
> this construct for a horizontal rule in the footer:
>
> (define (page-center-footer gi)
> (make rule
> orientation: 'horizontal
> line-thickness: 0.5pt
> keep-with-next?: #t)
> )
>
> But I get this error message:
>
> flow object not accepted by port; only inline flow objects accepted
>
> Is there a way to "wrap" the rule inside another flow object that
> will be accepted by the port? Or do I need to change the port somehow to
> accept the rule? (Aside question is there a clear reference of all the
> flow object types, which ones are inline flow objects, what ports
> expect, etc? )
>
> Additionally I would like some text to appear beneath the rule. Naively I
> tried:
>
> (define (page-center-footer gi)
> (make rule
> orientation: 'horizontal
> line-thickness: 0.5pt
> keep-with-next?: #t)
> (literal "For internal use only")
> )
>
> Finally I do not understand your comment below, "Who said a rule had to be
> displayed?" . In what sense do you mean displayed? I do want the rule to
> be displayed on my final pdf document...
>
> I do appreciate your time spent reading my questions.
>
> Cheers,
> Curt
>
> > Date: Tue, 6 Nov 2001 09:03:29 +0100
> > From: "Christof Drescher" <drescher.lists@xxxxxxxxxxxx>
> >
> > Well, there are two things about it: The DSSSL standard allows for this
> > construct easily, as you can use e.g. the center header/footer to contain
> > the rule plus some text beneath and use the left and right footers just
> > normal. Who said a rule had to be displayed?!
> >
> > I don't know what the backends in OpenJade will do about it, sorry. Just
> > know it works since my pdf backend does it. ;)
> >
> > Christof
> >
> > - ----- Original Message -----
> > > Ideally I would like a horizontal rule that stretches over the top of the
> > > page-*-footer outputs. For example:
> > >
> > >
> > ____________________________________________________________________________
> > _
> > > (page-inner-footer) (page-center-footer)
> > (page-outer-footer)
> > >
> > >
> > > I'm guessing the same technique could be applied to headers as well,
> > though
> > > I am currently not interested in rules in the headers, but someone else
> > > propably is.
> > >
>
> --
>
> Curt Brune
> Stanford Linear Accelerator Center
> GLAST -- Flight Software Group
> http://www.slac.stanford.edu/exp/glast/daq
> curt@xxxxxxxxxxxxxxxxx
>
> DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: (dsssl) rules in headers/footer, curt brune | Thread | Re: (dsssl) rules in headers/footer, curt brune |
| Re: (dsssl) rules in headers/footer, curt brune | Date | Re: (dsssl) rules in headers/footer, curt brune |
| Month |