ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Henning Hraban Ramm <texml@fiee.net>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: poem as a sidefloat
Date: Wed, 25 Sep 2019 19:35:06 +0200	[thread overview]
Message-ID: <C506D3B4-5585-4CB9-862A-64AC183DEDBC@fiee.net> (raw)

Hi, I’d like to have a small poem beside my text.
My approach doesn’t work, with or without \framed:

Since I need this only once, I thought I don’t need to define or setup my own float.

\setupfloat inherits from \setupframed, but the parameters width, style and background(color) don’t work.
Aren’t they supposed to work in \startplacefloat?

How can I suppress the caption? ("none" is supposed to work with \placefloat, but at least doesn’t in \startplacefloat)

With or without framed, vbox and lines didn’t change much. (Of course \framed adds a frame, but the text isn’t within).


\starttext

\dorecurse{2}{\input knuth}

\startplacefloat[
  title=none, % doesn’t work
  numbering=no, % wrong
  location=left,
  width=.33\textwidth, % doesn’t work
  style=\tt, % doesn’t work
  background=color,backgroundcolor=cyan, % doesn’t work
]%
%\framed[
%  width=.33\textwidth,
%  style=\tt,
%  background=color,backgroundcolor=yellow,
%]{\vbox{%
\startlines
lichtung

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

\dorecurse{2}{\input knuth}

\stoptext



Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD

___________________________________________________________________________________
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 17:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-25 17:35 Henning Hraban Ramm [this message]
2019-09-25 18:45 ` Wolfgang Schuster
2019-09-25 19:37   ` Henning Hraban Ramm
2019-09-25 20:10     ` Wolfgang Schuster
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=C506D3B4-5585-4CB9-862A-64AC183DEDBC@fiee.net \
    --to=texml@fiee.net \
    --cc=ntg-context@ntg.nl \
    /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).