From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/31906 Path: news.gmane.org!not-for-mail From: "Karsten Heymann" Newsgroups: gmane.comp.tex.context Subject: how to write a section-like command (ignore following empty paragraphs) Date: Sat, 18 Nov 2006 13:55:38 +0100 Message-ID: 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 1163854568 8688 80.91.229.2 (18 Nov 2006 12:56:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 18 Nov 2006 12:56:08 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sat Nov 18 13:56:05 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 1GlPjm-00006g-Vx for gctc-ntg-context-518@m.gmane.org; Sat, 18 Nov 2006 13:56:03 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A40D11FFA0; Sat, 18 Nov 2006 13:55:22 +0100 (CET) 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 20318-02; Sat, 18 Nov 2006 13:55:12 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EDC5C1FF91; Sat, 18 Nov 2006 13:55:11 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1FFFE1FF94 for ; Sat, 18 Nov 2006 13:55:10 +0100 (CET) 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 19986-04-23 for ; Sat, 18 Nov 2006 13:55:03 +0100 (CET) Original-Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.183]) by ronja.ntg.nl (Postfix) with SMTP id 2B1671FF90 for ; Sat, 18 Nov 2006 13:55:03 +0100 (CET) Original-Received: by py-out-1112.google.com with SMTP id w49so649329pyg for ; Sat, 18 Nov 2006 04:55:39 -0800 (PST) Original-Received: by 10.35.66.13 with SMTP id t13mr4165560pyk.1163854538528; Sat, 18 Nov 2006 04:55:38 -0800 (PST) Original-Received: by 10.35.16.10 with HTTP; Sat, 18 Nov 2006 04:55:38 -0800 (PST) Original-To: "mailing list for ConTeXt users" Content-Disposition: inline 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:31906 Archived-At: Hello, I try to create a \section-like command in that respect that following empty lines are ignored. How do I have to change \SectionLike in the following example to achieve that? Yours, Karsten \setupindenting[medium] \indenting[yes,next] \setuphead[section][after={}] \def\SectionLike#1{\blank\par {\bf #1}\par\noindent\ignorespaces} \starttext \section{A Text} No empty line Second Paragraph \section{Another Text} With an empty line Second Paragraph \SectionLike{A Text} No empty line Second Paragraph \SectionLike{Another Text} with an empty line Second Paragraph \stoptext