Hi I am new to ConTeXt. Once I saw the showcase, I thought that this is even much better than LaTeX which I have been using for 3 years. I have MikTeX installed on my WinXP machine and according to the advice tried to setup SciTE to write some practice documents. Still I have problems. I have done everything in SCiTE in ConTeXt manual, but I can't still compile my files. I have to go to command line and do it manually. Should I install Ruby on my machine? What is Ruby for anyway? Where should I get those .rb scripts and where should I put them? Keep up the good work, Cheers, Hooman
Hooman Javidnia wrote:
Should I install Ruby on my machine?
Yes, you'll need both Ruby and Perl. Both are scripting languages. You must have missed the discussion about this earlier today, but no problem, it got wikified: http://wiki.contextgarden.net/Windows_Installation#Stand-alone_ConTeXt_distr... If you like to use command interface and unix type command line tools, you can install cygwin on your Windows and with Cygwin you get perl and ruby. Cygwin is available at http://www.cygwin.com/ - the "Install or update now" link is made for us Windows dummies, it'll tell you what to do. So: Either follow the nine-step program given in the wiki (link above) or install cygwin and continue the nine-step program from step 3 (although, judging by your question and my own experience with the same issue, the only things you miss at this point are Ruby and possibly Perl). Whichever way, somehow you need to make sure you have Ruby and Perl on your machine before things start to work. Hope this helps, Mari
It would of course help if I learned to read - I didn't exactly answer your question fully and I'm sorry about that. I cannot quite answer to all parts of your questions, but here's a bit more: Yes, you need to have working installations of Ruby and Perl on your computer. If you can make them tell you their version (see the wiki Windows installation page), you can assume the installations work. Then you also need to find the appropriate *.properties files the mscite.pdf manual explains about. I must admit that I have no idea whether they are included in MikTex, but the Windows search will tell you pretty fast if you have them or not. It may be useful to know that the file SciTEUser.properties doesn't exist until you put something in there, so instruction "copy context.properties where your SciTEUser.properties file is" doesn't necessarily make make much sense. In the Scite I downloaded today on my Windows 2000, the user properties file went into my C:\Documents and Settings\Username folder, I think it'll do the same in XP - so put the context.properties into equivalent folder on your computer. I get this far. Having copied the properties files and restarted Scite, the menu looks good, I have the build and compile commands and the test file is now recognized as tex/context. But that's it then for tonight, something is still missing either in my Windows path or somewhere else. And it's time for me to go to bed. But yes, I'd like to know, too, how this is done. Will need to reinstall a computer soonish and that means reinstalling (upgrading) context into a brand new XP. It would be nice to try MikTeX for a change... Mari
Thanks Mari for the very valuable advice. With your help, now I have something that works (kind of): Here is what I did: 1. I installed Ruby. I have no idea why it should be installed on a system so that ConTeXt works. 2. I downloaded texmfstart.exe and put in the texmf bin folder (I have MikTeX 2.4 on Win XP). 3. As you had nicely suggested the SciTE user profile wasn't in the SciTE's working directory. It was in C:/Documents and Settings/My Username. I copied the context.properties to the same directory and added the line "import context" to it. 4. I wasn't sure whether I should copy the other ConTeXt properties files to this directory or leave them in SciTE's main folder. I left them to be in the SciTE's main folder. 5. After restarting as you have said I have a working version of SCiTE. Under the Tools menu I have these Items: Compile Ctrl-F7 Build F7 Go F5 Check TeX File Ctrl+0 ... When I issue the Compile command I receive the following message:
texmfstart concheck.rb myfile.tex unknown file type: texmfscripts ...
It seems that SciTE can't still detect type of the file that I want to compile or build. I get the same message when I Build myfile.tex too, although Build process finishes without any errors. 6. I have all Latin Modern fonts (open type) on my computer. Still I can't configure SciTE to work correctly with these fonts. Actully after I added context.properties it messed up the origianl font scheme of SciTE. Any ideas on this? 7. When I choose "Open" from file menu, tex is not among the file types. Should I add something to the properties files to solve this? I think I am getting ready to make my move to ConTeXt. I know that I will be bugging this mailing list with more question, but setting up my editor is the first step. Thanks again. hooman
Hooman Javidnia wrote:
It seems that SciTE can't still detect type of the file that I want to compile or build. I get the same message when I Build myfile.tex too, although Build process finishes without any errors.
run this once in a console: FTYPE RubyScript=c:\data\system\ruby\bin\ruby.exe %%1 %%* FTYPE PerlScript=c:\data\system\perl\bin\perl.exe %%1 %%* FTYPE PythonScript=c:\data\system\python\bin\python.exe %%1 %%* FTYPE LuaScript=c:\data\system\lua\bin\lua.exe %%1 %%* ASSOC .rb=RubyScript ASSOC .rbw=RubyScript ASSOC .pl=PerlScript ASSOC .py=PythonScript ASSOC .lua=LuaScript FTYPE SomeText=c:\data\system\scite\wscite\scite.exe ASSOC .exa=SomeText ASSOC .xml=SomeText ASSOC .tex=SomeText ASSOC .mp=SomeText
participants (3)
-
Hans Hagen
-
Hooman Javidnia
-
Mari Voipio