On Mon, Jun 7, 2010 at 3:29 PM, Thomas A. Schmitz <thomas.schmitz@uni-bonn.de> wrote:

On Jun 7, 2010, at 3:19 PM, Ivo Solnický wrote:

> Hi,
>
> I didn't received answer by mail, so I have to answer this way.
>
> Thanks for the help, I updated context and now it works OK.
>
> But the problem with recompilation of format file remains. Any idea?
>
> Ivo

If I understood your first message correctly, you are storing your tex documents within your context directory. This is a VERY bad idea because

1. mkiv checks the checksum of your context tree. When it changes, it will regenerate the format, that's what you see happening

2. in case of an update, your files could get deleted or overwritten.


I'm sorry but  my English is not very good and I am not likely be able to explain things clearly.
I have my files stored separately in directory C:\Users\Ivo\TeX and ConTeXt files are in directory C:\context\tex.
Here is a list of environment variables related to context after running setuptex C:\context\tex.

CTXMINIMAL=yes
CYGWIN=nontsec
MPMEMS=c:\context\tex\texmf-mswin/web2c{/$engine,}
OSFONTDIR=C:\Windows/fonts
Path=c:\context\tex\texmf-mswin\bin;C:\Windows\system32;C:\Windows; ...
RUBYLIB=c:\context\tex\texmf-context\SCRIPTS\CONTEXT\RUBY;
SESSIONNAME=Console
SETUPTEX=done
TEMP=C:\Users\Ivo\AppData\Local\Temp
TEXFORMATS=c:\context\tex\texmf-mswin/web2c{/$engine,}
TEXMF={$TEXMFPROJECT,$TEXMFFONTS,$TEXMFLOCAL,$TEXMFOS,$TEXMFCONTEXT,$TEXMFEXTRA,!!$TEXMFMAIN}
TEXMFCACHE=c:\context\tex\texmf-cache
TEXMFCNF=c:\context\tex\texmf{-local,-context,}/web2c
TEXMFCONTEXT=c:\context\tex\texmf-context
TEXMFDBS=$TEXMF
TEXMFEXTRA=c:\context\tex\texmf-extra
TEXMFFONTS=c:\context\tex\texmf-fonts
TEXMFLOCAL=c:\context\tex\texmf-local
TEXMFMAIN=c:\context\tex\texmf
TEXMFOS=c:\context\tex\texmf-mswin
TEXMFPROJECT=c:\context\tex\texmf-project
TEXPATH=c:\context\tex\
TMP=C:\Users\Ivo\AppData\Local\Temp
VARTEXMF=C:\Users\Ivo\AppData\Local\Temp\texmf-var

I get this after running command:

C:\Users\Ivo\TeX>context dopis
MTXrun | warning: source mismatch (luv: c35d99a34eb6a903c197a4666fe46fe0 <> bin: a6c26bf5f4881a58ccc3eed80ae65790), forcing remake
MTXrun | fileio: loading configuration file 'c:/context/tex/texmf/web2c/texmfcnf.lua'
MTXrun | fileio: loading configuration file c:/context/tex/texmf/web2c/texmf.cnf
MTXrun | fileio: preparing 'configuration' for 'c:/context/tex/texmf/web2c'
MTXrun | fileio: 'configuration' saved in 'c:/context/tex/texmf-cache/luatex-cache/context/2fea56f92e5267d7cc9662e4d5f52e1e/trees/53
ad5f8b88994bdd02baa17501789699.lua'
MTXrun | fileio: 'configuration' compiled to 'c:/context/tex/texmf-cache/luatex-cache/context/2fea56f92e5267d7cc9662e4d5f52e1e/trees
/53ad5f8b88994bdd02baa17501789699.luc'
MTXrun | fileio: locating list of 'c:/context/tex/texmf-project'
MTXrun | fileio: tex locator 'c:/context/tex/texmf-project' found
MTXrun | fileio: hash 'c:/context/tex/texmf-project' appended
etc.

Finally, the file dopis.tex is compiled well, but it takes a long time.

Surprisingly, when I copy the file dopis.tex for example to the directory C:\context\tex\texmf-project, I get this (format is not recompiled):

C:\context\tex\texmf-project>context dopis
MTXrun | run 1: luatex --fmt="c:/context/tex/texmf-cache/luatex-cache/context/2fea56f92e5267d7cc9662e4d5f52e1e/formats/cont-en" --lu
a="c:/context/tex/texmf-cache/luatex-cache/context/2fea56f92e5267d7cc9662e4d5f52e1e/formats/cont-en.lui" --backend=pdf "./dopis"
This is LuaTeX, Version beta-0.60.1-2010060523 (Web2C 2010) (rev 3685)
 \write18 enabled.
(C:/context/tex/texmf-project/dopis.tex
publications    : loading formatting style from bxml-apa
(c:/context/tex/texmf-context/tex/context/base/bxml-apa.mkiv)

ConTeXt  ver: 2010.06.06 23:52 MKIV  fmt: 2010.6.8  int: english/english

system          : cont-new loaded
(c:/context/tex/texmf-context/tex/context/base/cont-new.tex
systems         : beware: some patches loaded from cont-new.tex
(c:/context/tex/texmf-context/tex/context/base/cont-new.mkiv))
system          : cont-fil loaded
(c:/context/tex/texmf-context/tex/context/base/cont-fil.tex
loading         : ConTeXt File Synonyms
)
system          : cont-sys.rme loaded
(c:/context/tex/texmf-context/tex/context/user/cont-sys.rme (c:/context/tex/texmf-context/tex/context/base/type-def.mkiv) (c:/contex
t/tex/texmf-context/tex/context/base/type-lua.mkiv) (c:/context/tex/texmf-context/tex/context/base/type-siz.mkiv) (c:/context/tex/te
xmf-context/tex/context/base/type-otf.mkiv))
system          : dopis.top loaded
(dopis.top)
etc....

This behavior surprised me and I don't understend it. :(

ConTeXt has been installed by running first-setup.bat in C:\context directory.

Thanks for any ideas.  

 
ConTeXt (and TeX in general) can be a bit overwhelming at first if you have never used such a system. I don't know how experienced you are with computers in general, but I would suggest you read some introductory material on TeX (though I admit that I just looked around a bit, and couldn't find any simple document which explains the TeX directory structure and how to use it).

I'm in IT business more then 20 years and I started with TeX in 1992. I use TeX occasionally for various special purposes. The last time I used it 8 years ago for typesetting music. Since then much has changed. I am only starting with ConTeXt but I like its structure and capabilities. I would use it to print Go (WeiChi) diagrams.
There are not a lot of manuals about TeX (LuaTeX, ConTeXt) insides, so anything that will help better understand them will please me.

Thank you for your willingness.

Ivo
 
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
___________________________________________________________________________________