Enviromental variables in MikTeX
Hello (Hans), in MikTeX almost no environmental variables are set. Consequently some basic operations such as "ctxtools --update", "texexec --make --all", ... don't work. (ConTeXt doesn't know where to put the extracted downloaded files, where put the formats, ...) texexec does all kinds of trickery on many places, including MikTeX-dependent behaviour, but doesn't address this problem yet. If I ignore the lack of interest to support ConTeXt on the MikTeX side, some things could be improved on ConTeXt side as well. So: Would it be possible to set some basic environmental variables somewhere at the beginning, so that the "basic" functionality would be there for MikTeX as well? I tried to use the code below, but the problem is that I have no idea how to make changes to environmental variables global (the following code only changes it locally according to ruby documentation). somewhere around line 270 in kpse.rb: if Kpse.miktex? then # sets the TEXMFLOCAL according to the location of context.tex # although a bit of cheating, it should work in 99.5% cases ENV['TEXMFLOCAL'] = run("context.tex").gsub(/\/tex\/context\/base\/context.tex$/, '') end If this worked, other environmental variables could be set in a similar manner as well. (Another stupid part is that it would probably be necessary to distinguish between version 2.4 and 2.5 (which behave completely different and have different directory structure) in some parts, but that's already another story.) But at least ConTeXt (only the ruby version) now works with MikTeX 2.5. Thanks a lot, Mojca PS: one very strong reason why I currently use MikTeX is that metapost keeps crashing with the stand-alone distribution. It is sometimes very helpful to have both distros installed and use the one that works better for the particular task.
On Sat, 3 Jun 2006, Mojca Miklavec wrote:
But at least ConTeXt (only the ruby version) now works with MikTeX 2.5.
Miktex's website says that 2.5 is scheduled to be released in June 2006. It is already at beta 8. If context works fine with 2.5 beta, is it really worth the effort to add additional support for 2.4? Aditya
On 6/3/06, Aditya Mahajan wrote:
On Sat, 3 Jun 2006, Mojca Miklavec wrote:
But at least ConTeXt (only the ruby version) now works with MikTeX 2.5.
Miktex's website says that 2.5 is scheduled to be released in June 2006. It is already at beta 8. If context works fine with 2.5 beta, is it really worth the effort to add additional support for 2.4?
I guess that "decay half time" of MikTeX 2.4 will be approximately a year or two, but no: since the things didn't work until now anyway, it wouldn't hurt much if they don't start working in the future. If things could be settled up to work properly in 2.5, this would already be a big step forward. Mojca
Mojca Miklavec wrote:
On 6/3/06, Aditya Mahajan wrote:
On Sat, 3 Jun 2006, Mojca Miklavec wrote:
But at least ConTeXt (only the ruby version) now works with MikTeX 2.5.
Miktex's website says that 2.5 is scheduled to be released in June 2006. It is already at beta 8. If context works fine with 2.5 beta, is it really worth the effort to add additional support for 2.4?
I guess that "decay half time" of MikTeX 2.4 will be approximately a year or two, but no: since the things didn't work until now anyway, it wouldn't hurt much if they don't start working in the future. If things could be settled up to work properly in 2.5, this would already be a big step forward.
ok, then let's focus on 2.5 Christian Schenk will use the texmfstart.exe that i can make here, so we can assume texmfstart to take care of thing. I can also generate binaries for the other scripts. (if you have exerb on your system you can do that too) What is needed for 2.5? Your mentioned patch? (/the problem in 2.4 is probably related to the fact that the script path related kpse stuff is not present; this is not so much miktex's fault as well that the texlive/miktex code bases need to be synchronized every now and then) / just let me know ahat is needed ... (it would be handy if i could make a texmf-miktex/bin tree with miktex binaries so that i can test with the minimal) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (3)
-
Aditya Mahajan
-
Hans Hagen
-
Mojca Miklavec