[NTG-context] Quotations

Hans Hagen pragma at wxs.nl
Fri Mar 31 18:38:25 CEST 2006

Gerben Wierda wrote:
> I use \startquotation and \stopquotation a lot. I would like to  
> visually strengthen the quotations because some are pretty lengthy  
> and a reader might forget that it is not me that is writing here. I  
> have been thinking about applying a light grey background or a border  
> of sorts (which should then be open at the top of bottom if the  
> quotation flows over a page boundary. Can someone tell me how to do  
> this?
the following example (maybe one of the happy gwtex users can wikify it for you) shows the principles 

- cross page backgrounds
- dedicated background graphics that adapt 
- a bit of tuning of margins 




%    before={\blank[myquotation]\startnarrower},
%    after={\stopnarrower\blank[myquotation]},

  for i = 1 upto nofmultipars :
    multipars[i] := multipars[i]
        enlarged .5ExHeight
        rightenlarged -.5ExHeight;
    drawoptions (
        dashed evenly
        withpen pencircle scaled 1.5pt
    ) ;
    fill multipars[i] withcolor .8white ;
    if multilocs[i] = 1 :
            llcorner multipars[i] --
            ulcorner multipars[i] --
            urcorner multipars[i] --
            lrcorner multipars[i]
            withcolor .5red ;
    elseif multilocs[i] = 3 :
            ulcorner multipars[i] --
            llcorner multipars[i] --
            lrcorner multipars[i] --
            urcorner multipars[i]
            withcolor .5red ;
    else :
        draw leftboundary  multipars[i] withcolor .5red ;
        draw rightboundary multipars[i] withcolor .5red ;
    fi ;
  endfor ;



\input tufte

\dorecurse{10}{\input zapf }

\input davis



   \hbox to \wd\scratchbox
      \hss\incolortrue\localcolortrue\color[white]{\vrule height .6\ht\scratchbox depth 0pt width .1ex}\hss}%



                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl

More information about the ntg-context mailing list