Re: [NTG-context] problem with setuptex

2013-07-22 Thread Thomas A. Schmitz

On 07/10/2013 11:24 AM, Mojca Miklavec wrote:

I would gladly help, but I don't know how zhs works and I didn't find
any hints during a quick search.

My suggestion would be to put
export PATH=$HOME/context/tex/texmf-linux-64/bin:$PATH
or something similar into the file that you are sourcing.

Mojca


Hi Mojca,

I'm happy to say that a recent update in Fedora solved the problem; 
setuptex now works again. Bizarre, I still have no idea where the 
problem came from...


All best

Thomas

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


Re: [NTG-context] problem with setuptex

2013-07-22 Thread David Rogers
Thomas A. Schmitz thomas.schm...@uni-bonn.de writes:

 On 07/10/2013 11:24 AM, Mojca Miklavec wrote:
 I would gladly help, but I don't know how zhs works and I didn't find
 any hints during a quick search.

 My suggestion would be to put
 export PATH=$HOME/context/tex/texmf-linux-64/bin:$PATH
 or something similar into the file that you are sourcing.

 Mojca

 Hi Mojca,

 I'm happy to say that a recent update in Fedora solved the problem;
 setuptex now works again. Bizarre, I still have no idea where the
 problem came from...

A tiny, random hunch: zsh treats its built-in source command
differently from its . command, and therefore sometimes one or the
other works better. It's worth trying . ~/context/tex/setuptex when
using zsh. However, I don't see really how it would have helped in this
situation, and on my machine either one works fine.

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


[NTG-context] problem with setuptex

2013-07-10 Thread Thomas A. Schmitz

Hi all, especially Mojca, I guess,

I have a somewhat bizarre problem with the setuptex script under the 
latest Fedora and zsh (version 5.02). Here's what happens:


source ~/context/tex/setuptex
/mnt/shared/context/tex is not a valid TEXROOT path.
(There is no file /mnt/shared/context/tex/texmf/tex/plain/base/plain.tex)
provide a proper tex root (like '. setuptex /something/tex')

The script works under bash; the error under Fedora is the same on two 
different computers, but I don't know if any other linux distribution 
has the same version of zsh. Can anyone else test and see if they have 
similar problems with zsh?


All best

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


Re: [NTG-context] problem with setuptex

2013-07-10 Thread Mojca Miklavec
On Wed, Jul 10, 2013 at 10:16 AM, Thomas A. Schmitz wrote:
 Hi all, especially Mojca, I guess,

 I have a somewhat bizarre problem with the setuptex script under the latest
 Fedora and zsh (version 5.02). Here's what happens:

 source ~/context/tex/setuptex
 /mnt/shared/context/tex is not a valid TEXROOT path.
 (There is no file /mnt/shared/context/tex/texmf/tex/plain/base/plain.tex)
 provide a proper tex root (like '. setuptex /something/tex')

 The script works under bash; the error under Fedora is the same on two
 different computers, but I don't know if any other linux distribution has
 the same version of zsh. Can anyone else test and see if they have similar
 problems with zsh?

I would gladly help, but I don't know how zhs works and I didn't find
any hints during a quick search.

My suggestion would be to put
   export PATH=$HOME/context/tex/texmf-linux-64/bin:$PATH
or something similar into the file that you are sourcing.

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


[NTG-context] Problem with SETUPTEX and KSH93

2012-08-20 Thread Alessandro Perucchi

Hello,

I'm new to ConTeXt, and I find it great!

I've done the standalone installation on my Linux box. For many reasons, 
I don't use bash, but ksh since all my customers are using ksh as there 
shell.


Nevertheless, the setuptex is not working for me.
Of course it works if I say

. ~/context/tex/setuptex ~/context/tex

But I would like to have it in the short form:

. ~/context/tex/setuptex

So for that in ksh, I needed to correct the setuptex like that:

line 99:
if [ z$BASH_SOURCE != z ]; then
SCRIPTPATH=$BASH_SOURCE
else
if [ z${.sh.version} != z ]; then
SCRIPTPATH=${.sh.file}
else
SCRIPTPATH=$0
fi
fi

And now, it works for ksh93, and all the other shells should be unaffected.

Would it be possible to correct it? Or if someone has a better idea, 
then I'm also ok, as long as it works for ksh.


Sincerely yours,
Alessandro Perucchi
___
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
___


Re: [NTG-context] Problem with SETUPTEX and KSH93

2012-08-20 Thread Mojca Miklavec
On Mon, Aug 20, 2012 at 11:04 AM, Alessandro Perucchi wrote:
 Hello,

 I'm new to ConTeXt, and I find it great!

 I've done the standalone installation on my Linux box. For many reasons, I
 don't use bash, but ksh since all my customers are using ksh as there shell.

 Nevertheless, the setuptex is not working for me.
 Of course it works if I say

 . ~/context/tex/setuptex ~/context/tex

 But I would like to have it in the short form:

 . ~/context/tex/setuptex

Can you please try again?

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


[NTG-context] Problem with SETUPTEX and KSH93

2012-08-20 Thread Alessandro Perucchi

On Mon, Aug 20, 2012 at 12:34 PM, Mojca Miklavec wrote:


Can you please try again?

Mojca


Hello Mojca,

thanks :-) it works wonderfully!
Now, I don't have to patch setuptex each time I'm updating ConTeXt :-D

Sincerely yours,
Alessandro

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