Hello Alan,
I'm sorry for not replying earlier.
On Sat, Aug 30, 2008 at 12:16 PM, Alan Bowen wrote:
What follows are some queries that I will be happy to write up for the wiki.
The aim (hope?) is to develop a set of instructions for installing the
minimals on a Mac that a Mac user without any real knowledge of unix (such
as myself) can follow easily. (There are a number of people scattered around
the world who help me in producing various publications; and since they too
are not unix savvy, I need such instructions if we are to keep our
installations functioning and up to date.)
Once the ConTeXt minimals are installed in the Applications folder and the
user can run
\starttext
Hello world!
\stoptext
which is where the wiki (Installation>section 1.2) currently leaves off,
there still remain a few tasks.
Specifically,
(a) getting this ConTeXt installation to recognize a personal texmf
directory
I usually put my files to texmf-local. Well, no, I actually copy
"setuptex" into "mytex" and make local modifications there, so that I
can include my own texmf trees (ugly solution). We just got a
complaint about non-existant TEXMFHOME during the conference. We took
setuptex from Hans' distribution and did not touch TEXMFHOME at all.
The problem is that Hans wanted to prevent old local files to
interefere with "standalone" tree, completely isolated from the outer
world.
We can either:
- fix setuptex, but I would like to have Hans' permission to do it
- create another "setupfriendlytex" :) and modify whatever we want there
The fix is super-easy: change
export HOMETEXMF=/nonexist
into
export HOMETEXMF=~/.texmf
(with or without the dot - up to you; MacTeX uses ~/Library/texmf or
something similar, I think, but should check)
And then add TEXMFHOME to the list:
export TEXMF='{$TEXMFHOME,$TEXMFLOCAL,!!$TEXMFOS,!!$TEXMFCONTEXT,!!$TEXMFEXTRA,!!$TEXMFMAIN}'
But I need someone to tell me to do that
(b) running the various binaries (e.g., texmfstart, ctxtools) in
/Applications/ConTeXtMinimals from Terminal
You can create ~/.bash_profile and put one of those lines into it (I
suggest (a), but (b) would suffice):
a) . /Applications/ConTeXtMinimals/tex/setuptex
b) export PATH=/Applications/ConTeXtMinimals/tex/texmf-osx-intel/bin:$PATH
Then, once you start a new shell, you'll see the programs in your
shell. "/Applications/ConTeXtMinimals/tex" assumes that you have
installed your files to that folder. Change accordingly. The minimals
are not a GUI program, so I would rather put it to some other folder,
but that's up to users. (I have the files simply in my home dir.)
The main problem is that GUI programs won't see that ~/.bash_profile,
so you need to follow the slighly off rules for TeXShop where there
are indeed quite some mistakes.
Can you please send the output of
find /Applications/ConTeXtMinimals | head -n 20
I suspect that you were setting the wrong folder during download of minimals.
(c) establishing synchronization between PDF output and its ConTeXt source.
Currently, it does not seem to work (with TeXShop at least)
Note, in the latest TeXShop there is
Added support for SyncTeX. SyncTeX is new synchronization technology by
Jerome Laurens which is included in TeX Live 2008 (but not earlier TeX
distributions). The technology is built directly into pdfTeX and XeTeX. In
modern TeX distributions, most typesetting actually calls pdfetex (even if
using latex to output a dvi file), and thus the technology is available for
such typesetting. To use the technology, add the flag --synctex=1
Any advice on how to do(a), (b), and (c) will be much appreciated.
You can try
texexec --passon="-synctex=1" filename
but I didn't manage to make it work - it always pointed back to
\stoptext or \page, just as it pointed to the end of minipage in
LaTeX. Apart from the fact that I wasn't sure which tool to use to
make rsync work (when I was testing, TeXShop didn't support synctex
yet, TeXWorks behaved weird, and one would need to write support for
TextMate first, but when Patrick tried it, he have up after
discovering that it didn't work anyway).
While answering you I just got a reply from Jérôme:
The problem comes from the synctex parser.
I made different experiments and forgot to test the latest one with context.
I will upload the new versions soon but I am afraid the various viewers must be updated.
You will have to wait a little longer...
So sadly I need to repeat the last sentence from him ...
Mojca
___________________________________________________________________________________
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-contextwebpage :
http://www.pragma-ade.nl /
http://tex.aanhet.netarchive :
https://foundry.supelec.fr/projects/contextrev/wiki :
http://contextgarden.net___________________________________________________________________________________