From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/30766 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: no indent after figure Date: Tue, 12 Sep 2006 18:09:25 +0200 Message-ID: <20060912180925.d43c43c8.schuster.wolfgang@googlemail.com> References: <450692D2.29290.1FA58A@wwl.musensturm.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Multipart=_Tue__12_Sep_2006_18_09_25_+0200_m=xn_KgsIWZaeVqx" X-Trace: sea.gmane.org 1158077442 4658 80.91.229.2 (12 Sep 2006 16:10:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 12 Sep 2006 16:10:42 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Sep 12 18:10:40 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1GNApe-0000kR-QQ for gctc-ntg-context-518@m.gmane.org; Tue, 12 Sep 2006 18:09:54 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 26C8F1FCE3; Tue, 12 Sep 2006 18:09:54 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 30198-01-4; Tue, 12 Sep 2006 18:09:46 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6279C1FCF3; Tue, 12 Sep 2006 18:09:46 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1129C1FCE3 for ; Tue, 12 Sep 2006 18:09:43 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 30198-01-3 for ; Tue, 12 Sep 2006 18:09:37 +0200 (CEST) Original-Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.184]) by ronja.ntg.nl (Postfix) with SMTP id 81FC71FCF3 for ; Tue, 12 Sep 2006 18:09:37 +0200 (CEST) Original-Received: by nf-out-0910.google.com with SMTP id d4so1414214nfe for ; Tue, 12 Sep 2006 09:09:35 -0700 (PDT) Original-Received: by 10.49.8.1 with SMTP id l1mr9833002nfi; Tue, 12 Sep 2006 09:09:35 -0700 (PDT) Original-Received: from unknown ( [89.51.234.80]) by mx.gmail.com with ESMTP id 39sm5677212hui.2006.09.12.09.09.32; Tue, 12 Sep 2006 09:09:34 -0700 (PDT) Original-To: ntg-context@ntg.nl In-Reply-To: <450692D2.29290.1FA58A@wwl.musensturm.de> X-Mailer: Sylpheed version 2.2.6 (GTK+ 2.6.10; i686-pc-mingw32) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:30766 Archived-At: This is a multi-part message in MIME format. --Multipart=_Tue__12_Sep_2006_18_09_25_+0200_m=xn_KgsIWZaeVqx Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Tue, 12 Sep 2006 10:58:26 +0200 "Wolfgang Werners-Lucchini" 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) --Multipart=_Tue__12_Sep_2006_18_09_25_+0200_m=xn_KgsIWZaeVqx Content-Type: text/x-tex; name="cont-loc.tex" Content-Disposition: attachment; filename="cont-loc.tex" Content-Transfer-Encoding: 7bit \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 --Multipart=_Tue__12_Sep_2006_18_09_25_+0200_m=xn_KgsIWZaeVqx Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context --Multipart=_Tue__12_Sep_2006_18_09_25_+0200_m=xn_KgsIWZaeVqx--