From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/44626 Path: news.gmane.org!not-for-mail From: "Zhaopeng Xing" Newsgroups: gmane.comp.tex.context Subject: Re: t-vim problem Date: Tue, 7 Oct 2008 21:54:38 +0200 Message-ID: <72c60e910810071254ncc75025wa238151e35421680@mail.gmail.com> References: <72c60e910810070144p3fe307d2se0588edf6f63a841@mail.gmail.com> <72c60e910810071246p63f61369y9c4631d545e49732@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_57518_6273872.1223409278744" X-Trace: ger.gmane.org 1223409380 6477 80.91.229.12 (7 Oct 2008 19:56:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 7 Oct 2008 19:56:20 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Tue Oct 07 21:57:17 2008 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 1KnIgG-0007no-Sr for gctc-ntg-context-518@m.gmane.org; Tue, 07 Oct 2008 21:57:16 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 134731FDDB; Tue, 7 Oct 2008 21:56:11 +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 20907-01-9; Tue, 7 Oct 2008 21:55:15 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0AE5D1FD55; Tue, 7 Oct 2008 21:55:15 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B3A651FD55 for ; Tue, 7 Oct 2008 21:55:13 +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 21182-01-8 for ; Tue, 7 Oct 2008 21:54:39 +0200 (CEST) Original-Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.189]) by ronja.ntg.nl (Postfix) with ESMTP id 1E6AC1FD06 for ; Tue, 7 Oct 2008 21:54:39 +0200 (CEST) Original-Received: by fk-out-0910.google.com with SMTP id 18so3049012fks.2 for ; Tue, 07 Oct 2008 12:54:38 -0700 (PDT) Original-Received: by 10.187.171.8 with SMTP id y8mr1414871fao.57.1223409278759; Tue, 07 Oct 2008 12:54:38 -0700 (PDT) Original-Received: by 10.187.231.17 with HTTP; Tue, 7 Oct 2008 12:54:38 -0700 (PDT) In-Reply-To: <72c60e910810071246p63f61369y9c4631d545e49732@mail.gmail.com> 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:44626 Archived-At: ------=_Part_57518_6273872.1223409278744 Content-Type: multipart/alternative; boundary="----=_Part_57519_9500469.1223409278745" ------=_Part_57519_9500469.1223409278745 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline The attachment is my test file and logs. Thanks. 2008/10/7 Zhaopeng Xing > 2008/10/7 Aditya Mahajan > >> On Tue, 7 Oct 2008, Zhaopeng Xing wrote: >> >> > Hi Aditya, >> > >> > I am using t-vim 2008.09.15, but the following sample runs problem with >> the >> > hightlighting file name. >> > >> > \usemodule[vim] >> > >> > \starttext >> > >> > \definevimtyping [RUBY] [syntax=ruby] >> > >> > \startRUBY >> > >> > #! /usr/bin/ruby >> > >> > # This is my first ruby program >> > >> > puts "Hello World" >> > >> > \stopRUBY >> > >> > \stoptext >> > >> > >> > The message is saying: >> > >> > >> > ! I can't find file `untitled-1-vimsyntax.tmp-vimsyntax.tmp'. >> > >> > >> > >> > \relax >> > >> > \dodotypevimfile ...\input #2-vimsyntax.tmp\relax >> > >> > \egroup \@@vsafter >> > >> > l.8 \stopRUBY >> > >> > Please type another input file name: >> >> I thought that I had corrected this. Are you using a recent mtxrun? Type >> in mtxrun --help. Does the third line say >> >> MtxRun | --execute run a script or program (--noquotes) >> > > Yes, it is. I am using the latest minimal and t-vim is installed in > texmf-local. > > >> >> > I checked the directory. The file should be named to >> > untitled-1-vimsyntax.tmp instead of >> untitled-1-vimsyntax.tmp-vimsyntax.tmp. >> >> The filenaming is correct. t-vim writes a file called >> \jobname-\number-vimsyntax.tmp and then 2context.vim writes a file with >> -vimsyntax.tmp, so in effect t-vim is looking for a file called >> >> \jobname-\number-vimsyntax.tmp-vimsyntax.tmp. >> >> This slightly confusing naming scheme is so that --purge does remove all >> the temporary files. >> > I do not know exactly the inside mechanism. When the message asked me about > the file name, I input \jobname-\number-vimsyntax.tmp and it works. So I > think that the file name should be \jobname-\number-vimsyntax.tmp. > >> >> > Can you show me how to figure out such a problem? Thanks. >> >> Which OS are you using? >> > I am using Archlinux on a Thinkpad T43. The vi program works fine. > > >> 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 : https://foundry.supelec.fr/projects/contextrev/ >> wiki : http://contextgarden.net >> >> ___________________________________________________________________________________ >> > > > > -- > Zhaopeng XING > > Tinbergen Institute > -- Zhaopeng XING Tinbergen Institute ------=_Part_57519_9500469.1223409278745 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline
The attachment is my test file and logs. Thanks.

