Changes

Jump to navigation Jump to search
1,162 bytes added ,  11:35, 25 November 2010
m
added some notes on installing SciTE & ConTeXt under Unix
Now save the settings file, close it, then close SciTE. When you restart SciTE, UTF-8 should be the default encoding.
==Installing on Unix==
Assuming you installed SciTE successfully and followed the instruction in the [http://www.pragma-ade.com/general/manuals/mscite-s.pdf manual] in order to enable ConTeXt support, there may be a problem in correctly using the Tools (like compiling and building from within SciTE). The launcher inside your Applications menu may be unaware of your $PATH variable, which might lead to an error like
 
<pre>
>mtxrun --autogenerate --script context --pdf myfile.tex
sh: mtxrun: not found
>Exit code: 127
</pre>
 
To correct this you need to create your own launcher, which executes a script (call it runscite) running SciTE whilst ensuring the $PATH variable is correctly set. You can achieve this by following the code
 
<pre>
cat <<'EOF' > /tmp/runscite
#!/bin/bash
export PATH=/usr/local/texlive/2010/bin/x86_64-linux:$PATH
exec scite $@
EOF
 
chmod +x /tmp/runscite
 
sudo cp /tmp/runscite /usr/local/bin
</pre>
 
where the PATH needs to point to your mtxrun (and context) scripts. Then you can have your launcher use the command /usr/local/bin/runscite and then you should be able to build your *.tex files from within SciTE by pressing [F7].
[[Category: Text Editors]]
1

edit

Navigation menu