Re: [NTG-context] first-setup for windows

2011-01-28 Thread Mojca Miklavec
2011/1/28 Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz:

 - But I'm wondering about why 'mtxrun' doesn't find the 'context.lua' today
 although it did yesterday.

No idea. ConTeXt beta didn't change since yesterday at all.

 (I'm aware of cache directory, in my case at
 'c:\ConTeXt\tex\texmf-cache\luatex-cache\context\f53042fa2e1c106bc7e3383ec8c3a00c\'.
 Does Ctx/mxtrun generate also any [temporary] files elsewhere, e.g. in
 Document and Settings or Application Data or where TMP/TEMP system
 variable points?)

No. In MikTeX the cache is generated somewhere else, but ConTeXt
doesn't touch anything. (Vyatcheslav's installer sets PATH, but normal
installer doesn't.)

 Could you explain, please?

I don't know what the explanation could be. I tried to delete
texmf-cache and run the installer again, but I didn't experience any
problem. (Yesterday first-setup.bat file was a bit faulty, but now it
should be fixed.)

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] first-setup for windows

2011-01-28 Thread Procházka Lukáš Ing . - Pontex s . r . o .

On Fri, 28 Jan 2011 16:29:03 +0100, Mojca Miklavec 
mojca.miklavec.li...@gmail.com wrote:


2011/1/28 Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz:


- But I'm wondering about why 'mtxrun' doesn't find the 'context.lua' today
although it did yesterday.


(I forgot to notice that the computer was powered-off once (= yesterday) and 
started up again (= today morning).

So yesterday, the whole day after the update I was able to compile any Ctx source. Than the 
computer was powered off. Today the computer was started and when I tried to compile the same Ctx 
sources, I got cannot find context.lua nor mtx-context.lua. I had to run mtxrun 
--generate and all started to work again. And it will be all right till the next update.)


No idea. ConTeXt beta didn't change since yesterday at all.


OK. I'll keep on observing and trying to figure out why.


(Yesterday first-setup.bat file was a bit faulty, but now it
should be fixed.)



Does first-setup.bat update itself? I mean: several days ago you sent a slightly modified 
'first-setup.bat' by e-mail and later you have modified it again. So just to be sure I'm 
not or I won't be using the not so perfect 'first-setup.bat[.txt]'...

Best regards,

Lukas


--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

___
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] first-setup for windows

2011-01-28 Thread Mojca Miklavec
2011/1/28 Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz:

 Does first-setup.bat update itself?

No. The idea is that the file should not change anyway (and you might
want to modify it yourself by changing version of context or by
removing the --make switch for example).

 I mean: several days ago you sent a
 slightly modified 'first-setup.bat' by e-mail and later you have modified it
 again.

Yes. Because Hans noticed a typo and I fixed that one.

 So just to be sure I'm not or I won't be using the not so perfect
 'first-setup.bat[.txt]'...

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] first-setup for windows

2011-01-28 Thread Hans Hagen

On 28-1-2011 4:57, Procházka Lukáš Ing. - Pontex s. r. o. wrote:


- But I'm wondering about why 'mtxrun' doesn't find the 'context.lua'
today
although it did yesterday.


(I forgot to notice that the computer was powered-off once (= yesterday)
and started up again (= today morning).


the only thing i can think is a change in path settings when the 
computer was on; there is nothing persistent in memory (would be too 
clever)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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] first-setup for windows

2011-01-27 Thread Hans Hagen

On 26-1-2011 8:31, Mojca Miklavec wrote:

I would like to ask windows users to test the attached setup file if
it works any better (and to make sure that I didn't do any mistakes
while typing).

I have put the updated version of first-setup.sh on the server
already, but for Windows I simply don't dare to do it until somebody
confirms that it seems to be ok. In both cases it would be great to
get feedback if the problems with missing files are solved.

Mojca

PS: please remove the .txt ending (gmail doesn't allow sending .bat files)


staring at it ... CONTEXTPATH and CONTEXTROOT are used but only one is 
defined



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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] first-setup for windows

