ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Otared Kavian <otared@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: installing two ConTeXt trees
Date: Sun, 1 Sep 2013 19:54:06 +0200	[thread overview]
Message-ID: <9521E997-192D-46BE-9431-E1DF8C85C1B5@gmail.com> (raw)
In-Reply-To: <CAFMOkGVjQGHN0X8Z4aNbHMweRuw=KKtYDUdvjtsrU9eKvyVwEA@mail.gmail.com>

Hi Alan,

Using TeXShop on MacOS X you can create two files named « mkiv-stable.engine » and « mkiv-testing.engine » and put them in the folder
	
	Library/TeXShop/Engines

The first file « mkiv-stable.engine » contains the following:
	#!/bin/bash

	source [path-to-your-context-minimal-stable-folder]/tex/setuptex 
	context --autogenerate --synctex=1 "$1"

and the second file « mkiv-testing.engine » contains
	#!/bin/bash

	source [path-to-your-context-minimal-testing-folder]/tex/setuptex 
	context --autogenerate --synctex=1 "$1"

(personnaly I add also 
	rm -f *.tui *.log *.tuo *.xdv *.mp *.tmp *.top *-mpgraph.* *-mpgraph-temp.dvi *.tuc
at the end of each of the files to remove auxiliary files, but you must be careful with removing such files as *.mp…).

Then when you open anew TeXShop, you'll see in a small menu on top of each of your TeX file where you can choose to typeset your file with either mkiv-stable or mkiv-testing.
Or you can add at the top of your TeX file the following line:
	%!TEX TS-program = mkiv-stable
or
	%!TEX TS-program = mkiv-testing

In case you would like to use mkii you should replace the line 
	context --autogenerate --synctex=1 "$1"
with
	texexec --autogenerate --synctex=1 "$1"
and create an engine file named « mkii.engine »
That's it.
I hope this would be useful to you.
Best regards: OK

On 31 août 2013, at 14:12, Alan Bowen <bowenalan03@gmail.com> wrote:

> I would like to install two ConTeXt trees on my laptop, one for work in progress and another for testing, and to run them using TeXShop (if that is feasible).
> 
> Are there any instructions for this? I have searched the wiki and TeXShop help files but have not seen anything that indicates how to do this.
> 
> I currently have a system-wide installation of the ConTeXt standalone.
> 
> Alan
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  parent reply	other threads:[~2013-09-01 17:54 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-31 12:12 Alan Bowen
2013-08-31 12:27 ` Hans Hagen
2013-08-31 14:46   ` Alan Bowen
2013-08-31 15:25     ` Aditya Mahajan
2013-08-31 15:24 ` Aditya Mahajan
2013-08-31 17:02   ` Alan Bowen
2013-09-01 17:54 ` Otared Kavian [this message]
2013-09-02 16:14   ` Alan Bowen
2013-09-02 21:44     ` Hans Hagen
2013-09-03  7:31       ` Otared Kavian
2013-09-03  8:50         ` Hans Hagen
2013-09-03 13:08           ` Otared Kavian
2013-09-03 17:14             ` Aditya Mahajan
2013-09-04  7:05               ` Otared Kavian
2013-09-04  7:32                 ` Hans Hagen
2013-09-04  8:36                 ` Hans Hagen
2013-09-06 17:04                   ` Otared Kavian
2013-09-06 20:28                     ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9521E997-192D-46BE-9431-E1DF8C85C1B5@gmail.com \
    --to=otared@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).