ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [***SPAM***] Float placement
@ 2013-06-14 22:31 Tethys
  2013-06-15 13:19 ` Peter Rolf
  0 siblings, 1 reply; 4+ messages in thread
From: Tethys @ 2013-06-14 22:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [***SPAM***] Float placement
  2013-06-14 22:31 [***SPAM***] Float placement Tethys
@ 2013-06-15 13:19 ` Peter Rolf
  2013-06-15 13:29   ` Tethys
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Rolf @ 2013-06-15 13:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

adding 'force' ([here,force]) should help 'here'. (sorry for the pun)

http://wiki.contextgarden.net/Command/placefloat


Peter


Am 15.06.2013 00:31, schrieb Tethys:
> 
> 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
> ___________________________________________________________________________________
> 

___________________________________________________________________________________
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] 4+ messages in thread

* Re: Float placement
  2013-06-15 13:19 ` Peter Rolf
@ 2013-06-15 13:29   ` Tethys
  2013-06-15 15:55     ` Peter Rolf
  0 siblings, 1 reply; 4+ messages in thread
From: Tethys @ 2013-06-15 13:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Peter Rolf writes:

>adding 'force' ([here,force]) should help 'here'. (sorry for the pun)
>
>http://wiki.contextgarden.net/Command/placefloat

Yes, it should. But I tried that and it didn't work.

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Float placement
  2013-06-15 13:29   ` Tethys
@ 2013-06-15 15:55     ` Peter Rolf
  0 siblings, 0 replies; 4+ messages in thread
From: Peter Rolf @ 2013-06-15 15:55 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 15.06.2013 15:29, schrieb Tethys:
> 
> Peter Rolf writes:
> 
>> adding 'force' ([here,force]) should help 'here'. (sorry for the pun)
>>
>> http://wiki.contextgarden.net/Command/placefloat
> 
> Yes, it should. But I tried that and it didn't work.
> 

Have you also tried 'force' alone?

If that doesn't work, please make a small (complete) example.


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

___________________________________________________________________________________
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] 4+ messages in thread

end of thread, other threads:[~2013-06-15 15:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-14 22:31 [***SPAM***] Float placement Tethys
2013-06-15 13:19 ` Peter Rolf
2013-06-15 13:29   ` Tethys
2013-06-15 15:55     ` Peter Rolf

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