ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* no indent after figure
@ 2006-09-08 13:29 Wolfgang Werners-Lucchini
  2006-09-08 14:43 ` David Arnold
  0 siblings, 1 reply; 10+ messages in thread
From: Wolfgang Werners-Lucchini @ 2006-09-08 13:29 UTC (permalink / raw)


Hallo!

I have a problem with indenting.
The paragraph following the \placefigure
is not indented and I find not any way to achieve this.
The following testfile shows the situation:
----------------------------------------------
\setupfloats[indentnext=yes]%                  <--- Doesn't help!
\setupfloat[figure][default={page,high,none}]
\setupcaption[figure][number=no]
\setupindenting[medium,yes,next]
\starttext
\dorecurse{2}{\input knuth\par}
\placefigure{}{\framed[offset=none,
                       width=\makeupwidth,
                       height=\textheight]{figure}}

\indenting[yes]%                               <--- Doesn't help!
\indent {\bf Here!} %                          <--- Doesn't help!
\dorecurse{3}{\input knuth\par}
\stoptext
----------------------------------------------
I tryed the 'indentnext=yes' in \setupfloats
but I don't know if that option should do what I want or 
if it has an other meaning.

Wolfgang

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: no indent after figure
  2006-09-08 13:29 no indent after figure Wolfgang Werners-Lucchini
@ 2006-09-08 14:43 ` David Arnold
  2006-09-08 15:47   ` Wolfgang Schuster
  0 siblings, 1 reply; 10+ messages in thread
From: David Arnold @ 2006-09-08 14:43 UTC (permalink / raw)


Use \indentation, as in:

\indentation Now is the time.

On Sep 8, 2006, at 6:29 AM, Wolfgang Werners-Lucchini wrote:

> Hallo!
>
> I have a problem with indenting.
> The paragraph following the \placefigure
> is not indented and I find not any way to achieve this.
> The following testfile shows the situation:
> ----------------------------------------------
> \setupfloats[indentnext=yes]%                  <--- Doesn't help!
> \setupfloat[figure][default={page,high,none}]
> \setupcaption[figure][number=no]
> \setupindenting[medium,yes,next]
> \starttext
> \dorecurse{2}{\input knuth\par}
> \placefigure{}{\framed[offset=none,
>                        width=\makeupwidth,
>                        height=\textheight]{figure}}
>
> \indenting[yes]%                               <--- Doesn't help!
> \indent {\bf Here!} %                          <--- Doesn't help!
> \dorecurse{3}{\input knuth\par}
> \stoptext
> ----------------------------------------------
> I tryed the 'indentnext=yes' in \setupfloats
> but I don't know if that option should do what I want or
> if it has an other meaning.
>
> Wolfgang
>
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: no indent after figure
  2006-09-08 14:43 ` David Arnold
@ 2006-09-08 15:47   ` Wolfgang Schuster
  0 siblings, 0 replies; 10+ messages in thread
From: Wolfgang Schuster @ 2006-09-08 15:47 UTC (permalink / raw)


On Fri, 8 Sep 2006 07:43:17 -0700
David Arnold <dwarnold45@cox.net> wrote:

> Use \indentation, as in:
> 
> \indentation Now is the time.
> 
> On Sep 8, 2006, at 6:29 AM, Wolfgang Werners-Lucchini wrote:
> 
> > Hallo!
> >
> > I have a problem with indenting.
> > The paragraph following the \placefigure
> > is not indented and I find not any way to achieve this.
> > The following testfile shows the situation:
> > ----------------------------------------------
> > \setupfloats[indentnext=yes]%                  <--- Doesn't help!
> > \setupfloat[figure][default={page,high,none}]
> > \setupcaption[figure][number=no]
> > \setupindenting[medium,yes,next]
> > \starttext
> > \dorecurse{2}{\input knuth\par}
> > \placefigure{}{\framed[offset=none,
> >                        width=\makeupwidth,
> >                        height=\textheight]{figure}}
> >
> > \indenting[yes]%                               <--- Doesn't help!
> > \indent {\bf Here!} %                          <--- Doesn't help!
> > \dorecurse{3}{\input knuth\par}
> > \stoptext
> > ----------------------------------------------
> > I tryed the 'indentnext=yes' in \setupfloats
> > but I don't know if that option should do what I want or
> > if it has an other meaning.
> >
> > Wolfgang
> >

The following works on my machine

\setupindenting[yes,medium]
\setupfloats[indentnext=yes]

\starttext

\input knuth \par

\placefigure
    {}
    {\framed
        [offset=none,
         width=0.6\makeupwidth,
         height=0.4\textheight]
        {figure}}


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

\stoptext

Wolfgang

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: no indent after figure
       [not found] <mailman.764.1158082932.2039.ntg-context@ntg.nl>
@ 2006-09-12 19:45 ` Wolfgang Werners-Lucchini
  0 siblings, 0 replies; 10+ messages in thread
