From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/44998 Path: news.gmane.org!not-for-mail From: Ruini Xue Newsgroups: gmane.comp.tex.context Subject: Can I use \startbuffer in other command? Date: Thu, 23 Oct 2008 08:46:39 +0000 (UTC) Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1224753258 9596 80.91.229.12 (23 Oct 2008 09:14:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 23 Oct 2008 09:14:18 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Thu Oct 23 11:15:19 2008 connect(): Connection refused 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 lo.gmane.org with esmtp (Exim 4.50) id 1KswHA-0003PC-S3 for gctc-ntg-context-518@m.gmane.org; Thu, 23 Oct 2008 11:14:40 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7C93E1FB60; Thu, 23 Oct 2008 11:13:27 +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 21266-01-12; Thu, 23 Oct 2008 11:12:47 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 19F721FB98; Thu, 23 Oct 2008 11:12:15 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DD7DB1FB95 for ; Thu, 23 Oct 2008 11:12:12 +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 21266-01-10 for ; Thu, 23 Oct 2008 11:11:31 +0200 (CEST) Original-Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by ronja.ntg.nl (Postfix) with ESMTP id 25D1C1FB57 for ; Thu, 23 Oct 2008 10:46:49 +0200 (CEST) Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KsvqB-0008IQ-VX for ntg-context@ntg.nl; Thu, 23 Oct 2008 08:46:48 +0000 Original-Received: from 166.111.68.169 ([166.111.68.169]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 23 Oct 2008 08:46:47 +0000 Original-Received: from xueruini by 166.111.68.169 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 23 Oct 2008 08:46:47 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 35 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 166.111.68.169 (Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/525.13 (KHTML, like Gecko) Chrome/0.2.149.30 Safari/525.13) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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:44998 Archived-At: I have two questions: 1. How to define a start-stop command to accept options? I want to define a start-stop command which can accept options (as \startitemize [packed]), however the \definestartstop does not support this. I found a solution in the list: http://www.ntg.nl/pipermail/ntg- context/2007/025969.html Unfortunately, when I use \startbuffer in it, context prints "*" in the terminal and waits for input. So it comes to the second question 2. Can \startbuffer be used in other commands? My code is as following: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \def\startabstract{% \dosingleempty\dostartabstract} \long\def\dostartabstract[#1]#2\stopabstract{% \startbuffer[#1] #2\stopbuffer} \let\stopabstract\relax \startabstract [long] a long abstract \stopabstract \startabstract [short] a short abstract \stopabstract %%%%%%%%%%%%%%%% -- ruini ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________