From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/32568 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: \externalcommand? Date: Fri, 5 Jan 2007 19:02:49 -0500 (EST) Message-ID: References: <3C016A94-E892-4180-BC6E-66491BB8FA30@mac.com> <91F0BC80-6026-437F-9616-8DEE17D53B89@mac.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: sea.gmane.org 1168041794 10343 80.91.229.12 (6 Jan 2007 00:03:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 6 Jan 2007 00:03:14 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sat Jan 06 01:03:12 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 1H2z1j-00084t-Gm for gctc-ntg-context-518@m.gmane.org; Sat, 06 Jan 2007 01:03:11 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E89062013E; Sat, 6 Jan 2007 01:00:12 +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 31419-06-3; Sat, 6 Jan 2007 01:00:06 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1D9BC20115; Sat, 6 Jan 2007 01:00:06 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2130E20117 for ; Sat, 6 Jan 2007 01:00:02 +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 31419-06-2 for ; Sat, 6 Jan 2007 00:59:55 +0100 (CET) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by ronja.ntg.nl (Postfix) with ESMTP id 24F5A20104 for ; Sat, 6 Jan 2007 00:59:54 +0100 (CET) Original-Received: FROM aditya.engin.umich.edu (udhcp-wlan112.public.engin.umich.edu [141.213.120.122]) BY hackers.mr.itd.umich.edu ID 459EE72B.1FAB3.27540 ; 5 Jan 2007 19:02:51 -0500 Original-To: mailing list for ConTeXt users In-Reply-To: <91F0BC80-6026-437F-9616-8DEE17D53B89@mac.com> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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:32568 Archived-At: On Fri, 5 Jan 2007, cormullion@mac.com wrote: > On 2007-01-04, at 23:10.0, Aditya Mahajan wrote: > > > Perhaps the R module is easiest to understand. That method will > > work for > > most cases where you simply want to capture part of tex source and > > write > > it verbatim to a file, and then read the output back into tex. > > I'm really grateful for your continuing help. Thanks - and I've got > this working fairly easily. I'm trying to work out what ConTeXt does > when it reads in the text that the external program writes to the > tmp.out file... basically \input reads a file and treats the material as if it were written in the tex file. > It might be that I have to output some TeX commands to the tmp.out > file rather than just plain text. That is what we do in t-vim module. The 2context.vim script writes a file that tex can understand. >That will require one of the other methods, i think. Another option is \typefile{tmp.out} which will display the file verbatim, or \typevimfile[syntax=txt]{tmp.out} using txt.vim from http://www.vim.org/scripts/script.php?script_id=1532 Aditya