From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/21370 Path: news.gmane.org!not-for-mail From: Radhelorn Newsgroups: gmane.comp.tex.context Subject: Not possible to redefine inbetween in \definedescription Date: Thu, 14 Jul 2005 15:43:14 +0400 Message-ID: <42D64FD2.5080104@mail.ru> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1121343795 7866 80.91.229.2 (14 Jul 2005 12:23:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 14 Jul 2005 12:23:15 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 14 14:23:12 2005 Return-path: 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 1Dt2ih-00027I-04 for gctc-ntg-context-518@m.gmane.org; Thu, 14 Jul 2005 14:21:39 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9E3ED127DA; Thu, 14 Jul 2005 14:21:38 +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 11238-03; Thu, 14 Jul 2005 14:21:38 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 81941127D4; Thu, 14 Jul 2005 14:18:12 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6C8FD127D4 for ; Thu, 14 Jul 2005 14:18:10 +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 11044-05-2 for ; Thu, 14 Jul 2005 14:18:09 +0200 (CEST) Original-Received: from mx2.mail.ru (mx2.mail.ru [194.67.23.122]) by ronja.ntg.nl (Postfix) with ESMTP id 6C0BD127B2 for ; Thu, 14 Jul 2005 14:18:09 +0200 (CEST) Original-Received: from [217.106.91.40] (port=39393 helo=[172.16.6.139]) by mx2.mail.ru with esmtp id 1Dt2fH-0007wB-00 for ntg-context@ntg.nl; Thu, 14 Jul 2005 16:18:08 +0400 User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on smtp.ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:21370 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:21370 Hello All! I think that I've found a bug in descriptions. It seems that it is impossible to redefine inbetween option -- it always produces a \blank. Try this: \definedescription[desc][before=before,after=after,inbetween=inbetween,location=top] \desc{test} test I've fixed it this way: --- core-des.tex.orig 2005-06-14 06:56:00.000000000 +0400 +++ core-des.tex 2005-07-14 15:26:20.000000000 +0400 @@ -372,7 +372,8 @@ \c!indenting,\c!indentnext,\c!align,\c!text,\c!distance,\c!command]% \getparameters[\??dd#1] [\s!do\c!state=\v!stop,\s!do\c!command=\normal@@descriptionhandler,\c!level=,#2]% - \doifvalue{\??dd#1\c!location}\v!top{\doassign[\??dd#1][\c!inbetween=\blank]}% + \doifvalue{\??dd#1\c!location}\v!top{% + \doifnotvalue{\??dd#1\c!inbetween}{\doassign[\??dd#1][\c!inbetween=\blank]}}% \setvalue {#1}{\dodoubleempty\@@description[#1]}% \setvalue{\e!start#1}{\dodoubleempty\@@startdescription[#1]}% \setvalue{\e!stop #1}{\@@stopdescription{#1}}}% And when using commands with brackets in argumets like: \definedescription[desc][before=\blank[small]] ConTeXt will give many errors, so arguments needs to be grouped (before={\blank[small]}). Is this intentional? Thanks for your time. -- Radhelorn