From Wiki
Jump to navigation Jump to search

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:

# Texpad build (.tpbuild) for ConTeXt 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

4. Relaunch Texpad. Open or create your ConTeXt document.

5. In 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 select "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.