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'.
<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