ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	Henning Hraban Ramm <texml@fiee.net>
Subject: Re: poem as a sidefloat
Date: Wed, 25 Sep 2019 22:10:19 +0200	[thread overview]
Message-ID: <4f7ba654-e2cb-19a2-7183-82c9fd5d5355@gmail.com> (raw)
In-Reply-To: <E7E95876-7962-4321-96B2-0DC8C964652A@fiee.net>

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

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2019-09-25 20:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-25 17:35 Henning Hraban Ramm
2019-09-25 18:45 ` Wolfgang Schuster
2019-09-25 19:37   ` Henning Hraban Ramm
2019-09-25 20:10     ` Wolfgang Schuster [this message]
2019-09-25 20:38       ` Henning Hraban Ramm

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4f7ba654-e2cb-19a2-7183-82c9fd5d5355@gmail.com \
    --to=wolfgang.schuster.lists@gmail.com \
    --cc=ntg-context@ntg.nl \
    --cc=texml@fiee.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).