[NTG-context] No new paragraph after framedtext

2014-07-05 Thread Flavien Lambert
Dear all, I was wondering if there was a way to avoid a new paragraph after
a framed text. For example, the following code

\starttext
\framedtext[width=6em]{abc}\framedtext[width=6em]{abc}
\stoptext

produces two boxes on top of each other. Is it possible to make them side
by side?

I could use a table but I would like to keep the possibility of playing
with the framebox size as much as I want (like a patchwork of boxes of
different sizes that would span part of the pages).

Best,
Flavien.
___
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
___

Re: [NTG-context] No new paragraph after framedtext

2014-07-05 Thread Wolfgang Schuster

Am 05.07.2014 um 13:07 schrieb Flavien Lambert petit.lep...@gmail.com:

 Dear all, I was wondering if there was a way to avoid a new paragraph after a 
 framed text. For example, the following code
 
 \starttext
 \framedtext[width=6em]{abc}\framedtext[width=6em]{abc}
 \stoptext
 
 produces two boxes on top of each other. Is it possible to make them side by 
 side?
 
 I could use a table but I would like to keep the possibility of playing with 
 the framebox size as much as I want (like a patchwork of boxes of different 
 sizes that would span part of the pages).

Add \dontleavehmode before the first \framedtext.

\starttext
\dontleavehmode\framedtext[width=6em]{abc}\framedtext[width=6em]{abc}
\stoptext

When you want more control about the horizontal placement put them in a line 
alignment environment:

\starttext
\startlinealignment[middle]
  \framedtext[width=6em]{abc}\framedtext[width=6em]{abc}
\stoplinealignment
\stoptext

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
___