Re: [NTG-context] Prioritise TEXMFHOME

2013-01-23 Thread Marco Patzer
On 2013–01–22 Mojca Miklavec wrote:

 I don't know how to reproduce that even though I remember that I had
 problem if I set export TEXMFHOME=/path/with/trailing/slash/.

I used the following setup to create a reproducible clean
environment without interference of possibly set variables.

curl -O http://minimals.contextgarden.net/setup/first-setup.sh
chmod +x first-setup.sh
./first-setup.sh --modules=t-gnuplot
mkdir mymodules
echo '\bold' mymodules/t-mymodule.tex
echo '\sans' mymodules/t-gnuplot.tex
cat  test-mymodule.tex EOF
\usemodule [mymodule]
\starttext
\input knuth
\stoptext
EOF
cat  test-mygnuplot.tex EOF
\usemodule [gnuplot]
\starttext
\input knuth
\stoptext
EOF
source tex/setuptex
export TEXMFHOME=mymodules
context test-mymodule.tex test-mygnuplot.tex

mymodule is loaded and the text is printed in bold, the modified
gnuplot module is not loaded.

 What does
 mtxrun t-gnuplot.tex
 return you?

test setup:
/home/fusion/tex/texmf-modules/tex/context/third/gnuplot/t-gnuplot.tex
mymodules/t-gnuplot.tex

in my real setup only the distribution file is found. I didn't yet
try to figure out why.

 - What is your $TEXMFHOME and how did you change it in case that you did?

See minimal example above. In my real setup it's

  /home/marco/usr/share/texmf

and it's set in $HOME/.profile using export TEXMFHOME=…

 - Where exactly is your file t-gnuplot.tex?

See minimal example above. In my real setup it's

  /home/marco/usr/share/texmf/t-gnuplot.tex

 - Do you run MkIV?

Yes

 With current beta or with TeX Live?

current version: 2013.01.22 18:33

 - What does 'kpsewhich t-gnuplot.tex' return you?

I didn't know ConTeXt uses kpsewhich.

test setup:
/home/fusion/tex/texmf-modules/tex/context/third/gnuplot/t-gnuplot.tex

real setup:
/home/marco/usr/local/share/context-beta/tex/texmf-modules/tex/context/third/gnuplot/t-gnuplot.tex

Marco


signature.asc
Description: Digital signature
___
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] Prioritise TEXMFHOME

2013-01-23 Thread Mojca Miklavec
On Wed, Jan 23, 2013 at 11:26 AM, Marco Patzer wrote:

 I used the following setup to create a reproducible clean
 environment without interference of possibly set variables.

 echo '\sans' mymodules/t-gnuplot.tex

You should put the file under
   mymodules/tex/context/third/t-gnuplot.tex
and not just anywhere on top level of $TEXMFHOME.

At least somewhere under mymodules/tex/ (but I'm not sure if that
alone is 100% safe - that is - I'm not sure about the search/sort
order of two files with the same name under a different path inside
the texmf tree).

 - What does 'kpsewhich t-gnuplot.tex' return you?

 I didn't know ConTeXt uses kpsewhich.

In MkII it does. But I meant it more like a cross-check. It might be
that there would be some bug in mtxrun when searching for files and in
that case kpsewhich may serve as a confirmation that your set up works
or doesn't work properly.

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
___


Re: [NTG-context] Prioritise TEXMFHOME

2013-01-23 Thread Marco Patzer
On 2013–01–23 Mojca Miklavec wrote:

 On Wed, Jan 23, 2013 at 11:26 AM, Marco Patzer wrote:
 
  I used the following setup to create a reproducible clean
  environment without interference of possibly set variables.
 
  echo '\sans' mymodules/t-gnuplot.tex
 
 You should put the file under
mymodules/tex/context/third/t-gnuplot.tex
 and not just anywhere on top level of $TEXMFHOME.

That works, thanks. I didn't think about the importance of the tex
file system structure within TEXMFHOME since my personal files
always have been picked up from random subdirectories within
TEXMFHOME.

 At least somewhere under mymodules/tex/ (but I'm not sure if that
 alone is 100% safe - that is - I'm not sure about the search/sort
 order of two files with the same name under a different path inside
 the texmf tree).

mymodules/tex doesn't seem to be sufficient. My tests revealed that
for files not present in the distribution tex tree the location
within TEXMFHOME does not matter. Files present in the distribution
which are supposed to be overwritten in TEXMFHOME need the same
path. Maybe this is more strict than necessary, but it works. A
version mismatch that gets unnoticed can be very frustrating.

  I didn't know ConTeXt uses kpsewhich.
 
 In MkII it does. But I meant it more like a cross-check. It might be
 that there would be some bug in mtxrun when searching for files and in
 that case kpsewhich may serve as a confirmation that your set up works
 or doesn't work properly.

All right. Problem solved. Thanks Mojca!

Marco


signature.asc
Description: Digital signature
___
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] Prioritise TEXMFHOME

2013-01-22 Thread Mojca Miklavec
On Tue, Jan 22, 2013 at 8:58 PM, Marco Patzer wrote:
 Hi,

 can I somehow set up that files within TEXMFHOME are preferred to
 files found in the distribution? Or is there another variable which
 is more suitable than TEXMFHOME for this purpose?

Doesn't it already have the highest priority?

MkII:

TEXMFHOME = $HOME/texmf
TEXMF =
{$TEXMFHOME,!!$TEXMFPROJECT,!!$TEXMFFONTS,!!$TEXMFLOCAL,!!$TEXMFMODULES,!!$TEXMFCONTEXT,!!$TEXMFOS,!!$TEXMFMAIN}

MkIV:

TEXMFHOME   = home:texmf,
TEXMF   =
{$TEXMFHOME,!!$TEXMFPROJECT,!!$TEXMFFONTS,!!$TEXMFLOCAL,!!$TEXMFMODULES,!!$TEXMFCONTEXT,!!$TEXMFSYSTEM,!!$TEXMFMAIN},

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
___


Re: [NTG-context] Prioritise TEXMFHOME

2013-01-22 Thread Marco Patzer
On 2013–01–22 Mojca Miklavec wrote:

 Doesn't it already have the highest priority?

I did assume that, but that's not the case. Take your t-gnuplot.tex
module, for instance, make some changes and place it in $TEXMFHOME.
ConTeXt still uses the old version found in

texmf-modules/tex/context/third/gnuplot/t-gnuplot.tex

Marco


signature.asc
Description: Digital signature
___
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] Prioritise TEXMFHOME

2013-01-22 Thread Mojca Miklavec
On Tue, Jan 22, 2013 at 9:29 PM, Marco Patzer wrote:
 On 2013–01–22 Mojca Miklavec wrote:

 Doesn't it already have the highest priority?

 I did assume that, but that's not the case. Take your t-gnuplot.tex
 module, for instance, make some changes and place it in $TEXMFHOME.
 ConTeXt still uses the old version found in

 texmf-modules/tex/context/third/gnuplot/t-gnuplot.tex

I don't know how to reproduce that even though I remember that I had
problem if I set export TEXMFHOME=/path/with/trailing/slash/.

What does
mtxrun t-gnuplot.tex
return you?

Also:
- What is your $TEXMFHOME and how did you change it in case that you did?
- Where exactly is your file t-gnuplot.tex?
- Do you run MkIV? With current beta or with TeX Live?
- What does 'kpsewhich t-gnuplot.tex' return you?

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
___