No new paragraph after framedtext
![](https://secure.gravatar.com/avatar/81be3e315be6c98ad1a57d83e9a9f7a7.jpg?s=120&d=mm&r=g)
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.
![](https://secure.gravatar.com/avatar/d0e94fb08d4620cfbd2f8f59a7868637.jpg?s=120&d=mm&r=g)
On 07/05/2014 01:07 PM, Flavien Lambert wrote:
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?
\hbox{\framedtext[width=6em]{abc}\framedtext[width=6em]{abc}} is the easiest solution. Thomas
![](https://secure.gravatar.com/avatar/b79687264c3e06cba13b54d05b12a9f5.jpg?s=120&d=mm&r=g)
Am 05.07.2014 um 13:07 schrieb 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).
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
participants (3)
-
Flavien Lambert
-
Thomas A. Schmitz
-
Wolfgang Schuster