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 8.3.2.7 of the standard. I have tried to do this but without success: (element title `(make paragraph ,@(scale-lines) (process-children))) 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 ...)? -dan -- 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: www.thomtech.com DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Line spacing in Jade, Chris Maden | Thread | Re: Line spacing in Jade, James Clark |
Re: Line spacing in Jade, Chris Maden | Date | Re: Line spacing in Jade, Frank Christoph |
Month |