Changes

Jump to navigation Jump to search
3,519 bytes added ,  08:39, 27 June 2008
. ~/context/tex/setuptex ~/context/tex
This will enable you to use both TeX Live and ConTeXt minimals without interferring with each other.
 
==Mac newbie installation and configuration==
 
The following assumes that you want to use ConTeXt and you are a not inside unix world (otherwise, see before).
It guides you to install ConTeXt minimal installation under Mac in the typical Applications folder. Then it gives you some information
about how to configure [http://smultron.sourceforge.net/ Smultron] to work as an editor for working with ConTeXt.
Smultron is a mac-only, open source text editor which is very easy to use and at the same time powerful (see also [http://en.wikipedia.org/wiki/Smultron]).
 
 
===ConTeXt installation===
 
1. Create a folder inside your Applications folder and name it "ConTeXtMinimals"
 
2. Open a Terminal window (i.e. go under Utilities and open the Terminal app: a little window pops up)
 
3. type this:
<code>
cd /Applications/ConTeXtMinimals/
</code>
it means "change directory": now we are working under the folder we have created
 
4. type this:
<code>
rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh .
</code>
 
we have called rsync, a program which goes on the contexgarden site (--> you must be connected to internet) and download all the necessary files for us
 
Now (well, after a while...) we have all the required files into the /Applications/ConTeXtMinimals folder
 
===Smultron installation and configuration===
 
1. Smultron is a mac application. To install it, simply download the dmg and put the app under the Applications folder (as usual)
 
2. Open Smultron and go under Tools-->Handle Commands-->Show Commands Window
 
3. The resulting window allows you to define some commands which can be executed by Smultron. Substantially, this means that Smultron opens for you a Terminal, types the code you want and presses return.
 
4. Create a new command by pressing the "New Command" button and type a name (e.g. minimalsTexexec). Then, write in the text field at the bottom:
 
<code>
#!/bin/sh
 
cd /Applications/ConTeXtMinimals/
 
. /Applications/ConTeXtMinimals/tex/setuptex /Applications/ConTeXtMinimals/tex
 
cd %%d
 
texexec %%p
</code>
 
Texexec is the command you should call from the Terminal to run ConTeXt. Now Smultron can do it for you.
 
5. Write your ConTeXt file with Smultron and save it. When you want to compile it, simply go under Tools-->Commands-->Other-->minimalsTexexec. This will generate a pdf file in the same folder of your .tex file.
 
6. If you want to experiment with LuaTeX simply add another command (you can name it e.g. minimalsLua) with this instead in its text field:
 
<code>
#!/bin/sh
cd /Applications/ConTeXtMinimals/
. /Applications/ConTeXtMinimals/tex/setuptex /Applications/ConTeXtMinimals/tex
cd %%d
context %%p
</code>
 
6b. If you explore the Commands window, you will see that clickin under the Shortcut tab you can insert a shortcut
 
6c. If you want to see what ConTeXs is telling you (which is fundamental in case of unexpected behaviors) you can select Tools-->Handle Commands-->Show Command Result Window
 
==Notes==
1. All the process requires that you have installed on your machine rsync, ruby and perl. But if you are on macosx, Apple should already have provided it, so at 99% there should not be problems.
 
2. We are not using the famous TeXShop editor, because it is slighlty more complicated and typically you grab it bundled with a TeX distribution (like MacTeX), and opportunely configured. By using Smultron, we have created a completely autonomous and lightweight ConTeXTMinimals installation which can work aside MacTeX/TeXShop installation.
 
== Windows ==
89

edits

Navigation menu