[NTG-context] updating ConTeXt (MacTeX)

2009-04-03 Thread Robert Blackstone
On Thu, Apr 2, 2009 at 12:00 PM, Henning Hraban Ramm wrote:

 .

 ConTeXt should work now (i.e. at this moment in this shell window)



 .

 Are there any remaining problems?

 I'll change the Wiki now.


 Greetlings from Lake Constance!
 Hraban


Hello Hraban,

No remaining problems, at least not with installing Minimals. Your
instructions are beautifully clear. Everything works now. Thank you very
much.


Robert Blackstone
___
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
___


Re: [NTG-context] updating ConTeXt (MacTeX)

2009-04-02 Thread Henning Hraban Ramm

Am 2009-04-01 um 17:29 schrieb Robert Blackstone:


  but also there I manage to run into problems, mainly with
 files and scripts that I can see in the finder but that are not
 found in Terminal, not even from their parent directory.


Your problem has nothing to do with your above description!

You was talking about Terminal (i.e. bash), not ConTeXt!



Step 5. In Terminal, type context --make and press Enter/Return.

This yields:  MtxRun | unknown script 'context.lua' or 'mtx- 
context.lua'


Then I cd-ed stepwuse up to /Applications/ConTeXtMinimals/tex/texmf- 
context/scripts/context/lua, after each cd trying to perform step 5,  
and then finally I got:


...

But for example cont-en.tex does exist on my Mac and it sits in  
texmf-context/tex/context/base/cont-en.tex


These files are not found. So I am a bit at a loss at what to try  
next.


The page http://wiki.contextgarden.net/ConTeXt_Minimals/Mac_Installation 
 that you seem to follow states:


This page describes an alternative of installing ConTeXt Minimals on  
Mac OS X. In particular it describes how to configure some GUI  
applications to work well with minimals.
(For command-line gurus it is enough to follow the three steps  
described in ConTeXt Minimals.)


The part For command-line gurus is misleading. Stay with 
http://wiki.contextgarden.net/ConTeXt_Minimals

Never install under /Applications if you don't know what you do!
Always install in your home folder; you'll run in less permission  
problems.


Open a new Terminal window (shell). You're in your home folder (~) now.

Create the context folder and change into it:

$ mkdir context
$ cd context

(Leave out the $, that's your shell prompt!)
Download first-setup.sh:

$ curl -o first-setup.sh http://minimals.contextgarden.net/setup/first-setup.sh

Make it executable:

$ chmod a+x first-setup.sh

Run it and go make tea:

$ sh ./first-setup.sh

Run the path setup:

$ ./tex/setuptex

ConTeXt should work now (i.e. at this moment in this shell window);  
you need to run the path setup with every new shell (i.e. Terminal)  
window; to automate that, you can add the setuptex command to your  
profile, that's a script that gets called with every new shell window.


$ cd
$ echo sh ~/context/tex/setuptex  .bash_profile

Are there any remaining problems?

I'll change the Wiki now.


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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
___


Re: [NTG-context] updating ConTeXt (MacTeX)

2009-04-01 Thread Robert Blackstone
On Tue, Mar 31, 2009 at 6:59 PM, Henning Hraban Ramm wrote:



 Am 2009-03-30 um 22:11 schrieb Robert Blackstone:

  Thank you, Hraban, for suggesting an easy way out: Use ConTeXt-
  Minimals, but also there I manage to run into problems, mainly with
  files and scripts that I can see in the finder but that are not
  found in Terminal, not even from their parent directory.

 I don't understand what you mean. Can you give an example?

 Normally it's vice versa: With 'ls -Al' you can see much more in the
 Terminal as you can see in Finder, not only dotted (hidden) files, but
 also whole trees like /usr.

 There are a few file and folder names though that are faked in
 international OSX versions' Finder (like 'Applications' appears as
 'Programme' in a German OSX).


 Greetlings from Lake Constance!
 Hraban


What I meant is the following. (Incidentally, I configured the finder so
that it shows the ‘hidden’ files and directories, like /usr, too.)


