ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Hans Hagen <pragma@wxs.nl>
Subject: Re: Float placement problem
Date: Sun, 2 Oct 2011 11:03:19 +0200	[thread overview]
Message-ID: <49787419-EE49-40A4-B565-A91393CA8D64@googlemail.com> (raw)
In-Reply-To: <20111002083945.GS13112@rae.vm.bytemark.co.uk>


Am 02.10.2011 um 10:39 schrieb Pontus Lurcock:

> On Sat 01 Oct 2011, Wolfgang Schuster wrote:
> 
>>> I've recently updated my standalone (32-bit Linux) ConTeXT from
>>> 2011.02.25 to 2011.09.20, and I'm now having some trouble with
>>> float placement. I'm using MkIV. I'm trying to have figures
>>> protruding into the outer margins with a double-sided layout, as
>>> described here:
>>> ...
>>> 
>>> Does anyone have any ideas or insights?
>> 
>> Should be fixed in the next beta.
> 
> Many thanks! I confirm that my original example works as expected with
> ConTeXt 2011.10.01. However, for certain files (including my
> dissertation) ConTeXt stops with the error ‘Argument of
> \rootfloatparameter has an extra }’. Here's a minimal example which
> causes the problem:
> 
> \starttext
> \dorecurse{3}{
> \placefigure[]{}{\externalfigure[cow.pdf]}
> \input knuth
> \placefigure[]{}{\externalfigure[cow.pdf]}
> }
> \stoptext
> 
> The example works if I comment out any of the three lines in the
> \dorecurse, or if I change \dorecurse{3} to \dorecurse{2}. The example
> also fails with 2011.09.20, but works with 2011.02.25.

page-one.mkiv:

\def\OTRONEdosettopinserts
  {\bgroup
   \ifsomefloatwaiting
     \noffloatinserts\zerocount
     \let\totaltopinserted\!!zeropoint
     \OTRONEdodosettopinserts
     \ifnum\rootfloatparameter\c!nbottom=\zerocount
       \ifnum\rootfloatparameter\c!nlines>\zerocount
         \ifdim\totaltopinserted>\zeropoint\relax
           \ifdim\dimexpr\rootfloatparameter\c!nlines\lineheight+\totaltopinserted\relax>\textheight
-            \showmessage\m!floatblocks8\rootfloatparameter\c!nlines
+            \showmessage\m!floatblocks8{\rootfloatparameter\c!nlines}%
             \vfilll\eject
           \fi
         \fi
       \fi
     \fi
   \fi
   \egroup}

\def\OTRONEdosetbothinserts
  {\global\topinserted\zeropoint
   \global\botinserted\zeropoint
   \ifflushingfloats \else
     \OTRONEdosettopinserts
     \OTRONEdosetbotinserts
     \ifsomefloatwaiting
-       \doif\rootfloatparameter\c!cache\v!no\doflushfloats
+       \doif{\rootfloatparameter\c!cache}\v!no\doflushfloats
     \fi
   \fi}

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


  reply	other threads:[~2011-10-02  9:03 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-25  9:03 Pontus Lurcock
2011-09-29  7:36 ` Pontus Lurcock
2011-09-29  7:53   ` luigi scarso
2011-09-29  8:32     ` Pontus Lurcock
2011-09-29  8:39       ` luigi scarso
2011-09-29 21:56         ` Pontus Lurcock
2011-10-01  5:59 ` Wolfgang Schuster
2011-10-02  8:39   ` Pontus Lurcock
2011-10-02  9:03     ` Wolfgang Schuster [this message]
2011-10-02 23:59       ` Pontus Lurcock

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49787419-EE49-40A4-B565-A91393CA8D64@googlemail.com \
    --to=schuster.wolfgang@googlemail.com \
    --cc=ntg-context@ntg.nl \
    --cc=pragma@wxs.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).