[NTG-context] Floating Figure in framed-environment

Ursula Hermann ursula.hermann at univie.ac.at
Wed Oct 19 13:52:33 CEST 2022

Dear Oliver, 

maybe something like this? 
This is my example: 



  [yes, small]


   indenting={yes, small},
   background=color, backgroundcolor=lightgreen,
   foreground=color, foregroundcolor=black,


  The Earth, as a habitat for animal life, is in old age and has a fatal
  illness. Several, in fact.

  It would be happening whether humans had ever evolved or not.

{Stephanus Church.}

Below, we have two separate columns; but up here, for the nonce, we have but
the one.

\startcolumns [n=2]
  Text, text, text \dots
  all in the first column
  Words, words, words \dots
  all in the second column.
  And look ye here! Even more words!


Many regards

-----Ursprüngliche Nachricht-----
Von: ntg-context <ntg-context-bounces at ntg.nl> Im Auftrag von Oliver Sieber via ntg-context
Gesendet: Mittwoch, 19. Oktober 2022 11:31
An: ntg-context at ntg.nl
Cc: Oliver Sieber <context-ml at privly.pm>
Betreff: [NTG-context] Floating Figure in framed-environment

Dear ConTeXt Users

I am relatively new to context and I am suffering with a problem with the framed environment.

I want to use a framed textbox for Definitions in my script. I also want to use floating figures.  But this does not work and I haven’t found out why. Maybe I totally use it the wrong way. I would appreciate if someone could help me or has a tipp.

Here is an example code, where the figure does not behave as expected, i.e. the figure is behind the text:

\framed[corner=round, rulethickness=2pt, width=\textwidth, align=flushleft, offset=1em,background=color,framecolor=black]
{{\bf Definition: Hello World} \blank[medium] 

\placefigure[right, none]{This is an example of a logo.}{\externalfigure[dummy]}

Carrot cake tiramisu lollipop dragée lollipop marshmallow carrot cake sweet pastry. Tiramisu danish jelly tootsie roll tart gummi bears. Carrot cake chupa chups cake wafer lemon drops lemon drops tiramisu. Chocolate lemon drops sugar plum cheesecake jelly beans sugar plum. Tootsie roll cupcake jujubes pie chocolate bar bear claw chupa chups shortbread. Candy candy canes jelly-o jelly beans sugar plum muffin danish donut. Bonbon lemon drops powder jujubes marshmallow biscuit halvah. Powder carrot cake caramels chocolate cake carrot cake jelly-o. Topping danish tootsie roll gummi bears oat cake jujubes. Sweet candy canes cotton candy pie topping. Jelly-o carrot cake ice cream lemon drops macaroon gummies lemon drops tiramisu chocolate cake. Cupcake sugar plum shortbread gummi bears tootsie roll. Chocolate cake sugar plum macaroon candy canes chocolate bar donut cake icing tootsie roll.

Best regards
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context at ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net

More information about the ntg-context mailing list