On Tue, 12 Sep 2006 10:58:26 +0200
"Wolfgang Werners-Lucchini" <[EMAIL PROTECTED]> wrote:

> > The following example solves now your problem on my
> > machine without the ugly solution with \indentation.
> > 
> > \unprotect
> > 
> > \def\OTRONEdosomepagefloat#1[#2]%
> >   {%\checkwaitingfloats{#1}%
> >    \global\setbox#1\vbox
> >      {\unvbox#1%
> >       \vbox to \textheight
> >         {\doifnotinset\v!high{#2}\vfill
> >          \box\floatbox
> >          \doifnotinset\v!low{#2}\vfill}%
> >       \goodbreak}%
> >    \doinsertfloatinfo
> >    \dochecknextindentation\??bk
> >    \dorechecknextindentation}
> > 
> > \protect
> > 

Hi Wolfgang,

use the following code because my old one worked only when
\setupfloats[indentnext=yes] was used.

\unprotect

\def\OTRONEdosomepagefloat#1[#2]%
  {%\checkwaitingfloats{#1}%
   \global\setbox#1\vbox
     {\unvbox#1%
      \vbox to \textheight
        {\doifnotinset\v!high{#2}\vfill
         \box\floatbox
         \doifnotinset\v!low{#2}\vfill}%
      \goodbreak}%
   \doinsertfloatinfo
   \nonoindentation}

\protect
 
> > \setupindenting[medium,yes]
> > \setupfloat[figure][default={page,high,none}]
> > \setupfloats[indentnext=yes]
> > 
> > \starttext
> > 
> > \dorecurse{2}{\input knuth \par}
> > 
> > \placefigure
> >     []
> >     [fig:bild]
> >     {Text}
> >     {\hrule width 6cm height 14cm depth 0cm\relax}
> > 
> > \dorecurse{3}{\input knuth \par}
> > 
> > \stoptext
> > 
> > Hope it works for you too.
> > 
> > Wolfgang
> 
> Yes, it works!

I can see no problems in my created minimum example file

\setupindenting[medium,yes]
\setupwhitespace[medium]
\setupfloat[figure][default={page,high,none}]

\starttext

\dorecurse{2}{\input knuth \par}

\placefigure
        []
        [fig:bild]
        {Text}
        {\hrule width 6cm height 14cm depth 0cm\relax}

\dorecurse{3}{\input knuth \par}

\placefigure
        []
        [fig:bild]
        {Text}
        {\hrule width 6cm height 14cm depth 0cm\relax}

\setupindenting[medium,no]

\dorecurse{3}{\bf\input knuth \par}

\placefigure
        []
        [fig:bild]
        {Text}
        {\hrule width 6cm height 14cm depth 0cm\relax}

\setupindenting[medium,yes]

\dorecurse{3}{\tf\input knuth \par}

\stoptext

> But aren't there any unwanted sideeffects?
> There must be a good reason for Hans, to NOT include this in the 
> output-routine.

Dont know I there are any sideeffects, you couls try to use the code
in yout file and response if you couls see any problems.

To make your life easier put the attached file cont-loc.tex in the
directory of your ConTeXt installation. ConTeXt will now load this file
with my patch on every run and you dont need to put the patch in one
of your project files. 

> Btw. are the ??xx (here ??bk) Variables document somewhere?
> 

The ??xx Variables defined with the \definesystemvariable in the mult-ini
Module and most of them are set in the mult-sys Module.

They are namespaces for the ConTeXt-Macros and ??bk stands for "Blokken 
(floats)".

Happy TeXing

Wolfgang (from Bavaria)
\unprotect

\def\OTRONEdosomepagefloat#1[#2]%
  {%\checkwaitingfloats{#1}%
   \global\setbox#1\vbox
     {\unvbox#1%
      \vbox to \textheight
        {\doifnotinset\v!high{#2}\vfill
         \box\floatbox
         \doifnotinset\v!low{#2}\vfill}%
      \goodbreak}%
   \doinsertfloatinfo
   \nonoindentation}

\protect

\endinput
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to