* Prioritise TEXMFHOME @ 2013-01-22 19:58 Marco Patzer 2013-01-22 20:05 ` Mojca Miklavec 0 siblings, 1 reply; 7+ messages in thread From: Marco Patzer @ 2013-01-22 19:58 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1.1: Type: text/plain, Size: 196 bytes --] 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? Marco [-- Attachment #1.2: Digital signature --] [-- Type: application/pgp-signature, Size: 490 bytes --] [-- Attachment #2: Type: text/plain, Size: 485 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Prioritise TEXMFHOME 2013-01-22 19:58 Prioritise TEXMFHOME Marco Patzer @ 2013-01-22 20:05 ` Mojca Miklavec 2013-01-22 20:29 ` Marco Patzer 0 siblings, 1 reply; 7+ messages in thread From: Mojca Miklavec @ 2013-01-22 20:05 UTC (permalink / raw) To: mailing list for ConTeXt users 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Prioritise TEXMFHOME 2013-01-22 20:05 ` Mojca Miklavec @ 2013-01-22 20:29 ` Marco Patzer 2013-01-22 22:10 ` Mojca Miklavec 0 siblings, 1 reply; 7+ messages in thread From: Marco Patzer @ 2013-01-22 20:29 UTC (permalink / raw) To: ntg-context [-- Attachment #1.1: Type: text/plain, Size: 343 bytes --] 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 [-- Attachment #1.2: Digital signature --] [-- Type: application/pgp-signature, Size: 490 bytes --] [-- Attachment #2: Type: text/plain, Size: 485 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Prioritise TEXMFHOME 2013-01-22 20:29 ` Marco Patzer @ 2013-01-22 22:10 ` Mojca Miklavec 2013-01-23 10:26 ` Marco Patzer 0 siblings, 1 reply; 7+ messages in thread From: Mojca Miklavec @ 2013-01-22 22:10 UTC (permalink / raw) To: mailing list for ConTeXt users 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Prioritise TEXMFHOME 2013-01-22 22:10 ` Mojca Miklavec @ 2013-01-23 10:26 ` Marco Patzer 2013-01-23 13:52 ` Mojca Miklavec 0 siblings, 1 reply; 7+ messages in thread From: Marco Patzer @ 2013-01-23 10:26 UTC (permalink / raw) To: ntg-context [-- Attachment #1.1: Type: text/plain, Size: 1968 bytes --] 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 [-- Attachment #1.2: Digital signature --] [-- Type: application/pgp-signature, Size: 490 bytes --] [-- Attachment #2: Type: text/plain, Size: 485 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Prioritise TEXMFHOME 2013-01-23 10:26 ` Marco Patzer @ 2013-01-23 13:52 ` Mojca Miklavec 2013-01-23 14:17 ` Marco Patzer 0 siblings, 1 reply; 7+ messages in thread From: Mojca Miklavec @ 2013-01-23 13:52 UTC (permalink / raw) To: mailing list for ConTeXt users 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Prioritise TEXMFHOME 2013-01-23 13:52 ` Mojca Miklavec @ 2013-01-23 14:17 ` Marco Patzer 0 siblings, 0 replies; 7+ messages in thread From: Marco Patzer @ 2013-01-23 14:17 UTC (permalink / raw) To: ntg-context [-- Attachment #1.1: Type: text/plain, Size: 1607 bytes --] 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 [-- Attachment #1.2: Digital signature --] [-- Type: application/pgp-signature, Size: 490 bytes --] [-- Attachment #2: Type: text/plain, Size: 485 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2013-01-23 14:17 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2013-01-22 19:58 Prioritise TEXMFHOME Marco Patzer 2013-01-22 20:05 ` Mojca Miklavec 2013-01-22 20:29 ` Marco Patzer 2013-01-22 22:10 ` Mojca Miklavec 2013-01-23 10:26 ` Marco Patzer 2013-01-23 13:52 ` Mojca Miklavec 2013-01-23 14:17 ` Marco Patzer
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).