[NTG-context] frames within frame

Wolfgang Schuster schuster.wolfgang at googlemail.com
Wed Apr 6 18:36:50 CEST 2011

Am 06.04.2011 um 18:11 schrieb Reviczky, Adam:

> Hi
> If I have two frames within one frame, how can I vertically align the first (well, or both) framed to top or middle.
> Here's a minimal example:
> \starttext
> \framed[strut=no,height=fit,framecolor=green,background=screen,backgroundscreen=.80]
> {\framed[height=fit,width=100pt,background=screen,backgroundscreen=.90,frame=on,autowidth=force,align=middle]{first box wants to be on top/middle}
> \framed[offset=none,height=100pt,width=100pt,background=screen,backgroundscreen=.90,frame=on]{second box}}
> \stoptext
> So here the second framed defines the hight, and the first framed is on the bottom of the "big outer" frame.
> All I want is to have the first box on top or middle respectively.
> I've tried location, but that didn't work.

You need “location=middle” for the *inner* frames.


More information about the ntg-context mailing list