ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* placing a wide float at the bottom
@ 2018-02-10 15:00 Henning Hraban Ramm
  2018-02-10 17:03 ` Rik Kabel
  0 siblings, 1 reply; 4+ messages in thread
From: Henning Hraban Ramm @ 2018-02-10 15:00 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Ahoi,

while
\placefigure[bottom]{}{\externalfigure[hacker][width=\textwidth]}
works just fine,
I get "top" placement with
\placefigure[bottom]{}{\externalfigure[hacker][width=\paperwidth]}

I.e. if the figure exceeds \textwidth, bottom placement fails.
I’m actually trying to place page wide images including bleed.

I’d guess this is a bug. Or can I do anything about it?


Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD

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

* Re: placing a wide float at the bottom
  2018-02-10 15:00 placing a wide float at the bottom Henning Hraban Ramm
@ 2018-02-10 17:03 ` Rik Kabel
  2018-02-11 11:50   ` Henning Hraban Ramm
  0 siblings, 1 reply; 4+ messages in thread
From: Rik Kabel @ 2018-02-10 17:03 UTC (permalink / raw)
  To: ntg-context


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

On 2018-02-10 10:00, Henning Hraban Ramm wrote:
> \placefigure[bottom]{}{\externalfigure[hacker][width=\textwidth]}
> works just fine,
> I get "top" placement with
> \placefigure[bottom]{}{\externalfigure[hacker][width=\paperwidth]}

Works here with the code below. The same result with and without adding 
"force". Result attached.

Do you have an MWE?

    \showframe
    \starttext
      some text
    \placefigure[top]{top
    textwidth}{\externalfigure[hacker][width=\textwidth]}
      some text
    \page
      some text
    \placefigure[here]{here
    textwidth}{\externalfigure[hacker][width=\textwidth]}
      some text
    \page
      some text
    \placefigure[bottom]{bottom
    textwidth}{\externalfigure[hacker][width=\textwidth]}
      some text
    \page
      some text
    \placefigure[top,force]{top force
    paperwidth}{\externalfigure[hacker][width=\paperwidth]}
      some text
    \page
      some text
    \placefigure[here,force]{here force
    paperwidth}{\externalfigure[hacker][width=\paperwidth]}
      some text
    \page
      some text
    \placefigure[bottom,force]{bottom force
    paperwidth}{\externalfigure[hacker][width=\paperwidth]}\stopmode
      some text
    \page
      some text
    \placefigure[top]{top
    paperwidth}{\externalfigure[hacker][width=\paperwidth]}
      some text
    \page
      some text
    \placefigure[here]{here
    paperwidth}{\externalfigure[hacker][width=\paperwidth]}
      some text
    \page
      some text
    \placefigure[bottom]{bottom
    paperwidth}{\externalfigure[hacker][width=\paperwidth]}
      some text
    \stoptext


-- 
Rik



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

[-- Attachment #2: x89.pdf --]
[-- Type: application/pdf, Size: 53624 bytes --]

[-- Attachment #3: Type: text/plain, Size: 492 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] 4+ messages in thread

* Re: placing a wide float at the bottom
  2018-02-10 17:03 ` Rik Kabel
@ 2018-02-11 11:50   ` Henning Hraban Ramm
  2018-02-11 15:25     ` Rik Kabel
  0 siblings, 1 reply; 4+ messages in thread
From: Henning Hraban Ramm @ 2018-02-11 11:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 2018-02-10 um 18:03 schrieb Rik Kabel <context@rik.users.panix.com>:

> On 2018-02-10 10:00, Henning Hraban Ramm wrote:
>> \placefigure[bottom]{}{\externalfigure[hacker][width=\textwidth]}
>> works just fine,
>> I get "top" placement with
>> \placefigure[bottom]{}{\externalfigure[hacker][width=\paperwidth]}
>> 
> Works here with the code below. The same result with and without adding "force". Result attached.
> 
> Do you have an MWE?
> 
> \showframe
> \starttext
>  some text
> \placefigure[top]{top textwidth}{\externalfigure[hacker][width=\textwidth]}
>  some text
> \page
>  some text
> \placefigure[here]{here textwidth}{\externalfigure[hacker][width=\textwidth]}
>  some text
> \page
>  some text
> \placefigure[bottom]{bottom textwidth}{\externalfigure[hacker][width=\textwidth]}
>  some text
> \page
>  some text
> \placefigure[top,force]{top force paperwidth}{\externalfigure[hacker][width=\paperwidth]}
>  some text
> \page
>  some text
> \placefigure[here,force]{here force paperwidth}{\externalfigure[hacker][width=\paperwidth]}
>  some text
> \page
>  some text
> \placefigure[bottom,force]{bottom force paperwidth}{\externalfigure[hacker][width=\paperwidth]}\stopmode
>  some text
> \page
>  some text
> \placefigure[top]{top paperwidth}{\externalfigure[hacker][width=\paperwidth]}
>  some text
> \page
>  some text
> \placefigure[here]{here paperwidth}{\externalfigure[hacker][width=\paperwidth]}
>  some text
> \page
>  some text
> \placefigure[bottom]{bottom paperwidth}{\externalfigure[hacker][width=\paperwidth]}
>  some text
> \stoptext

