I have installed the Context Minimals following the newbie instructions on the wiki at contextgarden for Mac users. The instructions themselves are clear but should perhaps be updated: • the file originally downloaded is first-setup.sh not first-setup.tsh • to execute this file run ./first-setup.sh not first-setup.sh (at least, the former worked and did not return a “command not found” message). I also configured TeXShop as instructed. But now when I try to typeset a file, I get the error message: Users/alancbowen/Library/TeXShop/Engines/ConTeXtMinimals.engine does not have the executable bit set. How can I fix this? Alan Note: I am running Mac OS X 10.5.4.
Open Applications/Utilities/Terminal from the finder Type (or cut n paste from Mail/Entourage) and don't put a carriage return between these lines (they are wrapped automatically) chmod a+x Users/alancbowen/Library/TeXShop/Engines/ConTeXtMinimals.engine If that fails - and it should not - try: sudo chmod a+x Users/alancbowen/Library/TeXShop/Engines/ConTeXtMinimals.engine You can substitute: chmod a+x ~/Library/TeXShop/Engines/ConTeXtMinimals.engine for the above path, and you can opt to do chmod u+x ~/Library/TeXShop/Engines/ConTeXtMinimals.engine when only you should execute it or chmod g+x ~/Library/TeXShop/Engines/ConTeXtMinimals.engine if anyone in your group can execute it or you can be "typical" and say chmod 775 ~/Library/TeXShop/Engines/ConTeXtMinimals.engine and that will make everyone executable and you/your group read-writable. Since you are using UNIX (as Mac OS X proudly touts) you might want to snag a reference on shell scripting and basic UNIX commands. Welcome to the world beyond Aqua. That should do it. Charles On Sat, 2008-08-23 at 09:23 -0400, Alan Bowen wrote:
I have installed the Context Minimals following the newbie instructions on the wiki at contextgarden for Mac users.
The instructions themselves are clear but should perhaps be updated: • the file originally downloaded is first-setup.sh not first-setup.tsh • to execute this file run ./first-setup.sh not first-setup.sh (at least, the former worked and did not return a “command not found” message).
I also configured TeXShop as instructed. But now when I try to typeset a file, I get the error message: Users/alancbowen/Library/TeXShop/Engines/ConTeXtMinimals.engine does not have the executable bit set.
How can I fix this?
Alan
Note: I am running Mac OS X 10.5.4. ___________________________________________________________________________________ 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 ___________________________________________________________________________________
Charles, I ran the last command (for “typical”) but now, when I try to typeset \starttext Hello World! \stoptext it appears that there is a “context” folder missing in the minimals that I downloaded. That is, I get /Applications/ConTeXtMinimals/tex/setuptex: line 75: cd: /Applications/ ConTeXtMinimals/context: No such file or directory The argument "" is not a valid TEXROOT path. There is no file "/texmf/tex/plain/base/plain.tex" provide a proper tex root (like '. setuptex /something/tex') 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 1013 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 which indicates that Texlive 2007 was used. Alan Note: the text of ConTeXtMinimals.engine reads #!/bin/bash source /Applications/ConTeXtMinimals/tex/setuptex /Applications/ ConTeXtMinimals/context/tex texexec "$1" On Aug 23, 2008, at 12;20,09 , Charles P. Schaum wrote:
Open Applications/Utilities/Terminal from the finder
Type (or cut n paste from Mail/Entourage) and don't put a carriage return between these lines (they are wrapped automatically)
chmod a+x Users/alancbowen/Library/TeXShop/Engines/ConTeXtMinimals.engine
If that fails - and it should not - try:
sudo chmod a+x Users/alancbowen/Library/TeXShop/Engines/ConTeXtMinimals.engine
You can substitute:
chmod a+x ~/Library/TeXShop/Engines/ConTeXtMinimals.engine
for the above path, and you can opt to do
chmod u+x ~/Library/TeXShop/Engines/ConTeXtMinimals.engine
when only you should execute it or
chmod g+x ~/Library/TeXShop/Engines/ConTeXtMinimals.engine
if anyone in your group can execute it
or you can be "typical" and say
chmod 775 ~/Library/TeXShop/Engines/ConTeXtMinimals.engine
and that will make everyone executable and you/your group read- writable. Since you are using UNIX (as Mac OS X proudly touts) you might want to snag a reference on shell scripting and basic UNIX commands. Welcome to the world beyond Aqua.
That should do it.
Charles
On Sat, 2008-08-23 at 09:23 -0400, Alan Bowen wrote:
I have installed the Context Minimals following the newbie instructions on the wiki at contextgarden for Mac users.
The instructions themselves are clear but should perhaps be updated: • the file originally downloaded is first-setup.sh not first-setup.tsh • to execute this file run ./first-setup.sh not first-setup.sh (at least, the former worked and did not return a “command not found” message).
I also configured TeXShop as instructed. But now when I try to typeset a file, I get the error message: Users/alancbowen/Library/TeXShop/Engines/ConTeXtMinimals.engine does not have the executable bit set.
How can I fix this?
Alan
Note: I am running Mac OS X 10.5.4. ___________________________________________________________________________________ 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 ___________________________________________________________________________________
___________________________________________________________________________________ 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 ___________________________________________________________________________________
Yep, it's looking for stuff in other places than you installed it. You can confirm that by typing which texexec or which context and so forth. On the Mac, /usr/texbin is a symbolic link that points to a directory under /usr/local/texlive What you need to do - and I have not installed minimals - is find out the means to point your files to the right installation or else they will look for the old one. I would suggest to check the wiki until I look into things moew. Charles On Sat, 2008-08-23 at 13:16 -0400, Alan Bowen wrote:
Charles,
I ran the last command (for “typical”) but now, when I try to typeset \starttext Hello World! \stoptext it appears that there is a “context” folder missing in the minimals that I downloaded. That is, I get
/Applications/ConTeXtMinimals/tex/setuptex: line 75: cd: /Applications/ ConTeXtMinimals/context: No such file or directory The argument "" is not a valid TEXROOT path. There is no file "/texmf/tex/plain/base/plain.tex" provide a proper tex root (like '. setuptex /something/tex') 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 1013 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
which indicates that Texlive 2007 was used.
Alan
Note: the text of ConTeXtMinimals.engine reads
#!/bin/bash source /Applications/ConTeXtMinimals/tex/setuptex /Applications/ ConTeXtMinimals/context/tex texexec "$1"
On Aug 23, 2008, at 12;20,09 , Charles P. Schaum wrote:
Open Applications/Utilities/Terminal from the finder
Type (or cut n paste from Mail/Entourage) and don't put a carriage return between these lines (they are wrapped automatically)
chmod a+x Users/alancbowen/Library/TeXShop/Engines/ConTeXtMinimals.engine
If that fails - and it should not - try:
sudo chmod a+x Users/alancbowen/Library/TeXShop/Engines/ConTeXtMinimals.engine
You can substitute:
chmod a+x ~/Library/TeXShop/Engines/ConTeXtMinimals.engine
for the above path, and you can opt to do
chmod u+x ~/Library/TeXShop/Engines/ConTeXtMinimals.engine
when only you should execute it or
chmod g+x ~/Library/TeXShop/Engines/ConTeXtMinimals.engine
if anyone in your group can execute it
or you can be "typical" and say
chmod 775 ~/Library/TeXShop/Engines/ConTeXtMinimals.engine
and that will make everyone executable and you/your group read- writable. Since you are using UNIX (as Mac OS X proudly touts) you might want to snag a reference on shell scripting and basic UNIX commands. Welcome to the world beyond Aqua.
That should do it.
Charles
On Sat, 2008-08-23 at 09:23 -0400, Alan Bowen wrote:
I have installed the Context Minimals following the newbie instructions on the wiki at contextgarden for Mac users.
The instructions themselves are clear but should perhaps be updated: • the file originally downloaded is first-setup.sh not first-setup.tsh • to execute this file run ./first-setup.sh not first-setup.sh (at least, the former worked and did not return a “command not found” message).
I also configured TeXShop as instructed. But now when I try to typeset a file, I get the error message: Users/alancbowen/Library/TeXShop/Engines/ConTeXtMinimals.engine does not have the executable bit set.
How can I fix this?
Alan
Note: I am running Mac OS X 10.5.4. ___________________________________________________________________________________ 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 ___________________________________________________________________________________
___________________________________________________________________________________ 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 ___________________________________________________________________________________
___________________________________________________________________________________ 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 ___________________________________________________________________________________
Thanks, Charles. which texexec produces /usr/texbin/texexec which context produces nothing. Alan On Aug 23, 2008, at 19;35,43 , Charles P. Schaum wrote:
Yep, it's looking for stuff in other places than you installed it.
You can confirm that by typing
which texexec
or
which context
and so forth.
On the Mac, /usr/texbin is a symbolic link that points to a directory under /usr/local/texlive
What you need to do - and I have not installed minimals - is find out the means to point your files to the right installation or else they will look for the old one.
I would suggest to check the wiki until I look into things moew.
Charles
On Sat, 2008-08-23 at 13:16 -0400, Alan Bowen wrote:
Charles,
I ran the last command (for “typical”) but now, when I try to typeset \starttext Hello World! \stoptext it appears that there is a “context” folder missing in the minimals that I downloaded. That is, I get
/Applications/ConTeXtMinimals/tex/setuptex: line 75: cd: / Applications/ ConTeXtMinimals/context: No such file or directory The argument "" is not a valid TEXROOT path. There is no file "/texmf/tex/plain/base/plain.tex" provide a proper tex root (like '. setuptex /something/tex') 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 1013 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
which indicates that Texlive 2007 was used.
Alan
Note: the text of ConTeXtMinimals.engine reads
#!/bin/bash source /Applications/ConTeXtMinimals/tex/setuptex /Applications/ ConTeXtMinimals/context/tex texexec "$1"
On Aug 23, 2008, at 12;20,09 , Charles P. Schaum wrote:
Open Applications/Utilities/Terminal from the finder
Type (or cut n paste from Mail/Entourage) and don't put a carriage return between these lines (they are wrapped automatically)
chmod a+x Users/alancbowen/Library/TeXShop/Engines/ConTeXtMinimals.engine
If that fails - and it should not - try:
sudo chmod a+x Users/alancbowen/Library/TeXShop/Engines/ConTeXtMinimals.engine
You can substitute:
chmod a+x ~/Library/TeXShop/Engines/ConTeXtMinimals.engine
for the above path, and you can opt to do
chmod u+x ~/Library/TeXShop/Engines/ConTeXtMinimals.engine
when only you should execute it or
chmod g+x ~/Library/TeXShop/Engines/ConTeXtMinimals.engine
if anyone in your group can execute it
or you can be "typical" and say
chmod 775 ~/Library/TeXShop/Engines/ConTeXtMinimals.engine
and that will make everyone executable and you/your group read- writable. Since you are using UNIX (as Mac OS X proudly touts) you might want to snag a reference on shell scripting and basic UNIX commands. Welcome to the world beyond Aqua.
That should do it.
Charles
On Sat, 2008-08-23 at 09:23 -0400, Alan Bowen wrote:
I have installed the Context Minimals following the newbie instructions on the wiki at contextgarden for Mac users.
The instructions themselves are clear but should perhaps be updated: • the file originally downloaded is first-setup.sh not first-setup.tsh • to execute this file run ./first-setup.sh not first-setup.sh (at least, the former worked and did not return a “command not found” message).
I also configured TeXShop as instructed. But now when I try to typeset a file, I get the error message: Users/alancbowen/Library/TeXShop/Engines/ConTeXtMinimals.engine does not have the executable bit set.
How can I fix this?
Alan
Note: I am running Mac OS X 10.5.4. ___________________________________________________________________________________ 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 ___________________________________________________________________________________
___________________________________________________________________________________ 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 ___________________________________________________________________________________
___________________________________________________________________________________ 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 ___________________________________________________________________________________
___________________________________________________________________________________ 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 ___________________________________________________________________________________
Here's a start: What's in your path? Typing set in the terminal window should tell you. Second, did you add source ~/path/to/context/tex/setuptex ~/path/to/context/tex to your ~/.profile You need to have the source work from when you log in, and that happens in the .profile, not the .bashrc. That way, stuff under Aqua see the right environment. If you just do cmdline, then .bashrc is OK. That's similar to GNOME under Linux/BSD. See what happens after you do that. Charles On Sat, 2008-08-23 at 13:16 -0400, Alan Bowen wrote:
Charles,
I ran the last command (for “typical”) but now, when I try to typeset \starttext Hello World! \stoptext it appears that there is a “context” folder missing in the minimals that I downloaded. That is, I get
/Applications/ConTeXtMinimals/tex/setuptex: line 75: cd: /Applications/ ConTeXtMinimals/context: No such file or directory The argument "" is not a valid TEXROOT path. There is no file "/texmf/tex/plain/base/plain.tex" provide a proper tex root (like '. setuptex /something/tex') 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 1013 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
which indicates that Texlive 2007 was used.
Alan
Note: the text of ConTeXtMinimals.engine reads
#!/bin/bash source /Applications/ConTeXtMinimals/tex/setuptex /Applications/ ConTeXtMinimals/context/tex texexec "$1"
On Aug 23, 2008, at 12;20,09 , Charles P. Schaum wrote:
Open Applications/Utilities/Terminal from the finder
Type (or cut n paste from Mail/Entourage) and don't put a carriage return between these lines (they are wrapped automatically)
chmod a+x Users/alancbowen/Library/TeXShop/Engines/ConTeXtMinimals.engine
If that fails - and it should not - try:
sudo chmod a+x Users/alancbowen/Library/TeXShop/Engines/ConTeXtMinimals.engine
You can substitute:
chmod a+x ~/Library/TeXShop/Engines/ConTeXtMinimals.engine
for the above path, and you can opt to do
chmod u+x ~/Library/TeXShop/Engines/ConTeXtMinimals.engine
when only you should execute it or
chmod g+x ~/Library/TeXShop/Engines/ConTeXtMinimals.engine
if anyone in your group can execute it
or you can be "typical" and say
chmod 775 ~/Library/TeXShop/Engines/ConTeXtMinimals.engine
and that will make everyone executable and you/your group read- writable. Since you are using UNIX (as Mac OS X proudly touts) you might want to snag a reference on shell scripting and basic UNIX commands. Welcome to the world beyond Aqua.
That should do it.
Charles
On Sat, 2008-08-23 at 09:23 -0400, Alan Bowen wrote:
I have installed the Context Minimals following the newbie instructions on the wiki at contextgarden for Mac users.
The instructions themselves are clear but should perhaps be updated: • the file originally downloaded is first-setup.sh not first-setup.tsh • to execute this file run ./first-setup.sh not first-setup.sh (at least, the former worked and did not return a “command not found” message).
I also configured TeXShop as instructed. But now when I try to typeset a file, I get the error message: Users/alancbowen/Library/TeXShop/Engines/ConTeXtMinimals.engine does not have the executable bit set.
How can I fix this?
Alan
Note: I am running Mac OS X 10.5.4. ___________________________________________________________________________________ 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 ___________________________________________________________________________________
___________________________________________________________________________________ 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 ___________________________________________________________________________________
___________________________________________________________________________________ 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 ___________________________________________________________________________________
Charles--- set produces (inter alia) PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin:/usr/X11/ bin I created a .profile containing the line source ~/path/to/context/tex/setuptex ~/path/to/context/tex and put it in Macintosh HD/Users/alancbowen/Library But, sad to say, I get the same error when I try to typeset my “Hello World!” file using the™ minimals: /Applications/ConTeXtMinimals/tex/setuptex: line 75: cd: /Applications/ ConTeXtMinimals/context: No such file or directory The argument "" is not a valid TEXROOT path. There is no file "/texmf/tex/plain/base/plain.tex" provide a proper tex root (like '. setuptex /something/tex') Alan On Aug 23, 2008, at 21;04,37 , Charles P. Schaum wrote:
Here's a start:
What's in your path? Typing set in the terminal window should tell you.
Second, did you add
source ~/path/to/context/tex/setuptex ~/path/to/context/tex
to your ~/.profile
You need to have the source work from when you log in, and that happens in the .profile, not the .bashrc. That way, stuff under Aqua see the right environment. If you just do cmdline, then .bashrc is OK.
That's similar to GNOME under Linux/BSD.
See what happens after you do that.
Charles
On Sat, 2008-08-23 at 13:16 -0400, Alan Bowen wrote:
Charles,
I ran the last command (for “typical”) but now, when I try to typeset \starttext Hello World! \stoptext it appears that there is a “context” folder missing in the minimals that I downloaded. That is, I get
/Applications/ConTeXtMinimals/tex/setuptex: line 75: cd: / Applications/ ConTeXtMinimals/context: No such file or directory The argument "" is not a valid TEXROOT path. There is no file "/texmf/tex/plain/base/plain.tex" provide a proper tex root (like '. setuptex /something/tex') 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 1013 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
which indicates that Texlive 2007 was used.
Alan
Note: the text of ConTeXtMinimals.engine reads
#!/bin/bash source /Applications/ConTeXtMinimals/tex/setuptex /Applications/ ConTeXtMinimals/context/tex texexec "$1"
On Aug 23, 2008, at 12;20,09 , Charles P. Schaum wrote:
Open Applications/Utilities/Terminal from the finder
Type (or cut n paste from Mail/Entourage) and don't put a carriage return between these lines (they are wrapped automatically)
chmod a+x Users/alancbowen/Library/TeXShop/Engines/ConTeXtMinimals.engine
If that fails - and it should not - try:
sudo chmod a+x Users/alancbowen/Library/TeXShop/Engines/ConTeXtMinimals.engine
You can substitute:
chmod a+x ~/Library/TeXShop/Engines/ConTeXtMinimals.engine
for the above path, and you can opt to do
chmod u+x ~/Library/TeXShop/Engines/ConTeXtMinimals.engine
when only you should execute it or
chmod g+x ~/Library/TeXShop/Engines/ConTeXtMinimals.engine
if anyone in your group can execute it
or you can be "typical" and say
chmod 775 ~/Library/TeXShop/Engines/ConTeXtMinimals.engine
and that will make everyone executable and you/your group read- writable. Since you are using UNIX (as Mac OS X proudly touts) you might want to snag a reference on shell scripting and basic UNIX commands. Welcome to the world beyond Aqua.
That should do it.
Charles
On Sat, 2008-08-23 at 09:23 -0400, Alan Bowen wrote:
I have installed the Context Minimals following the newbie instructions on the wiki at contextgarden for Mac users.
The instructions themselves are clear but should perhaps be updated: • the file originally downloaded is first-setup.sh not first-setup.tsh • to execute this file run ./first-setup.sh not first-setup.sh (at least, the former worked and did not return a “command not found” message).
I also configured TeXShop as instructed. But now when I try to typeset a file, I get the error message: Users/alancbowen/Library/TeXShop/Engines/ConTeXtMinimals.engine does not have the executable bit set.
How can I fix this?
Alan
Note: I am running Mac OS X 10.5.4. ___________________________________________________________________________________ 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 ___________________________________________________________________________________
___________________________________________________________________________________ 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 ___________________________________________________________________________________
___________________________________________________________________________________ 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 ___________________________________________________________________________________
___________________________________________________________________________________ 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 ___________________________________________________________________________________
On Sun, 2008-08-24 at 07:54 -0400, Alan Bowen wrote:
I created a .profile containing the line source ~/path/to/context/tex/setuptex ~/path/to/context/tex and put it in Macintosh HD/Users/alancbowen/Library
OK, the source ~/path/to/context/tex/setuptex ~/path/to/context/tex should be the path to YOUR context minimals (the /path/to/blablabla is commonly understood among UNIX users as meaning "substitute the path to my thingy here." I know where your TeXshop files are (under your Library dir tree) but I don't know where the ConTeXt minimals were installed on your machine. I have not installed minimals because the TeXLive distribution with MacTeX has served me satisfactorily to date. Please locate the folders context/tex/setuptex and context/tex in the place where the minimals install put them. Are they under your home dir or are they under /usr/local? Figure out the FULL pathname from root, e.g., /usr/local/context/tex/setuptex or whatever it is. Put those full pathnames into the source line. Now, your .profile file goes in your home dir, /Users/alancbowen. The Bourne-again shell, bash, must find that file in your home dir when you login. /Users/alancbowen is how the UNIX side of OS X sees you, not Macintosh HD/Users/alancbowen/Library. That's how Aqua things see you. They both work, but UNIX creates a virtual environment off of a root /, that in turn has Mac dirs like Applications, Users, and so on. /Users on the Mac corresponds to /home on other Unix-like systems. And this brings up a good point. With UNIX pathnames, you have two alternatives for spaces in pathnames, e.g., from your home dir: "~/The Directory/and/its leaves" ~/The\ Directory/and/its\ leaves HTH Charles
But, sad to say, I get the same error when I try to typeset my “Hello World!” file using the™ minimals:
/Applications/ConTeXtMinimals/tex/setuptex: line 75: cd: /Applications/ ConTeXtMinimals/context: No such file or directory The argument "" is not a valid TEXROOT path. There is no file "/texmf/tex/plain/base/plain.tex" provide a proper tex root (like '. setuptex /something/tex')
Alan
On Aug 23, 2008, at 21;04,37 , Charles P. Schaum wrote:
Here's a start:
What's in your path? Typing set in the terminal window should tell you.
Second, did you add
source ~/path/to/context/tex/setuptex ~/path/to/context/tex
to your ~/.profile
You need to have the source work from when you log in, and that happens in the .profile, not the .bashrc. That way, stuff under Aqua see the right environment. If you just do cmdline, then .bashrc is OK.
That's similar to GNOME under Linux/BSD.
See what happens after you do that.
Charles
On Sat, 2008-08-23 at 13:16 -0400, Alan Bowen wrote:
Charles,
I ran the last command (for “typical”) but now, when I try to typeset \starttext Hello World! \stoptext it appears that there is a “context” folder missing in the minimals that I downloaded. That is, I get
/Applications/ConTeXtMinimals/tex/setuptex: line 75: cd: / Applications/ ConTeXtMinimals/context: No such file or directory The argument "" is not a valid TEXROOT path. There is no file "/texmf/tex/plain/base/plain.tex" provide a proper tex root (like '. setuptex /something/tex') 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 1013 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
which indicates that Texlive 2007 was used.
Alan
Note: the text of ConTeXtMinimals.engine reads
#!/bin/bash source /Applications/ConTeXtMinimals/tex/setuptex /Applications/ ConTeXtMinimals/context/tex texexec "$1"
On Aug 23, 2008, at 12;20,09 , Charles P. Schaum wrote:
Open Applications/Utilities/Terminal from the finder
Type (or cut n paste from Mail/Entourage) and don't put a carriage return between these lines (they are wrapped automatically)
chmod a+x Users/alancbowen/Library/TeXShop/Engines/ConTeXtMinimals.engine
If that fails - and it should not - try:
sudo chmod a+x Users/alancbowen/Library/TeXShop/Engines/ConTeXtMinimals.engine
You can substitute:
chmod a+x ~/Library/TeXShop/Engines/ConTeXtMinimals.engine
for the above path, and you can opt to do
chmod u+x ~/Library/TeXShop/Engines/ConTeXtMinimals.engine
when only you should execute it or
chmod g+x ~/Library/TeXShop/Engines/ConTeXtMinimals.engine
if anyone in your group can execute it
or you can be "typical" and say
chmod 775 ~/Library/TeXShop/Engines/ConTeXtMinimals.engine
and that will make everyone executable and you/your group read- writable. Since you are using UNIX (as Mac OS X proudly touts) you might want to snag a reference on shell scripting and basic UNIX commands. Welcome to the world beyond Aqua.
That should do it.
Charles
On Sat, 2008-08-23 at 09:23 -0400, Alan Bowen wrote:
I have installed the Context Minimals following the newbie instructions on the wiki at contextgarden for Mac users.
The instructions themselves are clear but should perhaps be updated: • the file originally downloaded is first-setup.sh not first-setup.tsh • to execute this file run ./first-setup.sh not first-setup.sh (at least, the former worked and did not return a “command not found” message).
I also configured TeXShop as instructed. But now when I try to typeset a file, I get the error message: Users/alancbowen/Library/TeXShop/Engines/ConTeXtMinimals.engine does not have the executable bit set.
How can I fix this?
Alan
Note: I am running Mac OS X 10.5.4. ___________________________________________________________________________________ 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 ___________________________________________________________________________________
___________________________________________________________________________________ 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 ___________________________________________________________________________________
___________________________________________________________________________________ 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 ___________________________________________________________________________________
___________________________________________________________________________________ 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 ___________________________________________________________________________________
___________________________________________________________________________________ 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 ___________________________________________________________________________________
Charles---this is very helpful and much appreciated. Alan
I created a .profile containing the line source ~/path/to/context/tex/setuptex ~/path/to/context/tex and put it in Macintosh HD/Users/alancbowen/Library
OK, the source ~/path/to/context/tex/setuptex ~/path/to/context/tex should be the path to YOUR context minimals (the /path/to/blablabla is commonly understood among UNIX users as meaning "substitute the path to my thingy here." OK I know where your TeXshop files are (under your Library dir tree) but I don't know where the ConTeXt minimals were installed on your machine. I have not installed minimals because the TeXLive distribution with MacTeX has served me satisfactorily to date.
As the wiki says, all the required files are in the /Applications/ ConTeXtMinimals folder.
Please locate the folders context/tex/setuptex and context/tex in the place where the minimals install put them. Are they under your home dir or are they under /usr/local?
I do not seem to have a setuptex folder on my box---at least I have not been able to find one under either /usr/local or /Users/ alancbowen/. And there certainly is none in /Applications/ ConTeXtMinimals (as seems to be expected).
Figure out the FULL pathname from root, e.g., /usr/local/context/tex/setuptex or whatever it is. Put those full pathnames into the source line.
Now, your .profile file goes in your home dir, /Users/alancbowen. The Bourne-again shell, bash, must find that file in your home dir when you login.
OK
/Users/alancbowen is how the UNIX side of OS X sees you, not Macintosh HD/Users/alancbowen/Library. That's how Aqua things see you. They both work, but UNIX creates a virtual environment off of a root /, that in turn has Mac dirs like Applications, Users, and so on. /Users on the Mac corresponds to /home on other Unix-like systems.
And this brings up a good point. With UNIX pathnames, you have two alternatives for spaces in pathnames, e.g., from your home dir: "~/The Directory/and/its leaves" ~/The\ Directory/and/its\ leaves Thanks for the clarification.
HTH
Charles
But, sad to say, I get the same error when I try to typeset my “Hello World!” file using the™ minimals:
/Applications/ConTeXtMinimals/tex/setuptex: line 75: cd: / Applications/ ConTeXtMinimals/context: No such file or directory The argument "" is not a valid TEXROOT path. There is no file "/texmf/tex/plain/base/plain.tex" provide a proper tex root (like '. setuptex /something/tex')
Alan
On Aug 23, 2008, at 21;04,37 , Charles P. Schaum wrote:
Here's a start:
What's in your path? Typing set in the terminal window should tell you.
Second, did you add
source ~/path/to/context/tex/setuptex ~/path/to/context/tex
to your ~/.profile
You need to have the source work from when you log in, and that happens in the .profile, not the .bashrc. That way, stuff under Aqua see the right environment. If you just do cmdline, then .bashrc is OK.
That's similar to GNOME under Linux/BSD.
See what happens after you do that.
Charles
On Sat, 2008-08-23 at 13:16 -0400, Alan Bowen wrote:
Charles,
I ran the last command (for “typical”) but now, when I try to typeset \starttext Hello World! \stoptext it appears that there is a “context” folder missing in the minimals that I downloaded. That is, I get
/Applications/ConTeXtMinimals/tex/setuptex: line 75: cd: / Applications/ ConTeXtMinimals/context: No such file or directory The argument "" is not a valid TEXROOT path. There is no file "/texmf/tex/plain/base/plain.tex" provide a proper tex root (like '. setuptex /something/tex') 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 1013 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
which indicates that Texlive 2007 was used.
Alan
Note: the text of ConTeXtMinimals.engine reads
#!/bin/bash source /Applications/ConTeXtMinimals/tex/setuptex /Applications/ ConTeXtMinimals/context/tex texexec "$1"
On Aug 23, 2008, at 12;20,09 , Charles P. Schaum wrote:
Open Applications/Utilities/Terminal from the finder
Type (or cut n paste from Mail/Entourage) and don't put a carriage return between these lines (they are wrapped automatically)
chmod a+x Users/alancbowen/Library/TeXShop/Engines/ConTeXtMinimals.engine
If that fails - and it should not - try:
sudo chmod a+x Users/alancbowen/Library/TeXShop/Engines/ConTeXtMinimals.engine
You can substitute:
chmod a+x ~/Library/TeXShop/Engines/ConTeXtMinimals.engine
for the above path, and you can opt to do
chmod u+x ~/Library/TeXShop/Engines/ConTeXtMinimals.engine
when only you should execute it or
chmod g+x ~/Library/TeXShop/Engines/ConTeXtMinimals.engine
if anyone in your group can execute it
or you can be "typical" and say
chmod 775 ~/Library/TeXShop/Engines/ConTeXtMinimals.engine
and that will make everyone executable and you/your group read- writable. Since you are using UNIX (as Mac OS X proudly touts) you might want to snag a reference on shell scripting and basic UNIX commands. Welcome to the world beyond Aqua.
That should do it.
Charles
On Sat, 2008-08-23 at 09:23 -0400, Alan Bowen wrote:
I have installed the Context Minimals following the newbie instructions on the wiki at contextgarden for Mac users.
The instructions themselves are clear but should perhaps be updated: • the file originally downloaded is first-setup.sh not first-setup.tsh • to execute this file run ./first-setup.sh not first-setup.sh (at least, the former worked and did not return a “command not found” message).
I also configured TeXShop as instructed. But now when I try to typeset a file, I get the error message: Users/alancbowen/Library/TeXShop/Engines/ConTeXtMinimals.engine does not have the executable bit set.
How can I fix this?
Alan
Note: I am running Mac OS X 10.5.4. ___________________________________________________________________________________ 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 ___________________________________________________________________________________
___________________________________________________________________________________ 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 ___________________________________________________________________________________
___________________________________________________________________________________ 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 ___________________________________________________________________________________
___________________________________________________________________________________ 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 ___________________________________________________________________________________
___________________________________________________________________________________ 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 ___________________________________________________________________________________
___________________________________________________________________________________ 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 ___________________________________________________________________________________
Hi Folks, I wanted to confirm that Hans is **Correct** about font fitting. In fact, I think that scaling is superior. One thing I did find is that one must go real easy with the scaling, e.g., compute the difference between the size you want/need, and see that it isn't too great, as the test shows. This test suite, written for plain, nevertheless will work in ConText IF you set the conditional value \havecontexttrue, which I did below. Some of the exact font results will, however, differ between the two. That was just my not trying to rectify differences in the default fonts and sizes. I found this exercise to be fun for learning about macro expansion, as well as dealing with multiple constraints and tail recursion. Charles ----Cut Here----- %Testing insertion of kerns and stuff \newif\ifhavecontext %\havecontextfalse \havecontexttrue % Here we have two kerns that are equally smaller and larger \newdimen\KernSmall \newdimen\KernLarge \KernSmall=-0.033333em \KernLarge=0.033333em % This is Knuth's length macro from the \Tex Book \def\length#1{\count30=0 \getlength#1\end \number\count30} \def\getlength#1{\ifx#1\end \let\next=\relax \else\advance\count30 by1 \let\next=\getlength\fi \next} % This is a modified version of the length macro. % It's existence is to stuff kerns between any two internal tokens. \newcount\intraword \newdimen\intrakern {\catcode`@=11 \gdef\InsertKern#1#2{\intraword=0\intrakern=#1\@ppend#2\end} \gdef\@ppend#1{\ifx#1\end \def\insertium{}\else \def\insertium{\kern \intrakern}\fi \ifnum\intraword>0\insertium\fi \ifx#1\end \let\next= \relax\else\advance\intraword by1\let\next=\@ppend#1\fi\next}} % But who says you have to use only kerns? {\catcode`@=11 \gdef\InsertStuff#1#2{\intraword=0\gdef\StickIt{#1}\@ppendstuff#2\end} \gdef\@ppendstuff#1{\ifx#1\end \def\insertium{}\else \def \insertium{\StickIt}\fi \ifnum\intraword>0\insertium\fi \ifx#1\end \let \next=\relax\else\advance\intraword by1\let\next=\@ppendstuff#1\fi \next}} % SDF-1 will control the scaled box to equal the negative kerning \newdimen\SDFONE \newdimen\fitdimone \newdimen\fitdimtwo \def\fitbox#1{% \setbox30=\hbox{\InsertKern{\KernSmall}{Garbage\ in,\ garbage\ out.}} \SDFONE=\wd30 \font\custfont=cmr10 scaled 1000 \setbox30=\hbox{\custfont#1} \fitdimone=\SDFONE \fitdimtwo=\wd30 \divide\fitdimtwo by 1000 \divide\fitdimone\fitdimtwo \count30=\fitdimone \font\custfont=cmr10 scaled \count30 \hbox{\custfont#1} } % Okay, and this is what it all comes to\dots \ifhavecontext\starttext\fi \fitbox{OK, Class\dots}\par \bigskip Garbage in, garbage out.\par Ignore spaces and get Knuth's count of \length{Garbage in, garbage out.}.\par Count spaces and get Knuth's count of \length{Garbage\ in,\ garbage\ out.}.\par \smallskip This includes punctuation.\par \bigskip Here you can see the insertion points of the macro.\par \InsertStuff{$_\wedge$}{Garbage\ in,\ garbage\ out.} \medskip Hungry? Want {\bf \InsertStuff{$^{Snacks}$}{Food}}? \medskip Warning! You can put funky stuff in the insertium, but not in the text.\par If you do that, \TeX\ will either produce an error or give you strange results. \bigskip \newdimen\compn \newdimen\comps \newdimen\compl Inserting kerns does have an effect:\par \smallskip Length of ``Garbage in, garbage out'' is \setbox30=\hbox{Garbage in, garbage out}\the\wd30 \compn=\wd30\par Length of ``\InsertKern{\KernSmall}{Garbage\ in,\ garbage\ out}'' is \setbox30=\hbox{\InsertKern{\KernSmall}{Garbage\ in,\ garbage\ out}} \the\wd30 \comps=\wd30\par Length of ``\InsertKern{\KernLarge}{Garbage\ in,\ garbage\ out}'' is \setbox30=\hbox{\InsertKern{\KernLarge}{Garbage\ in,\ garbage\ out}} \the\wd30 \compl=\wd30\par \bigskip Size matters\dots \smallskip {\tt N:} Garbage in, garbage out.\par {\tt S:} {\InsertKern{\KernSmall}{Garbage\ in,\ garbage\ out.}\par {\tt L:} {\InsertKern{\KernLarge}{Garbage\ in,\ garbage\ out.}\par \bigskip Which looks better? Scaled \the\KernSmall \smallskip Negative kern insertion (top) vs. font scaling (bottom):\par \ \ \ \hbox{\InsertKern{\KernSmall}{Garbage\ in,\ garbage\ out.}}\par \ \fitbox{Garbage in, garbage out.} \bigskip I had in mind something a little more radical\dots \KernSmall=-0.066667em \ Scaled \the\KernSmall \smallskip Negative kern insertion (top) vs. font scaling (bottom):\par \ \ \ \hbox{\InsertKern{\KernSmall}{Garbage\ in,\ garbage\ out.}}\par \ \fitbox{Garbage in, garbage out.} \bigskip This is just sick\dots\par \KernSmall=-0.1em Scaled \the\KernSmall \smallskip Negative kern insertion (top) vs. font scaling (bottom):\par \ \ \ \hbox{\InsertKern{\KernSmall}{Garbage\ in,\ garbage\ out.}}\par \ \fitbox{Garbage in, garbage out.} \smallskip \KernSmall=-0.2em Scaled \the\KernSmall \smallskip Negative kern insertion (top) vs. font scaling (bottom):\par \ \ \ \hbox{\InsertKern{\KernSmall}{Garbage\ in,\ garbage\ out.}}\par \ \fitbox{Garbage in, garbage out.} \smallskip \KernSmall=-0.3em Scaled \the\KernSmall \smallskip Negative kern insertion (top) vs. font scaling (bottom):\par \ \ \ \hbox{\InsertKern{\KernSmall}{Garbage\ in,\ garbage\ out.}}\par \ \fitbox{Garbage in, garbage out.} \ifhavecontext\stoptext\else\bye\fi
participants (2)
-
Alan Bowen
-
Charles P. Schaum