From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/38321 Path: news.gmane.org!not-for-mail From: "Wolfgang Schuster" Newsgroups: gmane.comp.tex.context Subject: Re: quotation/blockquote bug Date: Fri, 28 Dec 2007 01:05:09 +0100 Message-ID: <115224fb0712271605o38cc3214n3ee74a870de95516@mail.gmail.com> 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: multipart/mixed; boundary="----=_Part_1707_22462509.1198800309894" X-Trace: ger.gmane.org 1198801201 30359 80.91.229.12 (28 Dec 2007 00:20:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Dec 2007 00:20:01 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Fri Dec 28 01:20:14 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 1J82xR-0000yb-Jf for gctc-ntg-context-518@m.gmane.org; Fri, 28 Dec 2007 01:20:13 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 820A31FB57; Fri, 28 Dec 2007 01:11:45 +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-03; Fri, 28 Dec 2007 01:08:39 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 58E541FB1D; Fri, 28 Dec 2007 01:07:52 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0650A1FB1D for ; Fri, 28 Dec 2007 01:06:14 +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-04 for ; Fri, 28 Dec 2007 01:05:14 +0100 (CET) Original-Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.169]) by ronja.ntg.nl (Postfix) with ESMTP id 4DBB91FA86 for ; Fri, 28 Dec 2007 01:05:10 +0100 (CET) Original-Received: by ug-out-1314.google.com with SMTP id q2so1661079uge.50 for ; Thu, 27 Dec 2007 16:05:10 -0800 (PST) Original-Received: by 10.67.116.9 with SMTP id t9mr7539912ugm.77.1198800309899; Thu, 27 Dec 2007 16:05:09 -0800 (PST) Original-Received: by 10.67.19.16 with HTTP; Thu, 27 Dec 2007 16:05:09 -0800 (PST) In-Reply-To: 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:38321 Archived-At: ------=_Part_1707_22462509.1198800309894 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Thu, 27 Dec 2007 16:45:43 -0700 "Idris Samawi Hamid" wrote: > 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.... Not for me, I tested it with mkii and mkiv. I think it was also something weird introduced by the mail clint. I attached now my test file. > But enclosing the whole thing {\quote{}} is a workaround. Ugly workaround. > Thank you very much for your continuous outppouring of wisdom, Wolfgang! > > Best > Idris Greetings, Wolfgang ------=_Part_1707_22462509.1198800309894 Content-Type: application/x-tex; name=quote.tex Content-Transfer-Encoding: base64 X-Attachment-Id: f_fapyqag90 Content-Disposition: attachment; filename=quote.tex XHVucHJvdGVjdA0KDQpcZGVmXGRlbGltaXRlZHRleHRbIzFdJQ0KICB7XGJncm91cA0KICAgXHB1 c2hkZWxpbWl0ZWR0ZXh0eyMxfSUNCiAgIFxkb2lmZWxzZXtcZGVsaW1pdGVkdGV4dHBhcmFtZXRl clxjIW1ldGhvZH1ccyFmb250DQogICAgIHtcZG9mb250ZHJpdmVuZGVsaW1pdGVkfQ0KICAgICB7 XGRvaWZpbnNldGV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aWNoIHdlIGNhbGwgYSBccXVvdGF0aW9ue25vdy59IE9idmlvdXNseSwgdG9vLCBub3RoaW5n IGNhbiBiZQ0KbW92aW5nIGR1cmluZyBhIG5vdy4NClxzdG9wYmxvY2txdW90ZQ0KDQpcc3RvcHRl eHQ= ------=_Part_1707_22462509.1198800309894 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ------=_Part_1707_22462509.1198800309894--