2011-01-27 Thread Mojca Miklavec
 staring at it ... CONTEXTPATH and CONTEXTROOT are used but only one is
 defined

Thanks a lot for noticing. It was just a typo, fixed (but maybe not
yet updated on the server).

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] first-setup for windows

2011-01-27 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Dear Mojca,

On Wed, 26 Jan 2011 22:32:34 +0100, Mojca Miklavec 
mojca.miklavec.li...@gmail.com wrote:


So if you thought this would be useful (actually it may depend on whether an
explicit 'mtxrun --generate' after update is necessary what I don't know -


It *is* necessary if some new files appear. The problem was that
usually the wrong mtxrun was called which had zero effect since it
possibly updated the cache in TeX Live or some other ConTeXt
distribution (under another path).

You can try the following:
- make sure that there is no tex in your path (set PATH ...)
- delete texmf-cache
- delete some files (for example context.mkiv and a few random other files)
- call first-setup.bat (the modified version that I sent you without
an explicit mtxrun --generate)
- call setuptex (or manually set PATH)
- try to compile some file

The mtxrun --generate at the end of script doesn't really help since
already the format generation is broken if some new files arrive.


I updated Ctx yesterday.

I installed the new version of Ctx to an empty directory and I checked all 
TeX-related PATHs to not point to any TL directory (actually, the PATH doesn't 
point to any TL or Ctx directory - all this is performed by an appropriate 
batch which is called in the scope and just before compilation of a Ctx 
source); so I guess all previous auto-generated files and/or cache got unused.

I wrote a step-by-step report which I intended to send to you as I was afraid 
that I would have to call 'mtxrun --generate' explicitly.

But it was not necessary - I was able to compile a sample Ctx source without any problem 
as it was.

Not today.

Now, if I want to compile a Ctx file, I'm getting:

---
MTXrun | unknown script 'context.lua' or 'mtx-context.lua'
---

I know that 'mtxrun --generate' will repair this (as it always did so far).

- But I'm wondering about why 'mtxrun' doesn't find the 'context.lua' today 
although it did yesterday.

(I'm aware of cache directory, in my case at 
'c:\ConTeXt\tex\texmf-cache\luatex-cache\context\f53042fa2e1c106bc7e3383ec8c3a00c\'. Does 
Ctx/mxtrun generate also any [temporary] files elsewhere, e.g. in Document and Settings 
or Application Data or where TMP/TEMP system variable points?)

Could you explain, please?

Best regards,

Lukas


--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

___
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] first-setup for windows

2011-01-26 Thread Mojca Miklavec
I would like to ask windows users to test the attached setup file if
it works any better (and to make sure that I didn't do any mistakes
while typing).

I have put the updated version of first-setup.sh on the server
already, but for Windows I simply don't dare to do it until somebody
confirms that it seems to be ok. In both cases it would be great to
get feedback if the problems with missing files are solved.

Mojca

PS: please remove the .txt ending (gmail doesn't allow sending .bat files)
@echo off

setlocal

echo okay  ok.log
ruby -e File.delete('ok.log')
if not exist ok.log goto okay

echo.
echo You need to install Ruby first (if you want to use pdfTeX or XeTeX).
echo Fetching files anyway.
echo.

:okay


set OWNPATH=%~dp0
set CONTEXTROOT=%OWNPATH%tex

set PATH=%OWNPATH%bin;%CONTEXTPATH%\texmf-mswin\bin;%PATH%

set CYGWIN=nontsec

rsync -av --exclude 'rsync.exe' --exclude 'cygwin1.dll' --exclude 
'cygiconv-2.dll' rsync://contextgarden.net/minimals/setup/mswin/bin/ bin

mtxrun --script ./bin/mtx-update.lua --force --update --make --engine=all 
--context=beta --texroot=%CONTEXTROOT% %*

echo.
echo When you want to use context, you need to initialize the tree with:
echo.
echo   %CONTEXTROOT%\setuptex.bat %CONTEXTROOT%
echo.
echo You can associate this command with a shortcut to the cmd prompt.
echo.

if not exist ok.log goto end

echo.
echo If you want to use pdfTeX or XeTeX you need to install Ruby first.
echo Remake formats or rerun this script afterwards.
echo.

del /q ok.log

:end

endlocal

___
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] first-setup for windows

