"Float within a frame" challenge
![](https://secure.gravatar.com/avatar/1c0017b4673bc3d3cda8df7597fa84ee.jpg?s=120&d=mm&r=g)
Hi, I am trying to accomplish the following layout with ConTeXt: - An icon and a descriptive text should be contained together in a separate frame - The frame should be centered and have a special background color - Within the frame, the icon should be placed to the upper left. - A descriptive text should "flow" around the icon within the frame, first part to the right and then below the icon. I have tried the following construct: %---------------------- \startframedtext \placefigure[left]{none}{\externalfigure[danger]} The textual description of the icon comes here. It should ideally flow to the right of the figure within the frame, but the figure actually becomes behind the text. \stopframedtext %---------------------- The problem here is that the icon and text is placed on top of each other. When removing the frame (\startframedtext command), the placement of the figure and the text works OK, but I don't get a frame then of course. I have studied the "It's in the details" document which explains a great deal about float's, but I haven't found anything covering the frame issue. Is the "startframedtext" the wrong command to use? All hints or suggestions (like references to other tutorials) are very welcome. Best regards, Tommy Jensen
![](https://secure.gravatar.com/avatar/93131e1e6e2204bd13501390d768dbdc.jpg?s=120&d=mm&r=g)
On Mon, Sep 1, 2008 at 10:18 PM, B. Tommy Jensen
Hi, I am trying to accomplish the following layout with ConTeXt:
- An icon and a descriptive text should be contained together in a separate frame - The frame should be centered and have a special background color - Within the frame, the icon should be placed to the upper left. - A descriptive text should "flow" around the icon within the frame, first part to the right and then below the icon.
I have tried the following construct:
%----------------------
\startframedtext \placefigure[left]{none}{\externalfigure[danger]}
The textual description of the icon comes here. It should ideally flow to the right of the figure within the frame, but the figure actually becomes behind the text. \stopframedtext
%----------------------
The problem here is that the icon and text is placed on top of each other.
When removing the frame (\startframedtext command), the placement of the figure and the text works OK, but I don't get a frame then of course.
I have studied the "It's in the details" document which explains a great deal about float's, but I haven't found anything covering the frame issue.
Is the "startframedtext" the wrong command to use? All hints or suggestions (like references to other tutorials) are very welcome.
http://archive.contextgarden.net/message/20080624.074046.56e76622.en.html Wolfgang
![](https://secure.gravatar.com/avatar/5a39f1335b6eff433673ed987859fb24.jpg?s=120&d=mm&r=g)
Am 2008-09-02 um 08:26 schrieb Wolfgang Schuster:
http://archive.contextgarden.net/message/20080624.074046.56e76622.en.html
Never knew that myself. Wikified it: http://wiki.contextgarden.net/Using_Graphics#Flow_text_around_a_picture Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer)
![](https://secure.gravatar.com/avatar/c5ae4f9aa0d3a9bd5376e92b322c3e50.jpg?s=120&d=mm&r=g)
On Tue, 2 Sep 2008, Henning Hraban Ramm wrote:
Am 2008-09-02 um 08:26 schrieb Wolfgang Schuster:
http://archive.contextgarden.net/message/20080624.074046.56e76622.en.html
Never knew that myself. Wikified it: http://wiki.contextgarden.net/Using_Graphics#Flow_text_around_a_picture
I tried to add the typeset example on the wiki, but the figure cow is missing. There are a few examples on the wiki that use cow.pdf put we have a missing figure in the output. http://wiki.contextgarden.net/Dotted_number_in_caption http://wiki.contextgarden.net/Figures_in_Headings Is there an easy way to include cow.pdf in the search path in the wiki? Aditya
![](https://secure.gravatar.com/avatar/1c0017b4673bc3d3cda8df7597fa84ee.jpg?s=120&d=mm&r=g)
On Tue, 02 Sep 2008 20:46:28 +0200, Henning Hraban Ramm
Am 2008-09-02 um 08:26 schrieb Wolfgang Schuster:
http://archive.contextgarden.net/message/20080624.074046.56e76622.en.html
Never knew that myself. Wikified it: http://wiki.contextgarden.net/Using_Graphics#Flow_text_around_a_picture
Thanks for the updated documentation. Another tricky question with \starthangaround: If the text following the picture is very short, e.g. the text height is much less than the picture height, the next paragraph is placed below the picture, e.g. the "hanging" paragraph does not get its correct height. It seems that the height is calculated based on the text height only, not the picture. Is there a clever commmand/option that can compensate for this? Best regards, Tommy Jensen
participants (4)
-
Aditya Mahajan
-
B. Tommy Jensen
-
Henning Hraban Ramm
-
Wolfgang Schuster