ConTeXt

For information about ConTeXt see the ConTeXT wiki.

texshow-web

You can find texshow-web currently at texshow.contextgarden.net. texshow-web is the rewrite of a program called texshow, which is a graphical perl/tk program to list most of ConTeXt's commands. There is an emacs port of it (see below) as well as as this web frontend.

emacs stuff

You can find some ConTeXt-related stuff on my emacs page. Look out for etexshow!

installing ConTeXt

ConTeXt is usually shipped with a TeX distribution, such as teTeX, TeXlive, fpTeX, MikTeX, etc. But as the development of ConTeXt is pretty fast, your installtion might contain an outdated version of ConTeXt. The version number is given in the file context.tex, and printed at the beginnig of each texexec run. To install ConTeXt on a web2c TeX system (i.e. teTeX, TeXlive, fpTeX,...) you should download the latest ConTeXt archive, install it in a separate (clean) directory, generate the format and tell your TeX system where to find the new files. You can think about removing the old files from your TeX system, but that is not necessary if you have done everything right. The key point is to let TeX (or better: kpathsea and the shell) search your new ConTeXt path before accessing the outdated main tree. This can be configured in the file texmf.cnf. Just insert the path in the TEXMF variable. First define

TEXMFCONTEXT = /opt/context/2004.4.9/texmf

or whatever this new ConTeXt path is named and then add this to TEXMF:

TEXMF = {$HOMETEXMF,!!$VARTEXMF,!!$TEXMFCONTEXT,!!$TEXMFMAIN}

Now TeX is looking first in whatever is HOMETEXMF, then in VARTEXMF, after that in your ConTeXt directory and finally in its main texmf tree. Now you are ready to unzip and install the fresh ConTeXt archive. This is what my installcontext.sh script does. It unpacks the archive and puts the contents in /opt/context/<versionnumber>/. So you can have different versions installed in parallel. In case you want to do it manually: after unzipping the archive, update the filename database (mktexlsr), create the format (texexec --make --alone en nl metafun) and copy the format files to /opt/context/stable/texmf. Update the filename database again, to let TeX find the format files.

Finally you have to tell your system to use the new scripts (texexec, texutil, ...) To do this, instruct your shell to search the ConTeXt path before the system paths (where the old scripts are). You have to set the PATH environment variable in your shell startup file, usually .bash_profile in your home directory. Edit this file and add a line like:

export PATH=/opt/context/2004.4.9/bin:$PATH

Make sure that your shell is looking for the scripts in this directory by typing type texexec in your shell.

accessing layout information in [page] backgrounds

Did you ever want to access the different layout areas in the [page] background? I guess not, but just in case you do now, here is a small page.pdf pdf file and its ConTeXt source: page.tex.

show-layout module

Get a module that shows the layout of the current page in half size. Here is the module and a pdf file how it looks like. Please notice that this is work in progress. Please send me your comments. See file t-layout.tex for small documentation.

typescript adobekb

OBSOLETE: this file is in the ConTeXt distribution since Aug 8 2003. But just for the record (the instructions below are outdated, see in file type-akb.tex for new ones): Get the adobekb.tex typescript that replaces the berry typescript. With this typescript you can access the fonts that are shipped with psnfss (LaTeX). Please send me your comments. To use it say something like this in your tex file:

\usetypescriptfile[adobekb]
\setupencoding [default=8r]
\usetypescript[adobekb][\defaultencoding]
\usetypescript[palatino][\defaultencoding]
\setupbodyfont[palatino]

You need to put this in a place where TeX finds its .tex files. This could be the current directory (the directory where your document is in) or better: any path that is listed in the output of the command kpsepath tex. Run this command in your terminal. For system wide installation put it in a path like /usr/local/..., for your private installation use /Users/pg/Library/... or whatever paths are listed in the output of the kpsepath command.

a layout for a reference sheet

a layout for a reference sheet (refcard-layout.tex) and a sample refcard (emacs.tex) in german. see how it looks like (emacs.pdf)

© 2006 Patrick Gundlach. Home or information about this site.