* (URGENT) floating objects causing bug
@ 2011-05-15 9:35 Steffen Wolfrum
2011-05-15 10:39 ` Taco Hoekwater
0 siblings, 1 reply; 8+ messages in thread
From: Steffen Wolfrum @ 2011-05-15 9:35 UTC (permalink / raw)
To: Hans Hagen; +Cc: mailing list for ConTeXt users
Hi Hans,
while finishing a big project (900 pages, 300 floating tables/figures) I noticed that the first line of each page is moving up/down (almost half a line)!
Reason: As soon a a floating object is placed the next page is disturbed.
I wrote a small minimal (see below) that shows the problem:
compare the first lines of page 1 und 3 please.
My project is otherwise finished ... :o(
Do you think you could manage to write a fast patch for his bug, so I can deliver it tomorrow?
Best regards,
Steffen
-------
\showframe
\definepapersize[stw][width=14.7cm,height=22.3cm]
\setuppapersize[stw][stw]
\setuplayout
[width=113mm,height=572pt,
backspace=17mm,topspace=17mm,
header=12pt,headerdistance=6pt,
footer=36pt,footerdistance=0pt,
location=middle,marking=off]
\usetypescript[times]
\setupbodyfont[times, 10pt]\setupinterlinespace[line=12pt]
\setupindenting[10pt,yes]
\starttext
\dorecurse{2}{\input tufte\footnote{\input ward \par} \par}
\dorecurse{2}{\input ward}
\placefigure{Title}{\externalfigure[cow][width=0.5\textwidth]}
\dorecurse{5}{\input tufte}
\stoptext
___________________________________________________________________________________
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] 8+ messages in thread
* Re: (URGENT) floating objects causing bug
2011-05-15 9:35 (URGENT) floating objects causing bug Steffen Wolfrum
@ 2011-05-15 10:39 ` Taco Hoekwater
2011-05-15 11:08 ` Steffen Wolfrum
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Taco Hoekwater @ 2011-05-15 10:39 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Hans Hagen, Steffen Wolfrum
On 05/15/2011 11:35 AM, Steffen Wolfrum wrote:
> Hi Hans,
>
> while finishing a big project (900 pages, 300 floating tables/figures) I noticed that the first line of each page is moving up/down (almost half a line)!
>
> Reason: As soon a a floating object is placed the next page is disturbed.
The problem is that the vertical space collapser is collapsing *into*
topskip's spec field, thereby changing its value. That much is
clear to me. I do not know how to fix this nicely, but a crude
workaround to fix your project is:
\appendtoks \global\topskip=10pt plus 50pt \to \everyafteroutput
Best wishes,
Taco
___________________________________________________________________________________
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] 8+ messages in thread
* Re: (URGENT) floating objects causing bug
2011-05-15 10:39 ` Taco Hoekwater
@ 2011-05-15 11:08 ` Steffen Wolfrum
2011-05-15 11:20 ` Taco Hoekwater
2011-05-15 12:05 ` Andreas Harder
2011-05-15 12:09 ` Hans Hagen
2 siblings, 1 reply; 8+ messages in thread
From: Steffen Wolfrum @ 2011-05-15 11:08 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Taco Hoekwater
Am 15.05.2011 um 12:39 schrieb Taco Hoekwater:
> On 05/15/2011 11:35 AM, Steffen Wolfrum wrote:
>> Hi Hans,
>>
>> while finishing a big project (900 pages, 300 floating tables/figures) I noticed that the first line of each page is moving up/down (almost half a line)!
>>
>> Reason: As soon a a floating object is placed the next page is disturbed.
>
> The problem is that the vertical space collapser is collapsing *into*
> topskip's spec field, thereby changing its value. That much is
> clear to me. I do not know how to fix this nicely, but a crude
> workaround to fix your project is:
>
> \appendtoks \global\topskip=10pt plus 50pt \to \everyafteroutput
That seems to be at least a starting point. Thank you Taco.
I tried to use your workaround in my project:
Well, something is different now ... but all in all it gets totally weird now!
Please have a look at a original chapter:
http://www.werksatz.com/attachments/chap_02_before.pdf
and the same with your workaround
http://www.werksatz.com/attachments/chap_02_after.pdf
See for example the space above the first lines on realpage 10 (userpage 14) and realpage 13 (userpage 17)!
Maybe I need to change the values 10pt, 50pt? What are they related to?
Steffen
___________________________________________________________________________________
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] 8+ messages in thread
* Re: (URGENT) floating objects causing bug
2011-05-15 11:08 ` Steffen Wolfrum
@ 2011-05-15 11:20 ` Taco Hoekwater
2011-05-15 11:30 ` Steffen Wolfrum
0 siblings, 1 reply; 8+ messages in thread
From: Taco Hoekwater @ 2011-05-15 11:20 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: mailing list for ConTeXt users
On 15 mei 2011, at 13:08, Steffen Wolfrum <context@st.estfiles.de> wrote:
>
> Am 15.05.2011 um 12:39 schrieb Taco Hoekwater:
>
>> On 05/15/2011 11:35 AM, Steffen Wolfrum wrote:
>>> Hi Hans,
>>>
>>> while finishing a big project (900 pages, 300 floating tables/figures) I noticed that the first line of each page is moving up/down (almost half a line)!
>>>
>>> Reason: As soon a a floating object is placed the next page is disturbed.
>>
>> The problem is that the vertical space collapser is collapsing *into*
>> topskip's spec field, thereby changing its value. That much is
>> clear to me. I do not know how to fix this nicely, but a crude
>> workaround to fix your project is:
>>
>> \appendtoks \global\topskip=10pt plus 50pt \to \everyafteroutput
>
>
>
> That seems to be at least a starting point. Thank you Taco.
> I tried to use your workaround in my project:
>
> Well, something is different now ... but all in all it gets totally weird now!
>
> Please have a look at a original chapter:
> http://www.werksatz.com/attachments/chap_02_before.pdf
> and the same with your workaround
> http://www.werksatz.com/attachments/chap_02_after.pdf
>
> See for example the space above the first lines on realpage 10 (userpage 14) and realpage 13 (userpage 17)!
>
>
> Maybe I need to change the values 10pt, 50pt? What are they related to?
Maybe just deleting the plus 50pt will fix it.
Best wishes, taco
___________________________________________________________________________________
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] 8+ messages in thread
* Re: (URGENT) floating objects causing bug
2011-05-15 11:20 ` Taco Hoekwater
@ 2011-05-15 11:30 ` Steffen Wolfrum
0 siblings, 0 replies; 8+ messages in thread
From: Steffen Wolfrum @ 2011-05-15 11:30 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Taco Hoekwater
Am 15.05.2011 um 13:20 schrieb Taco Hoekwater:
>
>
>
>
> On 15 mei 2011, at 13:08, Steffen Wolfrum <context@st.estfiles.de> wrote:
>
>>
>> Am 15.05.2011 um 12:39 schrieb Taco Hoekwater:
>>
>>> On 05/15/2011 11:35 AM, Steffen Wolfrum wrote:
>>>> Hi Hans,
>>>>
>>>> while finishing a big project (900 pages, 300 floating tables/figures) I noticed that the first line of each page is moving up/down (almost half a line)!
>>>>
>>>> Reason: As soon a a floating object is placed the next page is disturbed.
>>>
>>> The problem is that the vertical space collapser is collapsing *into*
>>> topskip's spec field, thereby changing its value. That much is
>>> clear to me. I do not know how to fix this nicely, but a crude
>>> workaround to fix your project is:
>>>
>>> \appendtoks \global\topskip=10pt plus 50pt \to \everyafteroutput
>>
>>
>>
>> That seems to be at least a starting point. Thank you Taco.
>> I tried to use your workaround in my project:
>>
>> Well, something is different now ... but all in all it gets totally weird now!
>>
>> Please have a look at a original chapter:
>> http://www.werksatz.com/attachments/chap_02_before.pdf
>> and the same with your workaround
>> http://www.werksatz.com/attachments/chap_02_after.pdf
>>
>> See for example the space above the first lines on realpage 10 (userpage 14) and realpage 13 (userpage 17)!
>>
>>
>> Maybe I need to change the values 10pt, 50pt? What are they related to?
>
> Maybe just deleting the plus 50pt will fix it.
Yes that's it! Seems to work now as desired (we'll have to see, if it is 100% water-proof ... )
Thank you very, very much for your "emergency aid" :o)
Steffen
___________________________________________________________________________________
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] 8+ messages in thread
* Re: (URGENT) floating objects causing bug
2011-05-15 10:39 ` Taco Hoekwater
2011-05-15 11:08 ` Steffen Wolfrum
@ 2011-05-15 12:05 ` Andreas Harder
2011-05-15 12:09 ` Hans Hagen
2 siblings, 0 replies; 8+ messages in thread
From: Andreas Harder @ 2011-05-15 12:05 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 857 bytes --]
Am 15.05.2011 um 12:39 schrieb Taco Hoekwater:
> On 05/15/2011 11:35 AM, Steffen Wolfrum wrote:
>> Hi Hans,
>>
>> while finishing a big project (900 pages, 300 floating tables/figures) I noticed that the first line of each page is moving up/down (almost half a line)!
>>
>> Reason: As soon a a floating object is placed the next page is disturbed.
>
> The problem is that the vertical space collapser is collapsing *into*
> topskip's spec field, thereby changing its value. That much is
> clear to me. I do not know how to fix this nicely, but a crude
> workaround to fix your project is:
>
> \appendtoks \global\topskip=10pt plus 50pt \to \everyafteroutput
What about \setupinterlinespace[top=0]?
I had once a related (?) problem:
http://archive.contextgarden.net/message/20110224.131537.352b2342.en.html
Greeting
Andreas
[-- Attachment #1.2: Type: text/html, Size: 1512 bytes --]
[-- Attachment #2: 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] 8+ messages in thread
* Re: (URGENT) floating objects causing bug
2011-05-15 10:39 ` Taco Hoekwater
2011-05-15 11:08 ` Steffen Wolfrum
2011-05-15 12:05 ` Andreas Harder
@ 2011-05-15 12:09 ` Hans Hagen
2011-05-15 12:48 ` Steffen Wolfrum
2 siblings, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2011-05-15 12:09 UTC (permalink / raw)
To: Taco Hoekwater; +Cc: mailing list for ConTeXt users, Steffen Wolfrum
On 15-5-2011 12:39, Taco Hoekwater wrote:
> On 05/15/2011 11:35 AM, Steffen Wolfrum wrote:
>> Hi Hans,
>>
>> while finishing a big project (900 pages, 300 floating tables/figures)
>> I noticed that the first line of each page is moving up/down (almost
>> half a line)!
>>
>> Reason: As soon a a floating object is placed the next page is disturbed.
please don't use URGENT in a subject ... the bolder the subject, the
lower it moves on my todo list (and the sooner it moves out of my inbox
view)
> The problem is that the vertical space collapser is collapsing *into*
> topskip's spec field, thereby changing its value. That much is
> clear to me. I do not know how to fix this nicely, but a crude
> workaround to fix your project is:
>
> \appendtoks \global\topskip=10pt plus 50pt \to \everyafteroutput
Taco:
in spac-ver.lua this helps ...
--~ ps = writable_spec(previous) -- no
writable needed here
--~ ps.width, ps.stretch, ps.shrink = pw
+ cw, pp + cp, pm + cm
previous.spec = nodes.pool.gluespec(pw + cw, pp + cp, pm + cm)
so, we run into this writable mess again (maybe copying a gluespec in
the engine when a topskip is injected is the best solution) ... ok,
eventually gluespecs will become fields in a glue node so it's a
temporary roblem
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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] 8+ messages in thread
* Re: (URGENT) floating objects causing bug
2011-05-15 12:09 ` Hans Hagen
@ 2011-05-15 12:48 ` Steffen Wolfrum
0 siblings, 0 replies; 8+ messages in thread
From: Steffen Wolfrum @ 2011-05-15 12:48 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Hans Hagen
Am 15.05.2011 um 14:09 schrieb Hans Hagen:
> please don't use URGENT in a subject ... the bolder the subject, the lower it moves on my todo list (and the sooner it moves out of my inbox view)
Discovering this bug in the last minute before delivering made me a bit nervous.
So I cried for help with "all the bells and whistles" ... Glad that it worked, nevertheless ;o)
Please accept my apologies
Steffen
___________________________________________________________________________________
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] 8+ messages in thread
end of thread, other threads:[~2011-05-15 12:48 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-15 9:35 (URGENT) floating objects causing bug Steffen Wolfrum
2011-05-15 10:39 ` Taco Hoekwater
2011-05-15 11:08 ` Steffen Wolfrum
2011-05-15 11:20 ` Taco Hoekwater
2011-05-15 11:30 ` Steffen Wolfrum
2011-05-15 12:05 ` Andreas Harder
2011-05-15 12:09 ` Hans Hagen
2011-05-15 12:48 ` Steffen Wolfrum
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).