From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/11293 Path: main.gmane.org!not-for-mail From: Giuseppe Bilotta Newsgroups: gmane.comp.tex.context Subject: Re[2]: Displayed material, again Date: Mon, 10 Mar 2003 21:22:14 +0100 Sender: ntg-context-admin@ntg.nl Message-ID: <2527490639.20030310212214@iol.it> References: <6888666D-5318-11D7-93AD-0050E4258255@fastmail.fm> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1047327905 14341 80.91.224.249 (10 Mar 2003 20:25:05 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 10 Mar 2003 20:25:05 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Mon Mar 10 21:25:01 2003 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18sTpV-0003im-00 for ; Mon, 10 Mar 2003 21:25:01 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 2086A10B3F; Mon, 10 Mar 2003 21:25:40 +0100 (MET) Original-Received: from smtp3.libero.it (smtp3.libero.it [193.70.192.127]) by ref.ntg.nl (Postfix) with ESMTP id 5E63F10AB6 for ; Mon, 10 Mar 2003 21:23:06 +0100 (MET) Original-Received: from [151.29.130.71] (151.29.130.71) by smtp3.libero.it (6.7.015) id 3E44E96700BFE206 for ntg-context@ntg.nl; Mon, 10 Mar 2003 21:23:00 +0100 X-Mailer: The Bat! (v1.63 Beta/7) X-Priority: 3 (Normal) Original-To: ntg-context@ntg.nl In-Reply-To: <6888666D-5318-11D7-93AD-0050E4258255@fastmail.fm> Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:11293 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:11293 Monday, March 10, 2003 Bruce D'Arcus wrote: BDA> Since I've earlier agreed with you on this Giuseppe, I'll do so here BDA> too. BDA> However, there seems to be something weird with this sample file. In BDA> the first Knuth entry, the first paragraph is not indented, while in BDA> the second (at the end) it is. This is a matter of trivial detail BDA> though, and I agree with your basic request. Actually that indent/noindent for the first line of the displayed material was just a personal test to see if I could make it work (so as to distinguish when the displayed material started a new paragraph and when not --when there is indentation on the first line it's because it starts a new paragraph ...) Anyway, I built a "quick and dirty" patch which seems to work for most environments which, I think, require it: itemgroups, definitions, formulas, verbatim. You can put it in your cont-loc between \unprotect ... \protect pairs: === BEGIN PATCH === \startvariables all auto: auto \stopvariables \def\@@stopdefinitie#1% {\par \dostopattributes \endgroup \getvalue{\??dd#1\c!na}% \egroup % temporary hack \doifvalue{\??dd#1\c!springvolgendein}\v!nee\noindentation \doifvalue{\??dd#1\c!springvolgendein}\v!auto\noindent} \def\stopitemgroup {\iftextitems \removeunwantedspaces\space\ignorespaces \else \par \fi \ifnum\itemcolumndepth=\zerocount \dolistreference \fi % beware ! \iffirstlist \else \endgroup \fi % toegevoegd, eerste \som opent groep \ifnum\itemcolumndepth=\itemlevel\relax \stopkolommen \doglobal\newcounter\itemcolumndepth \getitemparameter\itemlevel\c!na \else \ifnum\itemlevel=\plusone \doitembreak\allowbreak % toegevoegd \getitemparameter1\c!na \doif\@@oospringvolgendein\v!nee\noindentation \doif\@@oospringvolgendein\v!auto\noindent \fi \fi \endgroup \doglobal\decrement(\itemlevel,\itemincrement)% \egroup} \def\dostopformula {\doplaceformulanumber \getvalue{\e!stop\getvalue{\??fm\currentformula\c!variant}\e!formule}% \resetlastlinewidth \nonoindentation \doifvalue{\??fm\currentformula\c!springvolgendein}\v!nee\noindentation \doifvalue{\??fm\currentformula\c!springvolgendein}\v!auto\noindent \egroup} \def\dostoptyping#1% {\stopverbatimcolor \stopopelkaar % includes \egroup \getvalue{\??tp#1\c!na}% \doifvalue{\??tp#1\c!springvolgendein}\v!nee\noindentation \doifvalue{\??tp#1\c!springvolgendein}\v!auto\noindent} === END PATCH === Remember to issue the following instructions: \setupformulas[indentnext=auto] \setupitemgroups[indentnext=auto] to make it work. No need to regenerate the formats (you may need to refresh the filename database if you didn't have a cont-loc.tex before that). Hans, can we hope for this to go into the core for the next beta? Note: while I think it should be done for quotations as well, this seems to be a feature "in development" so I won't touch it for now. -- Giuseppe "Oblomov" Bilotta