2011-01-26 Thread Procházka Lukáš

Hello Mojca,

On Wed, 26 Jan 2011 20:31:47 +0100, Mojca Miklavec 
mojca.miklavec.li...@gmail.com wrote:


I would like to ask windows users to test the attached setup file if
it works any better (and to make sure that I didn't do any mistakes
while typing).

I have put the updated version of first-setup.sh on the server
already, but for Windows I simply don't dare to do it until somebody
confirms that it seems to be ok. In both cases it would be great to
get feedback if the problems with missing files are solved.

Mojca


I launched your modified first-setup.bat - it seems the latest Ctx version was 
updated successfully.

I also tried to compile some sample files - no problem.

OS: WinXP Home Edition, SP3.


BTW: It normally happens to me that I have to run 'mtxrun --generate' after I 
updated Ctx.

Not today (? - I don't know why); but normally I'm using a slightly modified 
'first-setup.bat' calling mtxrun automatically.

So if you thought this would be useful (actually it may depend on whether an 
explicit 'mtxrun --generate' after update is necessary what I don't know - 
always reality shows me), it might be good to add the call to the end of 
first-setup.bat (see the attached first-setup-alt.bat).


Best regards,

Lukas@echo off

setlocal

echo okay  ok.log
ruby -e File.delete('ok.log')
if not exist ok.log goto okay

echo.
echo You need to install Ruby first (if you want to use pdfTeX or XeTeX).
echo Fetching files anyway.
echo.

:okay


set OWNPATH=%~dp0
set CONTEXTROOT=%OWNPATH%tex

set PATH=%OWNPATH%bin;%CONTEXTPATH%\texmf-mswin\bin;%PATH%

set CYGWIN=nontsec

rsync -av --exclude 'rsync.exe' --exclude 'cygwin1.dll' --exclude 
'cygiconv-2.dll' rsync://contextgarden.net/minimals/setup/mswin/bin/ bin

mtxrun --script ./bin/mtx-update.lua --force --update --make --engine=all 
--context=beta --texroot=%CONTEXTROOT% %*

echo.
echo When you want to use context, you need to initialize the tree with:
echo.
echo   %CONTEXTROOT%\setuptex.bat %CONTEXTROOT%
echo.
echo You can associate this command with a shortcut to the cmd prompt.
echo.

if not exist ok.log goto end

echo.
echo If you want to use pdfTeX or XeTeX you need to install Ruby first.
echo Remake formats or rerun this script afterwards.
echo.

del /q ok.log

:end

endlocal

call tex/setuptex.bat

mtxrun.exe --generate
___
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] first-setup for windows

2011-01-26 Thread Mojca Miklavec
2011/1/26 Procházka Lukáš l...@pontex.cz:
 Hello Mojca,

 I launched your modified first-setup.bat - it seems the latest Ctx version
 was updated successfully.

Thanks a lot for testing ...

 BTW: It normally happens to me that I have to run 'mtxrun --generate' after
 I updated Ctx.

(or that format generation breaks ...)

 So if you thought this would be useful (actually it may depend on whether an
 explicit 'mtxrun --generate' after update is necessary what I don't know -

It *is* necessary if some new files appear. The problem was that
usually the wrong mtxrun was called which had zero effect since it
possibly updated the cache in TeX Live or some other ConTeXt
distribution (under another path).

You can try the following:
- make sure that there is no tex in your path (set PATH ...)
- delete texmf-cache
- delete some files (for example context.mkiv and a few random other files)
- call first-setup.bat (the modified version that I sent you without
an explicit mtxrun --generate)
- call setuptex (or manually set PATH)
- try to compile some file

The mtxrun --generate at the end of script doesn't really help since
already the format generation is broken if some new files arrive.

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