ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Alan Bowen <acbowen@princeton.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Installing ConTeXt Minimals on a Mac
Date: Mon, 01 Sep 2008 18:13:46 -0400	[thread overview]
Message-ID: <6A47E032-C0CC-4C7D-A9EC-7C3CF78248FF@princeton.edu> (raw)
In-Reply-To: <6faad9f00809011438i191ad204qee99e85c2f7f0cee@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 5474 bytes --]

Mocja---I will start with the second proposal and save the first for  
tomorrow.

On Sep 1, 2008, at 17;38,50 , Mojca Miklavec wrote:

> On Mon, Sep 1, 2008 at 10:43 PM, Alan Bowen <acbowen@princeton.edu>  
> wrote:
>>
>> On Sep 1, 2008, at 13;43,19 , Mojca Miklavec wrote:
>>
>>>> On Sep 1, 2008, at 12;24,41 , Mojca Miklavec wrote:
>>>>
>>>> For setting HOMETEXMF you can help yourself, though it would be  
>>>> nice
>>>> if we provided a solution that worked out of the box. But I would
>>>> like
>>>> to get a confirmation from Hans that it's OK to do that.
>>>>
>>>> I have modified the texmf.cnf in
>>>> ./Applications/ConTeXtMinimals/tex/texmf/web2c with the lines
>>>> export HOMETEXMF=~/Library/texmf
>>>> export
>>>> TEXMF='{$TEXMFHOME,$TEXMFLOCAL,!!$TEXMFOS,!!$TEXMFCONTEXT,!!
>>>> $TEXMFEXTRA,!!$TEXMFMAIN}'
>>>> but ConTeXt still does not find my personal texmf folder
>>>
>>> I probably told you wrong, but:
>>> 1.) you have HOMETEXMF first and then TEXMFHOME: these need to be
>>> equal
>>> 2.) unless you are following (3), don't modify the file in texmf/,
>>> but create
>>> /Applications/ConTeXtMinimals/tex/texmf-local/web2c/texmf.cnf
>>> instead, else the file will be overwritten at first update
>>> 3.) even then I'm not completely sure, but I guess that  
>>> environmental
>>> variables override settings in texmf.cnf, so you either need to
>>> a) modify setuptex (rename it and run the renamed file instead of
>>> setuptex)
>>> b) only export PATH and not run setuptex at all; in that case values
>>> from texmf.cnf will be used
>>> - maybe you need to run "mktexlsr" or "luatools --generate"
>>>>
>>
>> OK. One quick reply just to see if I am on track.
>>
>> I have created /Applications/ConTeXtMinimals/tex/texmf-local/web2c/
>> texmf.cnf
>> where texmf.cnf now has
>> export HOMETEXMF=~/Library/texmf
>> export TEXMF='{$HOMETEXMF,$TEXMFLOCAL,!!$TEXMFOS,!!$TEXMFCONTEXT,!!
>
> (hopefully the line continues ...)
>
> The lines you have written here belong to "setuptex", not to
> texmf.cnf. The syntax for setuptex is slightly different.
>
> HOMETEXMF     = ~/Library/texmf
> # single line
> TEXMF = {$HOMETEXMF,!!$TEXMFPROJECT,!!$TEXMFFONTS,!!$TEXMFLOCAL,!! 
> $TEXMFCONTEXT,!!$TEXMFEXTRA,!!$TEXMFMAIN}
>
> But try putting
>   export HOMETEXMF=~/Library/texmf
> # single line
>   export TEXMF='{$HOMETEXMF,$TEXMFLOCAL,!!$TEXMFOS,!!$TEXMFCONTEXT,!! 
> $TEXMFEXTRA,!!$TEXMFMAIN}'
>
> into setuptex (replace the old variables). The problem is that if you
> adapt texmf.cnf only, you still override those settings with setuptex.
>
> There is one thing that you could try (I never use TeXShop, but
> there's a change that it works):
>
>
> ~/Library/TeXShop/Engines/ConTeXt-pdfTeX.engine
>
> #!/bin/bash
> export PATH=/Applications/ConTeXtMinimals/tex/texmf-osx-intel:$PATH
> texexec "$1"

Done. The “Hello world” file processes but using my texlive 2007  
distribution.
TeXExec | processing document 'hello.tex'
TeXExec | no ctx file found
TeXExec | tex processing method: context
TeXExec | TeX run 1
TeXExec | writing option file hello.top
TeXExec | using randomseed 780
TeXExec | tex engine: pdftex
TeXExec | tex format: cont-en
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
  %&-line parsing enabled.
  (/usr/local/texlive/2007/texmf/web2c/natural.tcx)
entering extended mode
(./hello.tex

ConTeXt  ver: 2008.08.04 10:10 MKII  fmt: 2008.8.31  int: english/ 
english

> ~/Library/TeXShop/Engines/ConTeXt-luaTeX.engine
>
> #!/bin/bash
> export PATH=/Applications/ConTeXtMinimals/tex/texmf-osx-intel:$PATH
> export TEXMFCACHE=/Applications/ConTeXtMinimals/tex/texmf-cache
> context "$1"

Done. No joy. ConTeXt complains:
/Users/alancbowen/Library/TeXShop/Engines/ConTeXt-luaTeX.engine: line  
4: context: command not found

> ~/Library/TeXShop/Engines/ConTeXt-XeTeX.engine
>
> #!/bin/bash
> export PATH=/Applications/ConTeXtMinimals/tex/texmf-osx-intel:$PATH
> texexec --xtx "$1"

Done. I t works, but
TeXExec | processing document 'hello.tex'
TeXExec | no ctx file found
TeXExec | tex processing method: context
TeXExec | TeX run 1
TeXExec | writing option file hello.top
TeXExec | using randomseed 403
TeXExec | tex engine: xetex
TeXExec | tex format: cont-en
This is XeTeXk, Version 3.141592-2.2-0.996 (Web2C 7.5.6)
  %&-line parsing enabled.
entering extended mode
(./hello.tex

ConTeXt  ver: 2007.01.12 15:56 MKII  fmt: 2007.5.18  int: english/ 
english

seems odd. I do not use XeTeX but I am guessing that this version is  
also in my Texlive 2007 distribution too.

I do like the idea of defining different engines for pdftex and  
luatex, since it address one of my earlier queries about switching  
between the two with the minimals.

More tomorrow.

Warm thanks. Alan

> (sorry for two different proposals - I should probably only send you a
> single one)
>
> 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-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________


[-- Attachment #1.2: Type: text/html, Size: 11330 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2008-09-01 22:13 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-30 10:16 Alan Bowen
2008-09-01  7:16 ` Mojca Miklavec
2008-09-01 16:03   ` Alan Bowen
2008-09-01 16:24     ` Mojca Miklavec
2008-09-01 17:27       ` Alan Bowen
2008-09-01 17:43         ` Mojca Miklavec
2008-09-01 20:18           ` Alan Bowen
2008-09-01 21:19             ` Mojca Miklavec
2008-09-01 21:43               ` Alan Bowen
2008-09-01 22:24                 ` Andrea Valle
2008-09-01 22:02               ` Aditya Mahajan
2008-09-01 20:43           ` Alan Bowen
2008-09-01 21:38             ` Mojca Miklavec
2008-09-01 22:13               ` Alan Bowen [this message]
2008-09-01 22:22                 ` Mojca Miklavec
2008-09-01 22:50                   ` Alan Bowen
2008-09-01 23:03                     ` Alan Bowen
2008-09-02  8:04                     ` Mojca Miklavec
2008-09-02 16:18                       ` Alan Bowen
2008-09-01 22:24                 ` Aditya Mahajan
2008-09-02 18:42               ` Alan Bowen
2008-09-02 18:54                 ` Mojca Miklavec
2008-09-02 19:34                   ` Alan Bowen
2008-09-03 16:22                     ` Mojca Miklavec
     [not found] <mailman.1.1220176802.5742.ntg-context@ntg.nl>
2008-08-31 17:09 ` Michael Green
2008-08-31 21:17   ` Alan Bowen
2008-09-01  0:05 Michael Green
2008-09-01 16:06 ` Alan Bowen

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=6A47E032-C0CC-4C7D-A9EC-7C3CF78248FF@princeton.edu \
    --to=acbowen@princeton.edu \
    --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).