Hi Rik,
thank you for looking into this.
Even your example shows a problem: The first "bottom" figure is lower than "top", but not at the bottom.

In the following example only the first image is placed at the bottom, the others at top:

\showframe
\starttext
\input tufte
\placefigure[bottom]{bottom textwidth}{\externalfigure[hacker][width=\textwidth]}
\input knuth
\input zapf
\input tufte
\placefigure[bottom,force]{bottom force paperwidth}{\externalfigure[hacker][width=\paperwidth]}\stopmode
\input knuth
\input zapf
\placefigure[bottom]{bottom paperwidth}{\externalfigure[hacker][width=\paperwidth]}
\input lorem
\stoptext


Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD

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

* Re: placing a wide float at the bottom
  2018-02-11 11:50   ` Henning Hraban Ramm
@ 2018-02-11 15:25     ` Rik Kabel
  0 siblings, 0 replies; 4+ messages in thread
From: Rik Kabel @ 2018-02-11 15:25 UTC (permalink / raw)
  To: ntg-context


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

On 2018-02-11 06:50, Henning Hraban Ramm wrote:
> Am 2018-02-10 um 18:03 schrieb Rik Kabel <context@rik.users.panix.com>:
>
>> On 2018-02-10 10:00, Henning Hraban Ramm wrote:
>>> \placefigure[bottom]{}{\externalfigure[hacker][width=\textwidth]}
>>> works just fine,
>>> I get "top" placement with
>>> \placefigure[bottom]{}{\externalfigure[hacker][width=\paperwidth]}
>>>
>> Works here with the code below. The same result with and without adding "force". Result attached.
>>
>> Do you have an MWE?
>>
>> \showframe
>> \starttext
>>   some text
>> \placefigure[top]{top textwidth}{\externalfigure[hacker][width=\textwidth]}
>>   some text
>> \page
>>   some text
>> \placefigure[here]{here textwidth}{\externalfigure[hacker][width=\textwidth]}
>>   some text
>> \page
>>   some text
>> \placefigure[bottom]{bottom textwidth}{\externalfigure[hacker][width=\textwidth]}
>>   some text
>> \page
>>   some text
>> \placefigure[top,force]{top force paperwidth}{\externalfigure[hacker][width=\paperwidth]}
>>   some text
>> \page
>>   some text
>> \placefigure[here,force]{here force paperwidth}{\externalfigure[hacker][width=\paperwidth]}
>>   some text
>> \page
>>   some text
>> \placefigure[bottom,force]{bottom force paperwidth}{\externalfigure[hacker][width=\paperwidth]}\stopmode
>>   some text
>> \page
>>   some text
>> \placefigure[top]{top paperwidth}{\externalfigure[hacker][width=\paperwidth]}
>>   some text
>> \page
>>   some text
>> \placefigure[here]{here paperwidth}{\externalfigure[hacker][width=\paperwidth]}
>>   some text
>> \page
>>   some text
>> \placefigure[bottom]{bottom paperwidth}{\externalfigure[hacker][width=\paperwidth]}
>>   some text
>> \stoptext
> Hi Rik,
> thank you for looking into this.
> Even your example shows a problem: The first "bottom" figure is lower than "top", but not at the bottom.
>
> In the following example only the first image is placed at the bottom, the others at top:
>
> \showframe
> \starttext
> \input tufte
> \placefigure[bottom]{bottom textwidth}{\externalfigure[hacker][width=\textwidth]}
> \input knuth
> \input zapf
> \input tufte
> \placefigure[bottom,force]{bottom force paperwidth}{\externalfigure[hacker][width=\paperwidth]}\stopmode
> \input knuth
> \input zapf
> \placefigure[bottom]{bottom paperwidth}{\externalfigure[hacker][width=\paperwidth]}
> \input lorem
> \stoptext
>
>

You are, unfortunately, right about the problem. Alan Braslau brought up 
the same issue a while back ([NTG-context] \startplacefloat 
[location=bottom], 2015-10-16 
<https://www.mail-archive.com/ntg-context@ntg.nl/msg79774.html>) and it 
was not dealt with at that point. Perhaps he devised a work-around for 
his use that he has not shared yet.

(Sorry for the errant \stopmode in the example. It did nothing, but does 
not belong there in any case.)

-- 
Rik

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

[-- Attachment #2: Type: text/plain, Size: 492 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] 4+ messages in thread

end of thread, other threads:[~2018-02-11 15:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-10 15:00 placing a wide float at the bottom Henning Hraban Ramm
2018-02-10 17:03 ` Rik Kabel
2018-02-11 11:50   ` Henning Hraban Ramm
2018-02-11 15:25     ` Rik Kabel

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