From: Marcin Borkowski <mbork@amu.edu.pl>
To: ConTeXt mailing list <ntg-context@ntg.nl>
Subject: \startplacefigure breaking paragraph flow
Date: Sat, 9 Feb 2013 04:15:34 +0100 [thread overview]
Message-ID: <20130209041534.43021c7f@aga-netbook> (raw)
Hi all,
when I issue a \startplacefigure, it breaks the flow of the paragraph.
Normally, it is not a problem (I can use 2*hang anyway), but I have a
one-paragraph enumeration (made by \defineenumeration), and if I give
the figure at its beginning, the "label" is on a line by its own; the
problem is, I want the enumeration typeset by a block, and that's why I
don't want to give the figure *before* the block. Here's a MWE:
\defineenumeration[question][
text={\llap{$\blacktriangleright$~}Question},
right={.},
before={\blank[small]},
after={},
distance=0.5em,
alternative=serried,
width=fit,
]
\defineblock[question]
\defineblock[answer]
\keepblocks[question]
\hideblocks[answer]
\setupblock[question][before=\startquestion,after=\stopquestion]
\setupblock[answer][before=\startanswer,after=\stopanswer]
\def\noanswer{\incrementnumber[answer]}
\starttext
\beginquestion
This looks good. \input knuth
\endquestion
\beginquestion
\startplacefigure[location={none,right,2*hang}]
\framed{\tfd My figure}
\stopplacefigure
This looks bad. \input knuth
\endquestion
\stoptext
Any suggestions?
--
Marcin Borkowski
room B3-46, phone no +48 61 829 5375
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next reply other threads:[~2013-02-09 3:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-09 3:15 Marcin Borkowski [this message]
2013-02-10 17:33 ` Alan BRASLAU
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=20130209041534.43021c7f@aga-netbook \
--to=mbork@amu.edu.pl \
--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).