Re: (dsssl) rules in headers/footers

Subject: Re: (dsssl) rules in headers/footers
From: curt brune <curt@xxxxxxxxxxxxxxxxx>
Date: Wed, 07 Nov 2001 11:33:02 -0800
OK I started reading the ISO/IEC 10179:1996 spec.  I now see I need to choose 
an orientation that results in the rule being inlined, i.e. the orientation 
needs to be either "escapement" or "line-progression".  I tried using the 
following:

(define (page-center-footer gi)
    (make rule
      orientation: 'escapement
      length: 7in
      line-thickness: 1pt
    )
)

But I get a *vertical* rule in my footer, not a horizontal rule.  Sigh.  I
was encouraged that I figured out how to make an inline rule, too.  I also
tried it with an orientation of line-progression, but I get the same results.

Is there some other orientation that results in an "inlined, horizontal" rule?
I did not see any other characteristics that looked promising. 

Cheers,
Curt

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

-- 

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

Current Thread