From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74901 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Including command output Date: Tue, 6 Mar 2012 00:04:31 -0500 (EST) Message-ID: References: <1330916832.17258.45.camel@kip-laptop> <1330997549.17258.55.camel@kip-laptop> <1331003479.17258.62.camel@kip-laptop> <1331004991.17258.64.camel@kip-laptop> <1331005269.17258.66.camel@kip-laptop> <1331006202.17258.67.camel@kip-laptop> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1331010305 23672 80.91.229.3 (6 Mar 2012 05:05:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 6 Mar 2012 05:05:05 +0000 (UTC) Cc: mailing list for ConTeXt users To: Kip Warner Original-X-From: ntg-context-bounces@ntg.nl Tue Mar 06 06:05:04 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1S4ma6-00082w-Jg for gctc-ntg-context-518@m.gmane.org; Tue, 06 Mar 2012 06:05:02 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D56A8CB2A5; Tue, 6 Mar 2012 06:05:01 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ewsWaaQOFtOf; Tue, 6 Mar 2012 06:05:01 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0098ACB290; Tue, 6 Mar 2012 06:04:58 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BB1A2CB290 for ; Tue, 6 Mar 2012 06:04:56 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 5LQTxgPiBpZE for ; Tue, 6 Mar 2012 06:04:45 +0100 (CET) Original-Received: from filter5-ams.mf.surf.net (filter5-ams.mf.surf.net [192.87.102.73]) by balder.ntg.nl (Postfix) with ESMTP id C3FB4CB28F for ; Tue, 6 Mar 2012 06:04:44 +0100 (CET) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by filter5-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q26598SN029082 for ; Tue, 6 Mar 2012 06:09:09 +0100 Original-Received: FROM adi-netbook (bas3-montreal02-1096681081.dsl.bell.ca [65.94.6.121]) By hackers.mr.itd.umich.edu ID 4F559AE6.CE855.16600 ; Authuser adityam; 6 Mar 2012 00:04:39 EST In-Reply-To: <1331006202.17258.67.camel@kip-laptop> User-Agent: Alpine 2.02 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.14.81; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0IGG598uq - 2769e47cbbee - 20120306 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.73 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:74901 Archived-At: On Mon, 5 Mar 2012, Kip Warner wrote: > On Mon, 2012-03-05 at 22:50 -0500, Aditya Mahajan wrote: >> The error is not due to the macro \BazaarRevision. The log file shows that >> the group (for {\loggingall \BazaarRevison}) is closed properly; the error >> is displayed after that. So, something else in your setup is causing the >> error. > > It doesn't bail unless I replace the previous definition with yours. > Here is an example of its usage from my source: > > \setupinteraction > [state=start, > color=colour_link, > contrastcolor=colour_link, > focus=standard, > title=Some Book (Bzr r\BazaarRevision), > author=Some Book (Bzr r\BazaarRevision)] Why don't you use the first version (\initializebazaarversion and \usebazaarversion)? \def\initializeBazaar {\ctxlua{context("\\global\\edef\\BazaarRevision{\%s}", os.resultof"bzr revno | tr -d '\\n'")}} \initializeBazaar \setupinteraction [state=start, color=colour_link, contrastcolor=colour_link, focus=standard, title=Some Book (Bzr r\BazaarRevision), author=Some Book (Bzr r\BazaarRevision)] \starttext Hello \BazaarRevision Bye \stoptext > The rest of the book just has some \BazaarRevision scattered here and > there, but I can't see anything unusual about their usage or context. It helps if you try to create a minimal example. Aditya ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________