ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Tethys <sta612@astradyne.co.uk>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: [***SPAM***] Float placement
Date: Fri, 14 Jun 2013 23:31:15 +0100	[thread overview]
Message-ID: <201306142231.r5EMVGYM010962@leto.astradyne.corp> (raw)


I'm trying to typeset a book. It has two columns, and some floating
diagrams. My problem is that the floats aren't going where I want
them to and I can't work out how to fix it. My input source looks
something like:

	\startcolumnset[foo]
	\subject{Blah}

	aaaa aaaa aaaa aaaa aaaa aaaa aaaa

	\placefigure[here]{First diagram}
		{\externalfigure[diagram1.jpg][width=2.3in]}

	bbbb bbbb bbbb bbbb bbbb bbbb bbbb

	\placefigure[here]{Second diagram}
		{\externalfigure[diagram2.jpg][width=2.3in]}

	cccc cccc cccc cccc cccc cccc cccc

	\placefigure[here]{Third diagram}
		{\externalfigure[diagram3.jpg][width=2.3in]}

	dddd dddd dddd dddd dddd dddd dddd

What I expect to get out is a page something like this (excuse the
ASCII graphics):

	+-----------------------------------------+
	|                                         |
	|  Blah                 cccc  cccc  cccc  |
	|  ----                 cccc  cccc  cccc  |
	|                       cccc  cccc        |
	|  aaaa  aaaa  aaaa                       |
	|  aaaa  aaaa  aaaa     +--------------+  |
	|  aaaa                 | ############ |  |
	|                       | ############ |  |
	|  +--------------+     | ############ |  |
	|  | ############ |     | ############ |  |
	|  | ############ |     | ############ |  |
	|  | ############ |     | ############ |  |
	|  +--------------+     | ############ |  |
	|   First diagram       | ############ |  |
	|                       +--------------+  |
	|  bbbb  bbbb  bbbb       Third diagram   |
	|  bbbb  bbbb  bbbb                       |
	|  bbbb  bbbb           dddd  dddd  dddd  |
	|                       dddd  dddd  dddd  |
	|  +--------------+     dddd  dddd  dddd  |
	|  | ############ |     dddd  dddd  dddd  |
	|  | ############ |     dddd  dddd  dddd  |
	|  | ############ |     dddd  dddd  dddd  |
	|  +--------------+     dddd  dddd        |
	|   Second diagram                        |
	|                                         |
	|  cccc  cccc  cccc                       |
	|  cccc  cccc  cccc                       |
	|                                         |
	+-----------------------------------------+

What I'm actually getting out is this:

	+-----------------------------------------+
	|                                         |
	|  Blah                 +--------------+  |
	|  ----                 | ############ |  |
	|                       | ############ |  |
	|  aaaa  aaaa  aaaa     | ############ |  |
	|  aaaa  aaaa  aaaa     +--------------+  |
	|  aaaa                  Second diagram   |
	|                                         |
	|  +--------------+     +--------------+  |
	|  | ############ |     | ############ |  |
	|  | ############ |     | ############ |  |
	|  | ############ |     | ############ |  |
	|  +--------------+     | ############ |  |
	|   First diagram       | ############ |  |
	|                       | ############ |  |
	|  bbbb  bbbb  bbbb     | ############ |  |
	|  bbbb  bbbb  bbbb     | ############ |  |
	|  bbbb  bbbb           +--------------+  |
	|                         Third diagram   |
	|  cccc  cccc  cccc                       |
	|  cccc  cccc  cccc     dddd  dddd  dddd  |
	|  cccc  cccc  cccc     dddd  dddd  dddd  |
	|  cccc  cccc  cccc     dddd  dddd  dddd  |
	|  cccc  cccc           dddd  dddd        |
	|                                         |
	|  dddd  dddd  dddd                       |
	|  dddd  dddd  dddd                       |
	|  dddd  dddd  dddd                       |
	|                                         |
	+-----------------------------------------+

Even though there is sufficient space in the first
column, the second float is always being moved up
to the top of the second column. I've tried pretty
much every combination of here, force and always
as the location keyword for the \placefloat, but
it doesn't make any difference.

Any idea what I can do to get the placement I
want? The deadline for going to press is rapidly
approaching and I'm getting a little concerned!

Thanks,

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


             reply	other threads:[~2013-06-14 22:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-14 22:31 Tethys [this message]
2013-06-15 13:19 ` Peter Rolf
2013-06-15 13:29   ` Tethys
2013-06-15 15:55     ` Peter Rolf

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=201306142231.r5EMVGYM010962@leto.astradyne.corp \
    --to=sta612@astradyne.co.uk \
    --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).