Now about installing and configuring minimals I went through all steps
described on http://wiki.contextgarden.net/ConTeXt_Minimals/Mac_Installationup
till step 5 of ‘configuring’, which is:

Step 5. In Terminal, type context --make and press Enter/Return.


This yields:  MtxRun | unknown script 'context.lua' or 'mtx-context.lua'


Then I cd-ed stepwuse up to
/Applications/ConTeXtMinimals/tex/texmf-context/scripts/context/lua, after
each cd trying to perform step 5, and then finally I got:


MtxRun | running command: luatools --make --compile cont-en

LuaTools | no tex file with name: cont-en.tex

LuaTools |

LuaTools | runtime: 0.008 seconds


MtxRun | running command: luatools --make --compile cont-nl

LuaTools | no tex file with name: cont-nl.tex

LuaTools |

LuaTools | runtime: 0.009 seconds


MtxRun | running command: luatools --make --compile mptopdf

LuaTools | no tex file with name: mptopdf.tex

LuaTools |

LuaTools | runtime: 0.013 seconds


MtxRun | running command: luatools --make --compile plain

LuaTools | no tex file with name: plain.tex

LuaTools |

LuaTools | runtime: 0.008 seconds


MtxRun | total runtime: 0.168


But for example cont-en.tex does exist on my Mac and it sits in
/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/cont-en.tex


These files are not found. So I am a bit at a loss at what to try next.

Incidentally, step 1 of Configuring ConTeXt instructs me to create a file
with a given line and save the  file as .bash_profile, which, however,
already exists. So I have added the line to the existing file. If this is
correct, this possibility should perhaps be mentioned in the instructions.

Thank you for your time and patience.

Robert Blackstone
___
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
___


Re: [NTG-context] updating ConTeXt (MacTeX)

2009-03-31 Thread Henning Hraban Ramm

Am 2009-03-30 um 22:11 schrieb Robert Blackstone:

Thank you, Hraban, for suggesting an easy way out: Use ConTeXt- 
Minimals, but also there I manage to run into problems, mainly with  
files and scripts that I can see in the finder but that are not  
found in Terminal, not even from their parent directory.


I don't understand what you mean. Can you give an example?

Normally it's vice versa: With 'ls -Al' you can see much more in the  
Terminal as you can see in Finder, not only dotted (hidden) files, but  
also whole trees like /usr.


There are a few file and folder names though that are faked in  
international OSX versions' Finder (like 'Applications' appears as  
'Programme' in a German OSX).



Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)



PGP.sig
Description: Signierter Teil der Nachricht
___
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
___


[NTG-context] updating ConTeXt (MacTeX)

2009-03-30 Thread Robert Blackstone
In order to be able to use MkIV and Luatex I started, as a MacTeX-user, by
updating ConTeXt
(*MacTeX*http://wiki.contextgarden.net/index.php?title=MacTeXaction=editredlink=1:
You need to 
updatehttp://wiki.contextgarden.net/Running_Mark_IV#Updating_ConTeXtConTeXt
first.),
following instructions on

http://wiki.contextgarden.net/Running_Mark_IV#Updating_ConTeXt


The command as given (copied and pasted in terminal) does not work:
everything fails: Operation not permitted. Redoing it as Sudo does the job.
But then: “luatools --generate”  gives: -bash: /usr/texbin/luatools:
Permission denied, “sudo luatools --generate” gives “luatools: command not
found”. So I cd-ed to /usr/texbin, gave the command “sudo chmod 755
luatools” and then “luatools --generate” and got:


LuaTools | error unable to identify cnf file

LuaTools | no cnf files found (TEXMFCNF may not be set/known)

LuaTools |

LuaTools | runtime: 0.002 seconds


But worst of all is that after all this I could not use MkII any more: Older
files that before updating had been nicely typeset couldn’t be processed
anymore:  permission denied. I tried “sudo chmod 755” on texexec and on
texmfstart but that did not help.

So in the end I reinstalled MacTeX 2008 and I was back at where I started.


