* frames within frame
@ 2011-04-06 16:11 Reviczky, Adam
2011-04-06 16:36 ` Wolfgang Schuster
0 siblings, 1 reply; 3+ messages in thread
From: Reviczky, Adam @ 2011-04-06 16:11 UTC (permalink / raw)
To: ntg-context
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.
Adam
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: frames within frame
2011-04-06 16:11 frames within frame Reviczky, Adam
@ 2011-04-06 16:36 ` Wolfgang Schuster
0 siblings, 0 replies; 3+ messages in thread
From: Wolfgang Schuster @ 2011-04-06 16:36 UTC (permalink / raw)
To: mailing list for ConTeXt users
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.
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: frames within frame
@ 2011-04-06 16:41 Reviczky, Adam
0 siblings, 0 replies; 3+ messages in thread
From: Reviczky, Adam @ 2011-04-06 16:41 UTC (permalink / raw)
To: ntg-context
>> You need “location=middle” for the *inner* frames.
I'm so sure that I've tried that already, anyhow.
It works as expected, so thanks!
Adam
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-04-06 16:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-06 16:11 frames within frame Reviczky, Adam
2011-04-06 16:36 ` Wolfgang Schuster
2011-04-06 16:41 Reviczky, Adam
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).