ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Vertical space lost (\placefigure[right] before enumeration)
@ 2016-08-15 11:01 Mikael P. Sundqvist
  0 siblings, 0 replies; only message in thread
From: Mikael P. Sundqvist @ 2016-08-15 11:01 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 1108 bytes --]

Hi!

If I put a float in the right before an enumeration, the
"before={\blank[line]}" seem to be lost. Please have a look at the
example file below (pdf attached), where

* Example 1 is set as I want it,
* Example 2 is not (I would like to have a blank line before it, and
* Example 3 is set as I want it, but I look for a solution where I do
not have to inser the \blank[line] manually.
* Example 4 is certainly not what I want.

Any idea on how I can do to get the result of Example 3 automatically?

/Mikael

\defineenumeration[example][
text=Example,
alternative=serried,
width=fit,
before={\blank[line]},
after={\blank[line]},
]

\starttext
\input knuth

\startexample
\input tufte
\stopexample

\page[yes]

\input knuth

\placefigure[right,high]{}{\blackrule[width=3cm,height=4cm]}
\startexample
\input tufte
\stopexample

\page[yes]

\input knuth

\blank[line]
\placefigure[right,high]{}{\blackrule[width=3cm,height=4cm]}
\startexample
\input tufte
\stopexample

\page[yes]

\input knuth

\startexample
\placefigure[right,high]{}{\blackrule[width=3cm,height=4cm]}
\input tufte
\stopexample

\stoptext

[-- Attachment #2: ctx-example.pdf --]
[-- Type: application/pdf, Size: 20785 bytes --]

[-- Attachment #3: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-08-15 11:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-15 11:01 Vertical space lost (\placefigure[right] before enumeration) Mikael P. Sundqvist

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).