The least one can say is that the updating instructions on contextgarden do
not work in all circumstances. In all fairness, everybody is warned: “Note
that this is a quick-and-dirty way to upgrade TL. Use at your own risk. One
should be able to update in a more elegant way.”

But now what? Lots of MacTeX-users must have successfully updated ConTeXt.
Can anybody disclose a more elegant way that worked for them? Especially one
that does not render the existing ConTeXt useless by meddling with
permissions.

Just for the sake of completeness, I use an Intel iMac under OSX 10.5.6.


Thanks in advance,

Robert Blackstone
___
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
___


Re: [NTG-context] updating ConTeXt (MacTeX)

2009-03-30 Thread Henning Hraban Ramm

Am 2009-03-30 um 11:53 schrieb Robert Blackstone:

But now what? Lots of MacTeX-users must have successfully updated  
ConTeXt.


Perhaps not - most(?) ConTeXt users use the minimals nowadays.
You can also install them parallely to MacTeX, if you still need LaTeX.

Just for the sake of completeness, I use an Intel iMac under OSX  
10.5.6.


Same setup here, minimals work ok.


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)



PGP.sig
Description: Signierter Teil der Nachricht
___
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
___


Re: [NTG-context] updating ConTeXt (MacTeX)

2009-03-30 Thread Mojca Miklavec
2009/3/30 Robert Blackstone wrote:
 In order to be able to use MkIV and Luatex I started, as a MacTeX-user, by
 updating ConTeXt (MacTeX: You need to update ConTeXt first.), following
 instructions on

 http://wiki.contextgarden.net/Running_Mark_IV#Updating_ConTeXt

 The command as given (copied and pasted in terminal) does not work:
 everything fails: Operation not permitted. Redoing it as Sudo does the job.
 But then: “luatools --generate”  gives: -bash: /usr/texbin/luatools:
 Permission denied, “sudo luatools --generate” gives “luatools: command not
 found”. So I cd-ed to /usr/texbin, gave the command “sudo chmod 755
 luatools” and then “luatools --generate” and got:

Hello Robert,

I wrote those instructions a long while ago, working on Tiger and
having a whole lot of TeX binaries lying around, most probably I also
did chown myname to the whole TeX tree before performing any
operation described there.

I have a clean system installed now, I'll try to review the
instructions, but if anyone else volunteers, please step forward.

But some important notes:
- You probably need to execute the rsync command as root, else you
cannot sync anything
- If you do rsync as root, the owner id is preserved, which is
probably not what you want (if anyone has a quick recipe, let me know;
there must be some trivial switch to change the behaviour of that)
- You can fix this by running sudo chown -R root:wheel
/usr/local/texlive/2008 (but I don't know the difference between
root:wheel and root:staff) after you sync
- The instructions are about using rsync with current context. I'm not
sure if that version works with the latest LuaTeX (most probably not).
- There are some issues with LuaTeX binaries for Mac that will
hopefully be resolved soon, but one thing to note is that while Hans'
latest version most probably requires LuaTeX 0.37, Mac binaries still
contain LuaTeX 0.35 in the repository.

OK, and I noticed one rather important thing now. TeX Live binaries
like texexec are symbolic links to texexec.rb which is not executable
in the repository from where you sync. this is fixed in TeX Live
itself (I think), but not in the ConTeXt minimals repository.

I'm now trying to figure out which step makes problems in permission denied.

Mojca


 LuaTools | error unable to identify cnf file

 LuaTools | no cnf files found (TEXMFCNF may not be set/known)

 LuaTools |

 LuaTools | runtime: 0.002 seconds

 But worst of all is that after all this I could not use MkII any more: Older
 files that before updating had been nicely typeset couldn’t be processed
 anymore:  permission denied. I tried “sudo chmod 755” on texexec and on
 texmfstart but that did not help.

 So in the end I reinstalled MacTeX 2008 and I was back at where I started.

 The least one can say is that the updating instructions on contextgarden do
 not work in all circumstances. In all fairness, everybody is warned: “Note
 that this is a quick-and-dirty way to upgrade TL. Use at your own risk. One
 should be able to update in a more elegant way.”

 But now what? Lots of MacTeX-users must have successfully updated ConTeXt.
 Can anybody disclose a more elegant way that worked for them? Especially one
 that does not render the existing ConTeXt useless by meddling with
 permissions.

 Just for the sake of completeness, I use an Intel iMac under OSX 10.5.6.

 Thanks in advance,

 Robert Blackstone
