[NTG-context] Float placement problem

luigi scarso luigi.scarso at gmail.com
Thu Sep 29 10:39:06 CEST 2011


On Thu, Sep 29, 2011 at 10:32 AM, Pontus Lurcock <pont at talvi.net> wrote:
> On Thu 29 Sep 2011, luigi scarso wrote:
>
>> hm , it looks like a bad match with  between width=17cm and textwidth
>> This extreme example seems to works
>> \setuplayout[location=doublesided,width=20pc]
>> \setuppagenumbering[alternative=doublesided,location={margin,header}]
>> \setupfloat[figure][location=inner]
>> \showframe
>> \starttext
>> % An extra page. \page[yes]
>> \dorecurse{4}{
>> \placefigure[]{caption}{\externalfigure[cow.pdf][width=30pc]}\page}
>> \stoptext
>
> Thanks! The \page after the figure certainly seems to fix it.
> Unfortunately a page break after every figure is impractical in my
> real document, but this might put me on the track of a solution (once
> I've read the layout manual a couple more times).
I 've put \page just to show quickly the effect, but maybe there are
still problems

\setuplayout[location=doublesided,width=20pc]
\setuppagenumbering[alternative=doublesided,location={margin,header}]
\setupfloat[figure][location=inner]
\showframe
\starttext
% An extra page. \page[yes]
\dorecurse{40}{
\placefigure[here]{caption}{\externalfigure[cow.pdf][width=30pc]}}
\stoptext
-- 
luigi


More information about the ntg-context mailing list