ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Force bottom float to be at the bottom
@ 2020-09-07 12:08 Mikael Sundqvist
  2020-09-12 20:04 ` Henning Hraban Ramm
  0 siblings, 1 reply; 3+ messages in thread
From: Mikael Sundqvist @ 2020-09-07 12:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 637 bytes --]

Hi,

I'm defining a bottomfigure with default=bottom, but it does not always
seem to work (example below). If the float does not fit on the page, it
appears instead in the top of the next page. Can I force it to be in the
bottom of the next page? That is, can I setup a float that is always at the
bottom of the page? I hope what I ask makes sense.

/Mikael

\useMPlibrary[dum]

\definefloat[bottomfigure][bottomfigures][figure]

\setupfloat[bottomfigure][default=bottom]

\starttext
\dorecurse{4}{\samplefile{knuth}}

\startplacebottomfigure
\externalfigure[dummy][width=\textwidth]
\stopplacebottomfigure

\samplefile{knuth}
\stoptext

[-- Attachment #1.2: Type: text/html, Size: 2504 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Force bottom float to be at the bottom
  2020-09-07 12:08 Force bottom float to be at the bottom Mikael Sundqvist
@ 2020-09-12 20:04 ` Henning Hraban Ramm
  2020-09-13  7:40   ` Mikael Sundqvist
  0 siblings, 1 reply; 3+ messages in thread
From: Henning Hraban Ramm @ 2020-09-12 20:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users



> Am 07.09.2020 um 14:08 schrieb Mikael Sundqvist <mickep@gmail.com>:
> 
> I'm defining a bottomfigure with default=bottom, but it does not always seem to work (example below). If the float does not fit on the page, it appears instead in the top of the next page. Can I force it to be in the bottom of the next page? That is, can I setup a float that is always at the bottom of the page? I hope what I ask makes sense.

AFAIK location=bottom is always unreliable, it’s a known limitation and you can’t change that.

Do you need it as a float (with caption and all)? Otherwise you could try absolute placement with a layer.

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

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

* Re: Force bottom float to be at the bottom
  2020-09-12 20:04 ` Henning Hraban Ramm
@ 2020-09-13  7:40   ` Mikael Sundqvist
  0 siblings, 0 replies; 3+ messages in thread
From: Mikael Sundqvist @ 2020-09-13  7:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1225 bytes --]

Den lör 12 sep. 2020 22:04Henning Hraban Ramm <texml@fiee.net> skrev:

>
>
> > Am 07.09.2020 um 14:08 schrieb Mikael Sundqvist <mickep@gmail.com>:
> >
> > I'm defining a bottomfigure with default=bottom, but it does not always
> seem to work (example below). If the float does not fit on the page, it
> appears instead in the top of the next page. Can I force it to be in the
> bottom of the next page? That is, can I setup a float that is always at the
> bottom of the page? I hope what I ask makes sense.
>
> AFAIK location=bottom is always unreliable, it’s a known limitation and
> you can’t change that.
>
> Do you need it as a float (with caption and all)? Otherwise you could try
> absolute placement with a layer.
>
> Hraban
>

Thank you for your mail, Hraban! It is good to know that the bottom key
might be unreliable.

I wanted to be able to put floats in bottom, with (unnumbered) captions on
top in margin. A bit dual to the mail I sent to the list about topfigures
with captions in the margin. As you say, maybe using layers is the best way
to obtain what I want. I'm not sure, though, how to place a figure in a
layer at the bottom and to prohibit text to go there.

/Mikael

[-- Attachment #1.2: Type: text/html, Size: 1722 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2020-09-13  7:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-07 12:08 Force bottom float to be at the bottom Mikael Sundqvist
2020-09-12 20:04 ` Henning Hraban Ramm
2020-09-13  7:40   ` Mikael 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).