(URGENT) floating objects causing bug
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
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
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
On 15 mei 2011, at 13:08, Steffen Wolfrum
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
Am 15.05.2011 um 13:20 schrieb Taco Hoekwater:
On 15 mei 2011, at 13:08, Steffen Wolfrum
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
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
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 -----------------------------------------------------------------
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
participants (4)
-
Andreas Harder
-
Hans Hagen
-
Steffen Wolfrum
-
Taco Hoekwater