From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/11317 Path: main.gmane.org!not-for-mail From: Giuseppe Bilotta Newsgroups: gmane.comp.tex.context Subject: Re[3]: Displayed material, again Date: Tue, 11 Mar 2003 12:47:50 +0100 Sender: ntg-context-admin@ntg.nl Message-ID: <1119143898.20030311124750@iol.it> References: <5.1.0.14.1.20030311001735.0303a7e8@server-1> <5.1.0.14.1.20030311001735.0303a7e8@server-1> <5.1.0.14.1.20030311115002.024a9010@server-1> 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 1047383402 28625 80.91.224.249 (11 Mar 2003 11:50:02 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 11 Mar 2003 11:50:02 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Tue Mar 11 12:50:00 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 18siGe-0007R7-00 for ; Tue, 11 Mar 2003 12:50:00 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 5A85F10B48; Tue, 11 Mar 2003 12:50:39 +0100 (MET) Original-Received: from smtp2.libero.it (smtp2.libero.it [193.70.192.52]) by ref.ntg.nl (Postfix) with ESMTP id 62F4D10AB6 for ; Tue, 11 Mar 2003 12:48:39 +0100 (MET) Original-Received: from [151.29.130.187] (151.29.130.187) by smtp2.libero.it (6.7.015) id 3E48BA3400AD51D0 for ntg-context@ntg.nl; Tue, 11 Mar 2003 12:48:39 +0100 X-Mailer: The Bat! (v1.63 Beta/7) X-Priority: 3 (Normal) Original-To: ntg-context@ntg.nl In-Reply-To: <5.1.0.14.1.20030311115002.024a9010@server-1> 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:11317 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:11317 Tuesday, March 11, 2003 Hans Hagen wrote: HH> What patch? Yesterday around 10 i was deparately trying to figure out why HH> our (linux) mail server was infected by a spammer (some kind of sendmail HH> bug combined with pop3 things) and in the process (took me the whole HH> morning) probably lost some mails. Ok, here it is: """ 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