From: Wolfgang Werners-Lucchini @ 2006-09-12 19:45 UTC (permalink / raw)


> 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

Thank you! I'll try this.

> 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.

> > Btw. are the ??xx (here ??bk) Variables document somewhere?
 
> They are namespaces for the ConTeXt-Macros and ??bk stands for
> "Blokken (floats)".

Ahh! Dutch names.

I searched for the real name of the figurenumber to solve an other 
problem I posted a few days ago. And so I was looking for the right 
präfix for float (figure) or caption (don't even know where that 
number lives).

Grüße aus der Rhön

Wolfgang

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: no indent after figure
  2006-09-12  8:58 ` Wolfgang Werners-Lucchini
@ 2006-09-12 16:09   ` Wolfgang Schuster
  0 siblings, 0 replies; 10+ messages in thread
From: Wolfgang Schuster @ 2006-09-12 16:09 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 2947 bytes --]

On Tue, 12 Sep 2006 10:58:26 +0200
"Wolfgang Werners-Lucchini" <wwl@musensturm.de> 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)

[-- Attachment #2: cont-loc.tex --]
[-- Type: text/x-tex, Size: 331 bytes --]

\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

[-- Attachment #3: Type: text/plain, Size: 139 bytes --]

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: no indent after figure
       [not found] <mailman.733.1157963375.2039.ntg-context@ntg.nl>
@ 2006-09-12  8:58 ` Wolfgang Werners-Lucchini
  2006-09-12 16:09   ` Wolfgang Schuster
  0 siblings, 1 reply; 10+ messages in thread
From: Wolfgang Werners-Lucchini @ 2006-09-12  8:58 UTC (permalink / raw)


> 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
> 
> \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!

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

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

Wolfgang

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: no indent after figure
  2006-09-09  9:05 ` Wolfgang Werners-Lucchini
  2006-09-09 12:19   ` Renaud AUBIN
@ 2006-09-10 13:38   ` Wolfgang Schuster
  1 sibling, 0 replies; 10+ messages in thread
From: Wolfgang Schuster @ 2006-09-10 13:38 UTC (permalink / raw)


On Sat, 09 Sep 2006 11:05:57 +0200
"Wolfgang Werners-Lucchini" <wwl@musensturm.de> wrote:

> > The following works on my machine
> > 
> > \setupindenting[yes,medium]
> > \setupfloats[indentnext=yes]
> > 
> > \starttext
> > 
> > \input knuth \par
> > 
> > \placefigure
> >     {}
> >     {\framed
> >         [offset=none,
> >          width=0.6\makeupwidth,
> >          height=0.4\textheight]
> >         {figure}}
> > 
> > 
> > \dorecurse{3}{\input knuth\par}
> > 
> > \stoptext
> > 
> > Wolfgang
> 
> Hallo Wolfgang!
> 
> Your example doesn't use 
> 
> \setupfloat[figure][default={page,high,none}]
> 
> and I found, that the option 'page' in this statement toggles 
> indenting of next paragraph!
> I don't understand this at all. Please, can someone explain the 
> interrelation between these two things?
> 
> And a second:
> It seems, that
> \setupfloats[indentnext=yes]
> has nothing to do with indenting of next paragraph.
> What is the real meaning of this option?
> 
> Wolfgang
> 

My problem, I was too fast with my answer.

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

\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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: no indent after figure
  2006-09-09  9:05 ` Wolfgang Werners-Lucchini
@ 2006-09-09 12:19   ` Renaud AUBIN
  2006-09-10 13:38   ` Wolfgang Schuster
  1 sibling, 0 replies; 10+ messages in thread
From: Renaud AUBIN @ 2006-09-09 12:19 UTC (permalink / raw)



[-- Attachment #1.1: Type: text/plain, Size: 549 bytes --]

Wolfgang Werners-Lucchini a écrit :

>
>It seems, that
>\setupfloats[indentnext=yes]
>has nothing to do with indenting of next paragraph.
>What is the real meaning of this option?
>  
>

indentnext=yes is indeed related to indentation. Search for threads
"[NTG-context] Indentation bug ?" and "[NTG-context] Indentation bug ?
Sample"...
\indentation is the solution (Thanks to David) or you can cheat by
placing \placefigure or \placefloat before \section os \subsection...
when they use page, top, bottom, auto or page...

Renaud

[-- Attachment #1.2: Type: text/html, Size: 904 bytes --]

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: no indent after figure
       [not found] <mailman.716.1157766348.2039.ntg-context@ntg.nl>
  2006-09-09  9:05 ` Wolfgang Werners-Lucchini
@ 2006-09-09  9:05 ` Wolfgang Werners-Lucchini
  1 sibling, 0 replies; 10+ messages in thread
From: Wolfgang Werners-Lucchini @ 2006-09-09  9:05 UTC (permalink / raw)


> Use \indentation, as in:
> \indentation Now is the time.

Thank you, David! That helps too.

Wolfgang

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: no indent after figure
       [not found] <mailman.716.1157766348.2039.ntg-context@ntg.nl>
@ 2006-09-09  9:05 ` Wolfgang Werners-Lucchini
  2006-09-09 12:19   ` Renaud AUBIN
  2006-09-10 13:38   ` Wolfgang Schuster
  2006-09-09  9:05 ` Wolfgang Werners-Lucchini
  1 sibling, 2 replies; 10+ messages in thread
From: Wolfgang Werners-Lucchini @ 2006-09-09  9:05 UTC (permalink / raw)


> The following works on my machine
> 
> \setupindenting[yes,medium]
> \setupfloats[indentnext=yes]
> 
> \starttext
> 
> \input knuth \par
> 
> \placefigure
>     {}
>     {\framed
>         [offset=none,
>          width=0.6\makeupwidth,
>          height=0.4\textheight]
>         {figure}}
> 
> 
> \dorecurse{3}{\input knuth\par}
> 
> \stoptext
> 
> Wolfgang

Hallo Wolfgang!

Your example doesn't use 

\setupfloat[figure][default={page,high,none}]

and I found, that the option 'page' in this statement toggles 
indenting of next paragraph!
I don't understand this at all. Please, can someone explain the 
interrelation between these two things?

And a second:
It seems, that
\setupfloats[indentnext=yes]
has nothing to do with indenting of next paragraph.
What is the real meaning of this option?

Wolfgang

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2006-09-12 19:45 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-08 13:29 no indent after figure Wolfgang Werners-Lucchini
2006-09-08 14:43 ` David Arnold
2006-09-08 15:47   ` Wolfgang Schuster
     [not found] <mailman.716.1157766348.2039.ntg-context@ntg.nl>
2006-09-09  9:05 ` Wolfgang Werners-Lucchini
2006-09-09 12:19   ` Renaud AUBIN
2006-09-10 13:38   ` Wolfgang Schuster
2006-09-09  9:05 ` Wolfgang Werners-Lucchini
     [not found] <mailman.733.1157963375.2039.ntg-context@ntg.nl>
2006-09-12  8:58 ` Wolfgang Werners-Lucchini
2006-09-12 16:09   ` Wolfgang Schuster
     [not found] <mailman.764.1158082932.2039.ntg-context@ntg.nl>
2006-09-12 19:45 ` Wolfgang Werners-Lucchini

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).