[NTG-context] colored box background

Hans Hagen pragma at wxs.nl
Fri Jul 14 12:07:01 CEST 2006

Hans van der Meer wrote:
> Say I have a box, e.g. \setbox\thebox=\vbox{....} with dimensions 
> \wd\thebox etc.
> What then is the most efficient and economic (in terms of complexity 
> and speed) way to generate a colored background for it?�
> I know I can use \framed, but this I wish to avoid because it seems 
> overly complex for this simple task and may have side effects in terms 
> of alignment issues.
> Is the best perhaps using a metapost graphic? and if so, what is best 
> MPgraphic, useMPgraphic, reuseMPgraphic, etc.?

                                          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