installing two ConTeXt trees
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
On 8/31/2013 2:12 PM, Alan Bowen 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.
assuming that mtxrun is not fundamentally changed you can try this: mtxrun --tree=/data/context/tex --script context yourfile.tex mtxrun --tree=/data/context-beta/tex --script context yourfile.tex Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Thanks, Hans. That works from the command line as it should and will be a
great help.
Now to see if these trees can be accessed easily from TeXShop.
All best, Alan
On Sat, Aug 31, 2013 at 8:27 AM, Hans Hagen
On 8/31/2013 2:12 PM, Alan Bowen 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.
assuming that mtxrun is not fundamentally changed you can try this:
mtxrun --tree=/data/context/tex --script context yourfile.tex mtxrun --tree=/data/context-beta/tex --script context yourfile.tex
Hans
------------------------------**------------------------------**----- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl ------------------------------**------------------------------**----- ______________________________**______________________________** _______________________ 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 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/http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ______________________________**______________________________** _______________________
On Sat, 31 Aug 2013, Alan Bowen 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 routinely do this. Lets say you want to install two version of context, context-beta and context-stable. Then, download and copy first-setup.sh in both directories, and run: cd context-beta && first-setup cd context-stable && first-setup --context=current Now, you can run source path-to-context-beta/tex/setuptex && context filename to compile a file using context beta and source path-to-context-stable/tex/setptex && context filename to compile a file using context stable. Aditya
Thanks, Aditya. This is very helpful.
Alan
On Sat, Aug 31, 2013 at 11:24 AM, Aditya Mahajan
On Sat, 31 Aug 2013, Alan Bowen 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 routinely do this. Lets say you want to install two version of context, context-beta and context-stable. Then, download and copy first-setup.sh in both directories, and run:
cd context-beta && first-setup cd context-stable && first-setup --context=current
Now, you can run
source path-to-context-beta/tex/**setuptex && context filename
to compile a file using context beta and
source path-to-context-stable/tex/**setptex && context filename
to compile a file using context stable.
Aditya
______________________________**______________________________** _______________________ 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 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/http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ______________________________**______________________________** _______________________
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
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 ___________________________________________________________________________________
Thanks, Otared! That is very helpful indeed. I now have access to each of
the ConTeXt trees via TeXShop—and a sensible way to explore why the ConTeXt
betas since August 5 have not worked so well with my files.
All best, Alan
On Sun, Sep 1, 2013 at 1:54 PM, Otared Kavian
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
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
___________________________________________________________________________________
On 9/2/2013 6:14 PM, Alan Bowen wrote:
(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…).
--purge ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On 2 sept. 2013, at 23:44, Hans Hagen
On 9/2/2013 6:14 PM, Alan Bowen wrote:
(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…).
--purge
Thanks Hans for your attention, but saying texexec --autogenerate --synctex=1 "$1" --purge or context --autogenerate --synctex=1 "$1" --purge removes also the synctex.gz file and one loses the synctex functionality which is essential for me. Best regards: OK
On 9/3/2013 9:31 AM, Otared Kavian wrote:
On 2 sept. 2013, at 23:44, Hans Hagen
wrote: On 9/2/2013 6:14 PM, Alan Bowen wrote:
(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…).
--purge
Thanks Hans for your attention, but saying texexec --autogenerate --synctex=1 "$1" --purge
or context --autogenerate --synctex=1 "$1" --purge
removes also the synctex.gz file and one loses the synctex functionality which is essential for me.
i've added a test: if --synctex is given or the first line has % synctex=zipped|unzipped|1|-1|yes then the synctex file is not deleted (not really tested as i never use synctex but it looks like it works ok) ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On 3 sept. 2013, at 10:50, Hans Hagen
On 9/3/2013 9:31 AM, Otared Kavian wrote:
[…] Thanks Hans for your attention, but saying texexec --autogenerate --synctex=1 "$1" --purge
or context --autogenerate --synctex=1 "$1" --purge
removes also the synctex.gz file and one loses the synctex functionality which is essential for me.
i've added a test: if --synctex is given or the first line has
% synctex=zipped|unzipped|1|-1|yes
then the synctex file is not deleted
Hi Hans, Thanks for the quick modification… I tested the new beta, and indeed using mkiv and context --autogenerate --synctex=1 "$1" --purge the synctex.gz file is not anymore deleted (however a utility file [file-name].tuc remains). I noticed also that using mkii and texexec --autogenerate --synctex=1 "$1" --purge does delete the synctex.gz file, but this is expected since mkii is frozen and no change has effect ont it. Best regards: OK
On Tue, 3 Sep 2013, Otared Kavian wrote:
On 3 sept. 2013, at 10:50, Hans Hagen
wrote: On 9/3/2013 9:31 AM, Otared Kavian wrote:
[…] Thanks Hans for your attention, but saying texexec --autogenerate --synctex=1 "$1" --purge
or context --autogenerate --synctex=1 "$1" --purge
removes also the synctex.gz file and one loses the synctex functionality which is essential for me.
i've added a test: if --synctex is given or the first line has
% synctex=zipped|unzipped|1|-1|yes
then the synctex file is not deleted
Hi Hans,
Thanks for the quick modification… I tested the new beta, and indeed using mkiv and context --autogenerate --synctex=1 "$1" --purge
the synctex.gz file is not anymore deleted (however a utility file [file-name].tuc remains).
That (not deleting tuc file) is delebrate (as it saves time in successive runs). If you want to delete the tuc file, you can use --purgeall instead of --purge. Aditya
On 3 sept. 2013, at 19:14, Aditya Mahajan
[…] the synctex.gz file is not anymore deleted (however a utility file [file-name].tuc remains).
That (not deleting tuc file) is delebrate (as it saves time in successive runs). If you want to delete the tuc file, you can use --purgeall instead of --purge.
Thanks Aditya: actually that utility file .tuc can be deleted for some situations (for instance when one does a small test) and kept for others. Maybe for those who do not use ConTeXt from a Terminal, but rather from editors like TeXShop or TeXWorks, one could have a feature to pass typesetting options to mkiv, for instance like a \setuptypesetting command, to be put in the first five lines of a document, which accepts various parameters such as for example \setuptypesetting[purge=yes,synctex={yes,zipped},engine=mkiv] to pass options to mkiv. But this is probably too complicated. Best regards: OK
On 9/4/2013 9:05 AM, Otared Kavian wrote:
On 3 sept. 2013, at 19:14, Aditya Mahajan
wrote: […] the synctex.gz file is not anymore deleted (however a utility file [file-name].tuc remains).
That (not deleting tuc file) is delebrate (as it saves time in successive runs). If you want to delete the tuc file, you can use --purgeall instead of --purge.
Thanks Aditya: actually that utility file .tuc can be deleted for some situations (for instance when one does a small test) and kept for others. Maybe for those who do not use ConTeXt from a Terminal, but rather from editors like TeXShop or TeXWorks, one could have a feature to pass typesetting options to mkiv, for instance like a \setuptypesetting command, to be put in the first five lines of a document, which accepts various parameters such as for example \setuptypesetting[purge=yes,synctex={yes,zipped},engine=mkiv]
to pass options to mkiv. But this is probably too complicated.
the job is already running and one needs tex to parse such commands there are two ways (rather old features btw) to control a job: - some directives can be given on the first line of a file - you can make a jobname.ctx file (there are a few examples in the distribution) the last one is the most flexible as there can be a file per job or a shared one Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On 9/4/2013 9:05 AM, Otared Kavian wrote:
On 3 sept. 2013, at 19:14, Aditya Mahajan
wrote: […] the synctex.gz file is not anymore deleted (however a utility file [file-name].tuc remains).
That (not deleting tuc file) is delebrate (as it saves time in successive runs). If you want to delete the tuc file, you can use --purgeall instead of --purge.
Thanks Aditya: actually that utility file .tuc can be deleted for some situations (for instance when one does a small test) and kept for others. Maybe for those who do not use ConTeXt from a Terminal, but rather from editors like TeXShop or TeXWorks, one could have a feature to pass typesetting options to mkiv, for instance like a \setuptypesetting command, to be put in the first five lines of a document, which accepts various parameters such as for example \setuptypesetting[purge=yes,synctex={yes,zipped},engine=mkiv]
to pass options to mkiv. But this is probably too complicated.
as an experiment i now also check the preamble for a ctxfile specification make a file "preferences.ctx", put it someplace in the tree and run mtxrun --generate: <?xml version='1.0' standalone='yes'?> ctx:job ctx:messagedefault flags ctx:flags ctx:flagpurge ctx:flagsynctex=zipped then you can say: % ctxfile=preferences \starttext whatever \stoptext ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Hi Hans,
Thanks for this new feature for passing optional flags to the mkiv engine: I tested it on TeXShop and from a Terminal command line, and evrything works as expected.
I wikified your instructions,
http://wiki.contextgarden.net/purge_aux_files
but I wonder whether I chose the right title for that page (purge aux files).
Best regards: OK
On 4 sept. 2013, at 10:36, Hans Hagen
[…] as an experiment i now also check the preamble for a ctxfile specification
make a file "preferences.ctx", put it someplace in the tree and run mtxrun --generate:
<?xml version='1.0' standalone='yes'?>
ctx:job ctx:messagedefault flags ctx:flags ctx:flagpurge ctx:flagsynctex=zipped
then you can say:
% ctxfile=preferences
\starttext whatever \stoptext
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________
On 9/6/2013 7:04 PM, Otared Kavian wrote:
Hi Hans,
Thanks for this new feature for passing optional flags to the mkiv engine: I tested it on TeXShop and from a Terminal command line, and evrything works as expected. I wikified your instructions, http://wiki.contextgarden.net/purge_aux_files
thanks
but I wonder whether I chose the right title for that page (purge aux files).
sietse keeps an eye on such matters so unless he complains it's ok Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (4)
-
Aditya Mahajan
-
Alan Bowen
-
Hans Hagen
-
Otared Kavian