From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/38320 Path: news.gmane.org!not-for-mail From: "Idris Samawi Hamid" Newsgroups: gmane.comp.tex.context Subject: Re: quotation/blockquote bug Date: Thu, 27 Dec 2007 16:45:43 -0700 Organization: Colorado State University Message-ID: References: <20071228001522.0f9f49c4.schuster.wolfgang@googlemail.com> 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 1198799375 26158 80.91.229.12 (27 Dec 2007 23:49:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 27 Dec 2007 23:49:35 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Fri Dec 28 00:49:49 2007 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 1J82Ty-0002f6-4F for gctc-ntg-context-518@m.gmane.org; Fri, 28 Dec 2007 00:49:46 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1E2F91FBF6; Fri, 28 Dec 2007 00:49:01 +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 22243-02-2; Fri, 28 Dec 2007 00:47:59 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 80EF21FBE8; Fri, 28 Dec 2007 00:47:56 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A31BA1FBE8 for ; Fri, 28 Dec 2007 00:47:29 +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 21672-02 for ; Fri, 28 Dec 2007 00:46:31 +0100 (CET) Original-Received: from trueband.net (director.trueband.net [216.163.120.8]) by ronja.ntg.nl (Postfix) with SMTP id 474771FBC5 for ; Fri, 28 Dec 2007 00:46:28 +0100 (CET) Original-Received: (qmail 24888 invoked by uid 1006); 27 Dec 2007 23:46:24 -0000 Original-Received: from ishamid@colostate.edu by rs0 by uid 1003 with qmail-scanner-1.16 (spamassassin: 3.1.4. Clear:SA:0(0.4/100.0):. Processed in 3.38019 secs); 27 Dec 2007 23:46:24 -0000 Original-Received: from unknown (HELO trueband.net) (172.16.0.18) by -v with SMTP; 27 Dec 2007 23:46:20 -0000 Original-Received: (qmail 14062 invoked from network); 27 Dec 2007 23:46:17 -0000 Original-Received: from unknown (HELO your-b27fb1c401) (75.104.84.217) by -v with SMTP; 27 Dec 2007 23:46:17 -0000 In-Reply-To: <20071228001522.0f9f49c4.schuster.wolfgang@googlemail.com> User-Agent: Opera Mail/9.24 (Win32) 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:38320 Archived-At: On Thu, 27 Dec 2007 16:15:22 -0700, Wolfgang Schuster wrote: > Your example is too long, I could reproduce this also with the folowing > short example. > > \startquotation text \quote{text} text\stopquotation Indeed, much more to the point :-) > The wrong right values did only appear if you use singlecommand > quotations within a quotation environment. > > The push and popdelimitedtext macros did not work correct in this case > and ConTeXt thinks there current environment is "quotation" and not > "blockquote" when it reaches the \stopblockquote command. > > A group around the single quote command helps, you core macros would > look like: > > \unprotect > > \def\delimitedtext[#1]% > {\bgroup > \pushdelimitedtext{#1}% > \doifelse{\delimitedtextparameter\c!method}\s!font > {\dofontdrivendelimited} > {\doifinsetelse{\delimitedtextparameter\c!location}{\v!paragraph, > \v!margin}% \dodelimitedtextpar\dodelimitedtexttxt}} > > \unexpanded\def\dodelimitedtextpar > {\dohandleleftdelimitedtext\c!left\relax > \groupedcommand > \donothing > {\dohandlerightdelimitedtext\c!right\removelastskip > \popdelimitedtext > \egroup}} > > \def\doquoteddelimited > {\dohandleleftdelimitedtext\c!left\relax > \groupedcommand > \donothing > {\dohandlerightdelimitedtext\c!right > \removelastskip > \popdelimitedtext > \egroup}} > > \def\doattributeddelimited > {\groupedcommand > {\dostartattributes{\??ci\currentdelimitedtext}\c!style\c!color} > {\dostopattributes > \popdelimitedtext > \egroup}} > > \protect > > I added in the macros above only a \bgroup in \delimitedtext and a > \egroup in every of the other three commands. There is a bug in here I think: ConTeXt validation gives error in file qabas-test.tex at line 6 in column 3: missing } for { error in file qabas-test.tex at line 10 in column 6: missing } for { line 6 is {\bgroup luatex eternally pauses with an apparent runaway argument.... But enclosing the whole thing {\quote{}} is a workaround. Thank you very much for your continuous outppouring of wisdom, Wolfgang! Best Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shi`i Studies Department of Philosophy Colorado State University Fort Collins, CO 80523 -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ ___________________________________________________________________________________ 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 ___________________________________________________________________________________