2008/10/7 Zhaopeng Xing <zpxing@gmail.com>
2008/10/7 Aditya Mahajan <adityam@umich.edu>
On Tue, 7 Oct 2008, Zhaopeng Xing wrote:

> Hi Aditya,
>
> I am using t-vim 2008.09.15, but the following sample runs problem with the
> hightlighting file name.
>
> \usemodule[vim]
>
> \starttext
>
> \definevimtyping [RUBY] [syntax=ruby]
>
> \startRUBY
>
> #! /usr/bin/ruby
>
> # This is my first ruby program
>
> puts "Hello World"
>
> \stopRUBY
>
> \stoptext
>
>
> The message is saying:
>
>
> ! I can't find file `untitled-1-vimsyntax.tmp-vimsyntax.tmp'.
>
> <to be read again>
>
> \relax
>
> \dodotypevimfile ...\input #2-vimsyntax.tmp\relax
>
> \egroup \@@vsafter
>
> l.8 \stopRUBY
>
> Please type another input file name:

I thought that I had corrected this. Are you using a recent mtxrun? Type
in mtxrun --help. Does the third line say

MtxRun | --execute             run a script or program (--noquotes)
 
Yes, it is. I am using the latest minimal and t-vim is installed in texmf-local.
 

> I checked the directory. The file should be named to
> untitled-1-vimsyntax.tmp instead of untitled-1-vimsyntax.tmp-vimsyntax.tmp.

The filenaming is correct. t-vim writes a file called
\jobname-\number-vimsyntax.tmp and then 2context.vim writes a file with
<filename>-vimsyntax.tmp, so in effect t-vim is looking for a file called

\jobname-\number-vimsyntax.tmp-vimsyntax.tmp.

This slightly confusing naming scheme is so that --purge does remove all
the temporary files.
I do not know exactly the inside mechanism. When the message asked me about the file name, I input \jobname-\number-vimsyntax.tmp and it works. So I think that the file name should be \jobname-\number-vimsyntax.tmp.

> Can you show me how to figure out such a problem? Thanks.

Which OS are you using?
I am using Archlinux on a Thinkpad T43. The vi program works fine.


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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________



--
Zhaopeng XING

Tinbergen Institute



--
Zhaopeng XING

