Changes

Jump to navigation Jump to search
732 bytes added ,  17:21, 13 August 2017
correct command (whoami instead of who am i)
For easier your connivance you can copy all the commands in this block, paste it into the Terminal and hit RETURN:
mkdir $HOME/context
cd $HOME/context
rsync -av rsync://contextgarden.net/minimals/setup/first-setup.sh .
sh ./first-setup.sh --modules=all --engine=luatex
== Mac Configuring ConTeXt-Aware Editors: TeXShop, TeXworks, Texpad on the Mac ==
Typically, both most editors work out of the box with MacTeX, but if you are using a version earlier than those shipped with MacTeX 2011 (TeXShop 2.42) , or if you would like to use the Standalone distribution (ConTeXt Suite), you need to configure engines for ConTeXt manually.
=== TeXShop ===
* Start the Terminal you will find it in the Utility-folder in the Applications-folder
* find what Find your username is , if you do not know it already.<p>The command <code>whoami</code> will output your user name.</p> who am i the first word of the result is your username
* Open the standard MKIV engine for TeXShop enter
open -a TeXShop $HOME/Library/TeXShop/Engines/ConTeXt\ \(LuaTeX\).engine
* Save the engine with a new Name "ConTeXt Suite":
option click on the File menue menu
choose "Save As …"
change (LuaTeX) in the Name field to Suite
hit return
* change Change the set path line to:
set path= (/Users/username/context/tex/texmf-osx-64/bin $path /usr/local/bin)
If you installed in a different location then change /Users/username/context/ to the location where you
installed ConTeXt standalone. ''Do not forget to change username in the line above to your actual username!!''
* save Save the file again
use either the file menu or cmd-s
=== Texpad ===
[Texpad](https://www.texpadapp.com) is a commercial LaTeX editor, which supports typesetting in ConTeXt. It has a number of nice features, such as a project outline/manager that lists todos and cross-references; a built in previewer; and syncs with an OS X version of the software. Texpad supports ConTeXt out of the box. However, Texpad also allows users to write and install build scripts (.tpbuild, the equivalent of an "engine" in TexShop or TeXworks, as described above.). By means of these custom scripts, Texpad can also be configured to typeset using ConTeXt Standalone (ConTeXt suite).
As of Texpad 1.7.14 (July 2015), these are the steps which allow for typesetting using ConTeXt Standalone:
1. Create an empty text file.
 
2. Paste the following into it:
#!/bin/bash # Texpad build (.tpbuild) for ConTeXt minimals Standalone suite export PATH=$HOME/context/tex/texmf-osx-64/bin:$PATH mtxrun --script context --autogenerate --synctex=1 "$TEXPAD_ROOTFILE" 3. Save it as `ConTeXt_Suite.tpbuild`', and place this file in `~/Library/Application Support/Texpad/Buildscripts`
export PATH=$HOME/context/tex/texmf-osx-64/bin:$PATH mtxrun --script context --autogenerate --synctex=1 "$TEXPAD_ROOTFILE"4. Relaunch Texpad. Open or create your ConTeXt document.
35. Save it as `ConTeXt_SuiteIn the drop-down menu (which establishes the Typeset Chain) on the toolbar's far left, select "Typeset configuration > Manual"; click "Use a .tpbuild`'script", and place this file in `~/Library/Application Support/Texpad/Buildscripts`4. Relaunch Texpadselect "ConTeXt_Suite".
Note that the second step assumes that you have installed your ConTeXt standalone in your $HOME directory. If, instead, you've installed it in your Applications directory or elsewhere, simply replace $HOME with the relevant path.
=== BBEdit ===
 
There is a [https://github.com/pmazaitis/ConTeXtBBLM BBEdit Language Module] for ConTeXt that supports:
 
* Syntax highlighting
* Code folding
* Navigation by headings and callouts
* Integrated navigation to included files
* Command completion
 
To install, download the [https://github.com/pmazaitis/ConTeXtBBLM/releases current release], unzip, and drag the language module onto the BBEdit icon.
== Skim (PDF viewer) ==
139

edits

Navigation menu