From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/30134 Path: news.gmane.org!not-for-mail From: Sanjoy Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: \dontleavehmode and indenting after section (was Re: Context 2006.08.04 released) Date: Tue, 08 Aug 2006 19:42:03 +0100 Message-ID: References: <44D8CE2A.3030600@elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1155062547 21574 80.91.229.2 (8 Aug 2006 18:42:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 8 Aug 2006 18:42:27 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Aug 08 20:42:23 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 1GAWWx-0004IX-8h for gctc-ntg-context-518@m.gmane.org; Tue, 08 Aug 2006 20:42:19 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C69131FE52; Tue, 8 Aug 2006 20:42:18 +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 22239-05-3; Tue, 8 Aug 2006 20:42:13 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EBC991FE4B; Tue, 8 Aug 2006 20:42:12 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4A00E1FE4B for ; Tue, 8 Aug 2006 20:42:09 +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 22239-05-2 for ; Tue, 8 Aug 2006 20:42:04 +0200 (CEST) Original-Received: from mraos.ra.phy.cam.ac.uk (mraos.ra.phy.cam.ac.uk [131.111.48.8]) by ronja.ntg.nl (Postfix) with SMTP id B39261FE46 for ; Tue, 8 Aug 2006 20:42:04 +0200 (CEST) Original-Received: from skye.ra.phy.cam.ac.uk ([131.111.48.158] ident=mail) by mraos.ra.phy.cam.ac.uk with esmtp (Exim 4.43) id 1GAWWh-00011A-4P; Tue, 08 Aug 2006 19:42:03 +0100 Original-Received: from sanjoy by skye.ra.phy.cam.ac.uk with local (Exim 3.36 #1) id 1GAWWh-0004VF-00; Tue, 08 Aug 2006 19:42:03 +0100 Original-To: mailing list for ConTeXt users In-Reply-To: Your message of "Tue, 08 Aug 2006 19:47:22 +0200." <44D8CE2A.3030600@elvenkind.com> 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:30134 Archived-At: Taco wrote: > > Right in front of my nose (I was looking in the source files for a > > line that needed a % at the end). Is it because tex is still in > > horizontal mode thanks to the \dontleavehmode, and also because spaces > > after } are not ignored automatically? > > The answer is yes (the new release has a patch for this by adding > \ignorespaces at the end of the \section command). In my plain-TeX days I used \ignorespaces all over in definitions of \section and \subsection for that purpose. Eventually that and other formatting code got too messy (the worst was after I hacked up a \url macro). So rather than reinvent many wheels badly, I switched to ConTeXt. So thanks for the rapid fixes, to that one and to the overfull hbox from the indented \strut. -Sanjoy `Never underestimate the evil of which men of power are capable.' --Bertrand Russell, _War Crimes in Vietnam_, chapter 1.