Tinbergen Institute
------=_Part_57519_9500469.1223409278745-- ------=_Part_57518_6273872.1223409278744 Content-Type: application/zip; name=test.zip Content-Transfer-Encoding: base64 X-Attachment-Id: f_fm0yaha70 Content-Disposition: attachment; filename=test.zip UEsDBBQAAAAIAJSuRznX9pliQQAAAEMAAAASABwAdGVzdC12aW1zeW50YXgudG1wVVQJAAMHvutI SL7rSHV4CwABBOgDAAAE6AMAAFNWVNAvLS7ST8rM0y8qTarkUlYIycgsVgCi3EqFtMyi4hIFkLhC QVF+elFiLldBaUmxgpJHak5OvkJ4flFOihIAUEsDBBQAAAAIAJWuRzmAm1WhRwAAAEwAAAAIABwA dGVzdC50dWlVVAkAAwm+60hIvutIdXgLAAEE6AMAAAToAwAAS1aIKcnILM4sLk5NLsnMzytOLUgs SizJL6rWreVKhkmWlmTmZJZUlqUWFQPVVBsZGJjpGVjqGRnWcqUpJClUl6QWl9RyAQBQSwMEFAAA AAgAla5HOYDgKRyGAQAAmgQAAAgAHAB0ZXN0LnR1YVVUCQADCb7rSEi+60h1eAsAAQToAwAABOgD AACFUk1vgzAMvfMrrF3aHRrRSvuU+CXTDgYMTZUmKHG7TdP++xJGi2lFd8K89/z8ZGe1gkYbAoBX YAqcrSLg/B45ApWzvCKbsMC475Jok+fPap2r/CmWr5uHRFKosKNIvhVF8QZKKXiP1XvijuSDdrZv fFT5i9qss4SX1GoLroEDa6P5q4+RZbqBnSsBbZ2+auju/63jCVYUcDea3gFvyYInPngLZOtkNbT8 Uako4Bt+enbiNDHKjKvQAOuIM5aGlLaBPAtDdUSvExXO1gIah4gO/nAdBqE/AaN6mNtFSAj6pDU1 2tKA1Mi4XAT2yNR+Le7nFB16bD1223mJ0YHn2cY45FTOSypnAt2wCIeyw5ZuhbzJepfexbxgOGH/ mv5VxSVHjThK54LmSIizjNDlYXanw5wl0sqVO6pYGJ2AS5v+FQqBNAnOM9XpKMJIgle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flQofCxjVI4LJc7vyowIankxdytwKEk79WhTBeTE7QpUlHgtanYrXahQebh84ykcsVmEiu3NQk KFCv3da6aoGmmGpdv7gLUyc0RSG19NJoECGVvljyuIQIDfKumtVTw4lUrBCOvJc/EVOE0NtCOd/m TGsrFdBUkScEuKdwcpOWpNBQ5k9hoUzC1fzaQNo0JvfYN+j74TI+roIJY+FcHlNBe34N72U2UPTx 5FLz2/h49ub04GKTfL8pqRHa283vwBKjyHWG/cR8QNmRS9f+pA8p0yCcmVvwLotWh0iQxqWXSvrR +Gz9Bm08FBYdan/7/gzXZybrQ09lAtxDtSG2Bkd0Del1T6s6rUx+BJugoxtp0ibyeTE/W4/YK28I FSzyFHjGpd4FBnefvkVF6rJ+alITOgLhjGNEUdSXuig9PGvPg9cu96A98vQxs6YsoL+3N3RceLTA VLQDfUdt4fPZ26/zmOxEIYkOgRZw0m9ADhWnMUXNc/rH8fcK/WfqHORoM9TJCALQv7H3A0q0EdVG qX3T3qlubC41V2uM9gyvX+/CIfdcAVpL3cAkSWktps+pDsGUPtA/eXdYIRSWOk6C6Rr7A1BLAQIe AxQAAAAIAJSuRznX9pliQQAAAEMAAAASABgAAAAAAAEAAACkgQAAAAB0ZXN0LXZpbXN5bnRheC50 bXBVVAUAAwe+60h1eAsAAQToAwAABOgDAABQSwECHgMUAAAACACVrkc5gJtVoUcAAABMAAAACAAY AAAAAAABAAAApIGNAAAAdGVzdC50dWlVVAUAAwm+60h1eAsAAQToAwAABOgDAABQSwECHgMUAAAA CACVrkc5gOApHIYBAACaBAAACAAYAAAAAAABAAAApIEWAQAAdGVzdC50dWFVVAUAAwm+60h1eAsA AQToAwAABOgDAABQSwECHgMUAAAACACSrkc5FfLdxksAAABqAAAACAAYAAAAAAABAAAApIHeAgAA dGVzdC50b3BVVAUAAwS+60h1eAsAAQToAwAABOgDAABQSwECHgMUAAAACAB2rkc53FHXQ4QAAACk AAAACAAYAAAAAAABAAAApIFrAwAAdGVzdC50ZXhVVAUAA8+960h1eAsAAQToAwAABOgDAABQSwEC HgMUAAAACACVrkc5ClvBlhoDAAC5CwAACAAYAAAAAAABAAAApIExBAAAdGVzdC5sb2dVVAUAAwm+ 60h1eAsAAQToAwAABOgDAABQSwUGAAAAAAYABgDeAQAAjQcAAAAA ------=_Part_57518_6273872.1223409278744 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_57518_6273872.1223409278744--