___
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
___


Re: [NTG-context] updating ConTeXt (MacTeX)

2009-03-30 Thread Mojca Miklavec
On Mon, Mar 30, 2009 at 12:27, Mojca Miklavec wrote:
 2009/3/30 Robert Blackstone wrote:
 In order to be able to use MkIV and Luatex I started, as a MacTeX-user, by
 updating ConTeXt (MacTeX: You need to update ConTeXt first.), following
 instructions on

 http://wiki.contextgarden.net/Running_Mark_IV#Updating_ConTeXt

 The command as given (copied and pasted in terminal) does not work:
 everything fails: Operation not permitted. Redoing it as Sudo does the job.
 But then: “luatools --generate”  gives: -bash: /usr/texbin/luatools:
 Permission denied, “sudo luatools --generate” gives “luatools: command not
 found”. So I cd-ed to /usr/texbin, gave the command “sudo chmod 755
 luatools” and then “luatools --generate” and got:

 Hello Robert,

 I wrote those instructions a long while ago, working on Tiger and
 having a whole lot of TeX binaries lying around, most probably I also
 did chown myname to the whole TeX tree before performing any
 operation described there.

Can you please try if the following four operations (be careful -
these are single lines that will probably break in mail) work OK for
you?

 sudo chown -R root:wheel /usr/local/texlive/2008
 sudo chmod +x /usr/local/texlive/2008/texmf-dist/scripts/context/lua/*.lua
 sudo chmod +x /usr/local/texlive/2008/texmf-dist/scripts/context/ruby/*.rb
 sudo chmod +x /usr/local/texlive/2008/texmf-dist/scripts/context/stubs/unix/*

(I get some weird feedback though)
LuaTools | files saved in
/var/folders/fO/fONBcIHtG78WRhwbQBWB8TI/-Tmp-/luatex-cache/context/20f08ecfffa488db466c55cc8e06b650/trees/982f3cc39ab8256ee0595931d5cfd085.lua

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
___


Re: [NTG-context] updating ConTeXt (MacTeX)

2009-03-30 Thread Aditya Mahajan

On Mon, 30 Mar 2009, Mojca Miklavec wrote:


I'm now trying to figure out which step makes problems in permission denied.


From what I understand, you need write permission on TEXMFCACHE. So for 
MkIV, you (as the user who runs context) needs to have write permissions 
in the installation directory. I do not know what is TEXMFCACHE for 
texlive, but perhaps setting it to $HOME/.texmf-cache may help.


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
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] updating ConTeXt (MacTeX)

2009-03-30 Thread Mojca Miklavec
On Mon, Mar 30, 2009 at 16:34, Aditya Mahajan wrote:
 On Mon, 30 Mar 2009, Mojca Miklavec wrote:

 I'm now trying to figure out which step makes problems in permission
 denied.

 From what I understand, you need write permission on TEXMFCACHE. So for

No, the missing step was setting the executable bit on
scipts/stubs/unix. Not even texexec runs without that.

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
___


[NTG-context] updating ConTeXt (MacTeX)

2009-03-30 Thread Robert Blackstone
Thank you, Mojca and Aditya, for your comments and advice. It will take me,
being no virtuoso with Terminal, a while to figure out what exactly I have
to do. It is in my script that I will again run into problems and then I
will beg you to help me out again.


Thank you, Hraban, for suggesting an easy way out: Use ConTeXt-Minimals, but
also there I manage to run into problems, mainly with files and scripts that
I can see in the finder but that are not found in Terminal, not even from
their parent directory.


Robert Blackstone
___
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
___