* Two \framed texts, one below the other
@ 2010-06-14 22:56 Marcin Borkowski
2010-06-15 7:10 ` Taco Hoekwater
0 siblings, 1 reply; 4+ messages in thread
From: Marcin Borkowski @ 2010-06-14 22:56 UTC (permalink / raw)
To: Mailing list for ConTeXt users
Hi all!
When I say
\framed{a}
\framed{b}
there is some space between frames. How can I turn it off?
I want to say something like
\framed[bottomframe=off]{top left \hss top right}
\framed[topframe=off]{center}
to get
+----------------------------------------------+
|top left top right|
| |
| center |
| |
| |
+----------------------------------------------+
Is there a better way to do something like this?
Regards
--
Marcin Borkowski (http://mbork.pl)
___________________________________________________________________________________
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] 4+ messages in thread
* Re: Two \framed texts, one below the other
2010-06-14 22:56 Two \framed texts, one below the other Marcin Borkowski
@ 2010-06-15 7:10 ` Taco Hoekwater
2010-06-15 8:20 ` Marcin Borkowski
0 siblings, 1 reply; 4+ messages in thread
From: Taco Hoekwater @ 2010-06-15 7:10 UTC (permalink / raw)
To: mailing list for ConTeXt users
Marcin Borkowski wrote:
> Hi all!
>
> When I say
>
> \framed{a}
> \framed{b}
>
> there is some space between frames. How can I turn it off?
\starttext
\offinterlineskip
\framed[bottomframe=off,width=5in]{top left \hfill top right}
\framed[topframe=off,width=5in]{center}
\stoptext
>
> Is there a better way to do something like this?
Depending on your actual use case, layers or a table may be more
suited than \framed.
Best wishes,
Taco
___________________________________________________________________________________
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] 4+ messages in thread
* Re: Two \framed texts, one below the other
2010-06-15 7:10 ` Taco Hoekwater
@ 2010-06-15 8:20 ` Marcin Borkowski
2010-06-15 8:35 ` Taco Hoekwater
0 siblings, 1 reply; 4+ messages in thread
From: Marcin Borkowski @ 2010-06-15 8:20 UTC (permalink / raw)
To: mailing list for ConTeXt users
Dnia Tue, Jun 15, 2010 at 09:10:40AM +0200, Taco Hoekwater napisał(a):
> Marcin Borkowski wrote:
> >Hi all!
> >
> >When I say
> >
> >\framed{a}
> >\framed{b}
> >
> >there is some space between frames. How can I turn it off?
>
> \starttext
> \offinterlineskip
> \framed[bottomframe=off,width=5in]{top left \hfill top right}
> \framed[topframe=off,width=5in]{center}
> \stoptext
Thanks! Of course, \nointerlineskip between two \framed commands works,
too.
> >Is there a better way to do something like this?
>
> Depending on your actual use case, layers or a table may be more
> suited than \framed.
OK, so now I have a question: what am I doing wrong?
\starttext
\definelayer[lyr][width=\overlaywidth,height=\overlayheight,preset=lefttop]
\defineoverlay[ovl][lyr][overlay]
\framed[width=10cm,height=4cm,background=ovl]{Framed text}
\stoptext
I want to have something like this:
+-----------------------+
|overlay |
| Framed text |
| |
+-----------------------+
>
> Best wishes,
> Taco
Regards
--
Marcin Borkowski (http://mbork.pl)
People can be divided into 10 groups: those who like the binary system
and those who don't.
___________________________________________________________________________________
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] 4+ messages in thread
* Re: Two \framed texts, one below the other
2010-06-15 8:20 ` Marcin Borkowski
@ 2010-06-15 8:35 ` Taco Hoekwater
0 siblings, 0 replies; 4+ messages in thread
From: Taco Hoekwater @ 2010-06-15 8:35 UTC (permalink / raw)
To: mailing list for ConTeXt users
Marcin Borkowski wrote:
> Dnia Tue, Jun 15, 2010 at 09:10:40AM +0200, Taco Hoekwater napisał(a):
>> Marcin Borkowski wrote:
>>> Hi all!
>>>
>>> When I say
>>>
>>> \framed{a}
>>> \framed{b}
>>>
>>> there is some space between frames. How can I turn it off?
>> \starttext
>> \offinterlineskip
>> \framed[bottomframe=off,width=5in]{top left \hfill top right}
>> \framed[topframe=off,width=5in]{center}
>> \stoptext
>
> Thanks! Of course, \nointerlineskip between two \framed commands works,
> too.
>
>>> Is there a better way to do something like this?
>> Depending on your actual use case, layers or a table may be more
>> suited than \framed.
>
> OK, so now I have a question: what am I doing wrong?
This works :
\starttext
\definelayer[lyr][width=\overlaywidth,height=\overlayheight]
\defineoverlay[ovl][{\directsetup{lyr}\tightlayer[lyr]}]
\startsetups lyr
\setlayer[lyr][preset=lefttop]{left top}
\setlayer[lyr][preset=righttop]{right top}
\stopsetups
\framed[width=10cm,height=4cm,background=ovl]{Framed text}
\stoptext
* It is important to have the \setlayer commands as part of
the overlay definition (hence \directsetup) because otherwise
\overlaywidth and \overlayheight have the wrong values.
Best wishes,
Taco
___________________________________________________________________________________
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] 4+ messages in thread
end of thread, other threads:[~2010-06-15 8:35 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-14 22:56 Two \framed texts, one below the other Marcin Borkowski
2010-06-15 7:10 ` Taco Hoekwater
2010-06-15 8:20 ` Marcin Borkowski
2010-06-15 8:35 ` Taco Hoekwater
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).