[NTG-context] poem as a sidefloat

Wolfgang Schuster wolfgang.schuster.lists at gmail.com
Wed Sep 25 22:10:19 CEST 2019


Henning Hraban Ramm schrieb am 25.09.2019 um 21:37:
> The following works, except:
> - There’s too much space (2 lines?) within the frame before the poem.
Use the framedtext environment.
> - I’d like to insert some space below the float, spaceafter doesn’t work.
You nee sidespacebefore/after but you can only set it for *all* floats.

\definefloat [poem]

% \setupfloat
%   [sidespacebefore=medium]

\setupfloat
   [poem]
   [background=color,
    backgroundcolor=cyan]

\setupcaption
   [poem]
   [number=none]

\starttext

\dorecurse{2}{\samplefile{knuth}}

\startplacefloat [poem] [location=left]
   \startframedtext [frame=off,width=fit,offset=0.25ex]
     \startlines [style=mono]
     lichtung

     manche meinen
     lechts und rinks
     kann man nicht
     velwechsern.
     werch ein illtum!
     \wordright{ernst jandl}
     \stoplines
   \stopframedtext
\stopplacefloat

\dorecurse{2}{\samplefile{knuth}}

\stoptext

Wolfgang



More information about the ntg-context mailing list