Changes

Jump to navigation Jump to search
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===
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:
<codepre>
#!/bin/sh
cd /Applications/ConTeXtMinimals/
 
. /Applications/ConTeXtMinimals/tex/setuptex /Applications/ConTeXtMinimals/tex
 
cd %%d
 
texexec %%p
</codepre>
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 text in its text field:
<codepre>
#!/bin/sh
cd /Applications/ConTeXtMinimals/
cd %%d
context %%p
</codepre>
6b. If you explore the Commands window, you will see that clickin clicking 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. This will open a window mirroring the content of the Terminal (i.e. what ConTeXt is communicating you)
==Notes==
89

edits

Navigation menu