Re: Line spacing in Jade

Subject: Re: Line spacing in Jade
From: Daniel Speck <dspeck@xxxxxxxxxxxx>
Date: Tue, 02 Sep 1997 16:51:06 -0400
Chris Maden wrote:
> (Really, what I should do
> is write a function that always correlates font-size and
> line-spacing...
> (define (scale-lines scale-factor)
>         font-size: (* (inherited-font-size) scale-factor)
>         line-spacing: (* (inherited-line-spacing) scale-factor))
> (element title (make paragraph
>                      font-weight: 'bold
>                      (scale-lines 2)))
> Hmm... except that doesn't work.  Can a procedure give multiple
> characteristic names and values?)

I think you need to use the quasi-quotation mechanism described in
section of the standard. I have tried to do this but without success:

(element title
	`(make paragraph

where (scale-lines) is defined as:

(define (scale-lines)
	`(font-size: ,(* (inherited-font-size) 2)
          line-spacing: ,(* (inherited-line-spacing) 2))

So, does anyone else have an idea of how to go about specifying
characteristics in a (make ...) expression using a list instead of
specifying each characteristic explicitly in the (make ...)?


Daniel Speck                              e-mail: dspeck@xxxxxxxxxxxx
Research Engineer                          voice:     +1 301.548.7818
Thomson Technology Services Group            fax:     +1 301.527.4094
1375 Piccard Drive, Rockville, MD 20850      WWW:

 DSSSList info and archive:

Current Thread