Changes

Jump to navigation Jump to search
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. More, by pdfview we have auto update, which is one of the very relevant feature of TeXShop (If you do not know about all this stuff, see [http://wiki.contextgarden.net/Mac_Installation Mac installation]
=== TeXShop installation and configuration===
1. TeXShop is a popular TeX editor for Mac OS X. To install it, download the [http://www.uoregon.edu/~koch/texshop/obtaining.html disk image] and put the app under the Applications folder (as usual)
21. Launch TeXShop To install it, download the disk image from <code>http://www.uoregon.edu/~koch/texshop/obtaining. It will automatically create support files html</code> and put this app in the Applications folder alongside your home ConTeXTMinimals folder. This will be the place where the TeXShop engine for ConTeXt Minimals will be located.
32. Create an empty text document with your favorite text editor or Launch TeXShop. Then, insert this text in It will automatically create the document:necessary support files.
3. Create an empty text document with your favorite text editor or TeXShop. Then, insert the following text into the document:
<pre>
#!/bin/bash
export PATH=/Applications/ConTeXtMinimals/tex/texmf-osx-intel/bin:$PATH
texexec "$1"
</pre>
4. SAVE this document in your Home folder in “Library/TeXShop/Engines/” AS “ConTeXt-MKII.engine”. (TeXShop offers the .engine file format)
 
5. Repeat steps 3 and 4, by creating a file named “ConTeXt-MKIV.engine” that contains the lines:
<pre>
#!/bin/bash
export PATH=/Applications/ConTeXtMinimals/tex/texmf-osx-intel/bin:$PATH
export TEXMFCACHE=/Applications/ConTeXtMinimals/tex/texmf-cache
context "$1"
</pre>
 
6. Repeat steps 3 and 4 once more, by creating a file named “ConTeXt-XeTeX.engine” that contains the lines:
<pre>
#!/bin/bash
source export PATH=/Applications/ConTeXtMinimals/tex/setuptex texmf-osx-intel/Applications/ConTeXtMinimals/texbin:$PATHtexexec --xtx "$1"
</pre>
4. Save this document under "Library/TeXShop/Engines/" in your home folder and name it "ConTeXt Minimals.engine".
4a. chmod +x the "ConTeXt Minimals" file.===Typesetting with TeXShop===
51. Close all open documents in TeXShop, open a new one and select "ConTeXt Minimals" in , go the the list next Engine menu (immediately to the "Typeset" right of the “Typeset” button in the toolbar. Toolbar), and select one of<pre>ConTeXt-MKIIConTeXt-MKIVConTeXt-XeTex</pre>This will instruct TeXShop to use this engine to compose your documents.
62. Edit your ConTeXt document with TeXShop. In the TeXShop toolbar, in the “Typeset” menu, choose “ConTeXt” and “Pdftex”. (Check the TeXShop preferences for more settings.) When you want to typeset itthe document, simply hit Command-T press or go under Composition-->Composer“Typeset” at the top of the document window. This will generate a PDF file in the same folder of your .tex file.
===Notes===
Anonymous user

Navigation menu