Re: [NTG-context] Problem with last version of ConTeXt

2014-10-20 Thread Hans Hagen

On 10/19/2014 11:45 PM, Jaroslav Hajtmar wrote:

Hello
Thanx Hans for the advice - too me it could attack itself :-).

When I use \tracingall, then I managed to figure out what the problem was.
In fact, there was an error retrieving data from an external file (the
library), and it while trying to load ConTeXt buffer command.

The original content of this buffer was:

\startbuffer[hlavička_kú]%
{\bf Katastrálnímu úřadu pro \VART{SMLOUVA}{KU_kraj} kraj\br%
\expdoifelse{\getvariable{SMLOUVA}{KU_sidlo}}{\empty}{}{se sídlem
\VART{SMLOUVA}{KU_sidlo}\br}%
Katastrálnímu pracovišti \VART{SMLOUVA}{KU_pracoviste}}%
\stopbuffer%

This content has caused the error in the latest version of ConTeXt
standalone (but in past versions of ConTeXt or standalone version of
TeXLive 2014, I did not noticed this error message).


When I made ​​the following changes:

\startbuffer[hlavička_kú]%
\bgroup%
\bf Katastrálnímu úřadu pro \VART{SMLOUVA}{KU_kraj} kraj\br%
\expdoifelse{\getvariable{SMLOUVA}{KU_sidlo}}{\empty}{}{se sídlem
\VART{SMLOUVA}{KU_sidlo}\br}%
Katastrálnímu pracovišti \VART{SMLOUVA}{KU_pracoviste}%
\egroup%
\stopbuffer%


then everything goes smoothly and everything is OK.


maybe some lookahead issue: you load a buffer and the preceding command 
sees the { which confuses it. Sometimes it hels to define macros as 
unexpanded:


\unexpanded\def\random#

\unexpanded\def\VART#1#2{%

-
  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] Problem with last version of ConTeXt

2014-10-20 Thread Jaroslav Hajtmar

Thanx one more.
Jaroslav Hajtmar


Dne 20.10.2014 9:16, Hans Hagen napsal(a):
maybe some lookahead issue: you load a buffer and the preceding 
command sees the { which confuses it. Sometimes it hels to define 
macros as unexpanded:


\unexpanded\def\random#

\unexpanded\def\VART#1#2{% 


___
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] Problem with last version of ConTeXt

2014-10-19 Thread Hans Hagen

On 10/18/2014 9:20 PM, Jaroslav Hajtmar wrote:

Thanx Hans for reply.
A few hours I was looking for a problem in my source file and library
that load at the beginning of my file. It seems that the problem has
nothing to do with the error message means that it has not  nothing to
do with the itemize environment nor setupitemize (nothing like this in
the file does not resp. when sections of code to comment out these
environments, so nothing changes). The problem probably is related to
some a side effect, because in older versions of ConTeXt Standalone not
appear (and does not appear in Context, which is included in the latest
distribution TeXLive 2014).

In my library are very old pieces of code that I used many years ago in
plainTEX in combination with ConTeXtovým code (including frequent use
\setvariables). Unfortunately I was despite my great efforts failed to
create a reasonable minimal example, so I'll probably have to wait
some time until someone else runs into a similar problem and will be
able to describe properly document and create a minimum sample example
(already with me it happened several times and each time it finally was
resolved).


just put a \tracingall someplace ... (bottom up) then you can see where 
it stops


-
  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] Problem with last version of ConTeXt

2014-10-19 Thread Jaroslav Hajtmar

Hello
Thanx Hans for the advice - too me it could attack itself :-).

When I use \tracingall, then I managed to figure out what the problem was.
In fact, there was an error retrieving data from an external file (the 
library), and it while trying to load ConTeXt buffer command.


The original content of this buffer was:

\startbuffer[hlavička_kú]%
{\bf Katastrálnímu úřadu pro \VART{SMLOUVA}{KU_kraj} kraj\br%
\expdoifelse{\getvariable{SMLOUVA}{KU_sidlo}}{\empty}{}{se sídlem 
\VART{SMLOUVA}{KU_sidlo}\br}%

Katastrálnímu pracovišti \VART{SMLOUVA}{KU_pracoviste}}%
\stopbuffer%

This content has caused the error in the latest version of ConTeXt 
standalone (but in past versions of ConTeXt or standalone version of 
TeXLive 2014, I did not noticed this error message).



When I made ​​the following changes:

\startbuffer[hlavička_kú]%
\bgroup%
\bf Katastrálnímu úřadu pro \VART{SMLOUVA}{KU_kraj} kraj\br%
\expdoifelse{\getvariable{SMLOUVA}{KU_sidlo}}{\empty}{}{se sídlem 
\VART{SMLOUVA}{KU_sidlo}\br}%

Katastrálnímu pracovišti \VART{SMLOUVA}{KU_pracoviste}%
\egroup%
\stopbuffer%


then everything goes smoothly and everything is OK.

Thanks very much for your help and assistance. I'm not sure if this 
irregularities those revelations this somehow help you. It is at least 
strange that ConTeXt version of TeXLive 2014 the code untroubled eat 
...: -) ...


Thanks again and have a lot of energy ...

Jaroslav Hajtmar


PS: Just to explain the code of \VART macro (probably irrelevant to You):

\def\random#1#2{
\startluacode
local cislo=math.random(10)
if cislo  3 then
context('\\getvariable{#1}{#2}')
else
context('\\fakenwords{1}{'..math.random(10,15)..'}')
end
\stopluacode
}


\def\VART#1#2{%
\doifmodeelse{koncept}%
{
\doifmodeelse{security}%
{\random{#1}{#2}}
{%
\expdoifelse{\getvariable{#1}{#2}}{}{{\ERRORSCOLOR 
#1.#2 ERROR}}{{\VARSCOLOR\getvariable{#1}{#2}}}%\removeunwantedspaces}

}%
}
{%
\expdoifelse{\getvariable{#1}{#2}}{}{{\ERRORSCOLOR #1.#2 
ERROR}}{{\VARSCOLOR\getvariable{#1}{#2}}}%\removeunwantedspaces

  }%
}%







Dne 19.10.2014 10:49, Hans Hagen napsal(a):

On 10/18/2014 9:20 PM, Jaroslav Hajtmar wrote:

Thanx Hans for reply.
A few hours I was looking for a problem in my source file and library
that load at the beginning of my file. It seems that the problem has
nothing to do with the error message means that it has not nothing to
do with the itemize environment nor setupitemize (nothing like this in
the file does not resp. when sections of code to comment out these
environments, so nothing changes). The problem probably is related to
some a side effect, because in older versions of ConTeXt Standalone not
appear (and does not appear in Context, which is included in the latest
distribution TeXLive 2014).

In my library are very old pieces of code that I used many years ago in
plainTEX in combination with ConTeXtovým code (including frequent use
\setvariables). Unfortunately I was despite my great efforts failed to
create a reasonable minimal example, so I'll probably have to wait
some time until someone else runs into a similar problem and will be
able to describe properly document and create a minimum sample example
(already with me it happened several times and each time it finally was
resolved).


just put a \tracingall someplace ... (bottom up) then you can see 
where it stops


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

[NTG-context] Problem with last version of ConTeXt

2014-10-18 Thread Jaroslav Hajtmar

Hello ConTeXist
Already a long time I use ConTeXt for processing the same files and 
always worked very well. Yesterday I updated version of ConTeXt 
Standalone and then I (like many times before) wanted to translate his 
usual document. Unfortunately, the translation stopped with an error 
message that I do not understand. Does anyone know what this could mean? 
The source code of my source file I did not change for a very long time 
a translation by using ConTeXt from TeXLive 2014 is without problem.

Thanks for the advice.
Jaroslav Hajtmar

Here is error message.


C:\$~1da\PODNIK\ConTeXtcontext Ds477_2202421

mtx-context | warning: no (local) file './Ds477_2202421', proceeding
mtx-context | run 1: luatex 
--fmt=C:/context/tex/texmf-cache/luatex-cache/c
ontext/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en 
--jobname=Ds477
_2202421 
--lua=C:/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce
0dde776fb1556f32e/formats/luatex/cont-en.lui --no-parse-first-line 
--c:currentr
un=1 --c:fulljobname=./Ds477_2202421 --c:input=./Ds477_2202421 
--c:kindofrun

=1 --c:maxnofruns=8 cont-yes.mkiv
This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/W32TeX) (rev 5041)
 \write18 enabled.
open source  1  1  
C:/context/tex/texmf-context/tex/context/base/cont-yes

.mkiv

ConTeXt  ver: 2014.09.25 18:58 MKIV beta  fmt: 2014.10.18  int: 
english/english


system   'cont-new.mkiv' loaded
open source  2  2  
C:/context/tex/texmf-context/tex/context/base/cont-new

.mkiv
close source 2  2  
C:/context/tex/texmf-context/tex/context/base/cont-new

.mkiv
system   files  jobname 'Ds477_2202421', input 
'./Ds477_2202421', resu

lt 'Ds477_2202421'
fontslatin modern fonts are not preloaded
languageslanguage 'en' is active
open source  2  3  C:/$~1da/PODNIK/ConTeXt/Ds477_2202421.tex
open source  3  4  c:/1da/tex/context/ctx_sml_library.tex
colors   'rgb' color space is supported
colors   'cmyk' color space is supported
resolversmodules  'visual' is loaded
open source  4  5  
C:/context/tex/texmf-context/tex/context/base/m-visual

.mkiv
loading  ConTeXt Tracking Macros / Visualization
close source 4  5  
C:/context/tex/texmf-context/tex/context/base/m-visual

.mkiv
setuperror in line 14, namespace 'itemgroup', instance 
'itemize', k

ey 'n'
setuperror in line 14, namespace 'itemgroup', instance 
'itemize', k

ey 'packed'
close source 3  5  c:/1da/tex/context/ctx_sml_library.tex
close source 2  5  C:/$~1da/PODNIK/ConTeXt/Ds477_2202421.tex
close source 1  5  
C:/context/tex/texmf-context/tex/context/base/cont-yes

.mkiv

*
___
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] Problem with last version of ConTeXt

2014-10-18 Thread Hans Hagen

On 10/18/2014 9:14 AM, Jaroslav Hajtmar wrote:

Hello ConTeXist
Already a long time I use ConTeXt for processing the same files and
always worked very well. Yesterday I updated version of ConTeXt
Standalone and then I (like many times before) wanted to translate his
usual document. Unfortunately, the translation stopped with an error
message that I do not understand. Does anyone know what this could mean?
The source code of my source file I did not change for a very long time
a translation by using ConTeXt from TeXLive 2014 is without problem.
Thanks for the advice.
Jaroslav Hajtmar

Here is error message.


C:\$~1da\PODNIK\ConTeXtcontext Ds477_2202421

mtx-context | warning: no (local) file './Ds477_2202421', proceeding
mtx-context | run 1: luatex
--fmt=C:/context/tex/texmf-cache/luatex-cache/c
ontext/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en
--jobname=Ds477
_2202421
--lua=C:/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce
0dde776fb1556f32e/formats/luatex/cont-en.lui --no-parse-first-line
--c:currentr
un=1 --c:fulljobname=./Ds477_2202421 --c:input=./Ds477_2202421
--c:kindofrun
=1 --c:maxnofruns=8 cont-yes.mkiv
This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/W32TeX) (rev 5041)
  \write18 enabled.
open source  1  1 
C:/context/tex/texmf-context/tex/context/base/cont-yes
.mkiv

ConTeXt  ver: 2014.09.25 18:58 MKIV beta  fmt: 2014.10.18  int:
english/english

system   'cont-new.mkiv' loaded
open source  2  2 
C:/context/tex/texmf-context/tex/context/base/cont-new
.mkiv
close source 2  2 
C:/context/tex/texmf-context/tex/context/base/cont-new
.mkiv
system   files  jobname 'Ds477_2202421', input
'./Ds477_2202421', resu
lt 'Ds477_2202421'
fontslatin modern fonts are not preloaded
languageslanguage 'en' is active
open source  2  3  C:/$~1da/PODNIK/ConTeXt/Ds477_2202421.tex
open source  3  4  c:/1da/tex/context/ctx_sml_library.tex
colors   'rgb' color space is supported
colors   'cmyk' color space is supported
resolversmodules  'visual' is loaded
open source  4  5 
C:/context/tex/texmf-context/tex/context/base/m-visual
.mkiv
loading  ConTeXt Tracking Macros / Visualization
close source 4  5 
C:/context/tex/texmf-context/tex/context/base/m-visual
.mkiv
setuperror in line 14, namespace 'itemgroup', instance
'itemize', k
ey 'n'
setuperror in line 14, namespace 'itemgroup', instance
'itemize', k
ey 'packed'


some kind of error in your \setupitemize command


close source 3  5  c:/1da/tex/context/ctx_sml_library.tex
close source 2  5  C:/$~1da/PODNIK/ConTeXt/Ds477_2202421.tex
close source 1  5 
C:/context/tex/texmf-context/tex/context/base/cont-yes
.mkiv

*


a missing { or } ?

we need a real minimal example to see what is happening

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] Problem with last version of ConTeXt

2014-10-18 Thread Jaroslav Hajtmar

Thanx Hans for reply.
A few hours I was looking for a problem in my source file and library 
that load at the beginning of my file. It seems that the problem has 
nothing to do with the error message means that it has not  nothing to 
do with the itemize environment nor setupitemize (nothing like this in 
the file does not resp. when sections of code to comment out these 
environments, so nothing changes). The problem probably is related to 
some a side effect, because in older versions of ConTeXt Standalone not 
appear (and does not appear in Context, which is included in the latest 
distribution TeXLive 2014).


In my library are very old pieces of code that I used many years ago in 
plainTEX in combination with ConTeXtovým code (including frequent use 
\setvariables). Unfortunately I was despite my great efforts failed to 
create a reasonable minimal example, so I'll probably have to wait 
some time until someone else runs into a similar problem and will be 
able to describe properly document and create a minimum sample example 
(already with me it happened several times and each time it finally was 
resolved).


Thanks for your interest

Jaroslav Hajtmar


Dne 18.10.2014 11:40, Hans Hagen napsal(a):

On 10/18/2014 9:14 AM, Jaroslav Hajtmar wrote:

Hello ConTeXist
Already a long time I use ConTeXt for processing the same files and
always worked very well. Yesterday I updated version of ConTeXt
Standalone and then I (like many times before) wanted to translate his
usual document. Unfortunately, the translation stopped with an error
message that I do not understand. Does anyone know what this could mean?
The source code of my source file I did not change for a very long time
a translation by using ConTeXt from TeXLive 2014 is without problem.
Thanks for the advice.
Jaroslav Hajtmar

Here is error message.


C:\$~1da\PODNIK\ConTeXtcontext Ds477_2202421

mtx-context | warning: no (local) file './Ds477_2202421', proceeding
mtx-context | run 1: luatex
--fmt=C:/context/tex/texmf-cache/luatex-cache/c
ontext/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en
--jobname=Ds477
_2202421
--lua=C:/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce
0dde776fb1556f32e/formats/luatex/cont-en.lui --no-parse-first-line
--c:currentr
un=1 --c:fulljobname=./Ds477_2202421 --c:input=./Ds477_2202421
--c:kindofrun
=1 --c:maxnofruns=8 cont-yes.mkiv
This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/W32TeX) (rev 5041)
  \write18 enabled.
open source  1  1 
C:/context/tex/texmf-context/tex/context/base/cont-yes
.mkiv

ConTeXt  ver: 2014.09.25 18:58 MKIV beta  fmt: 2014.10.18  int:
english/english

system   'cont-new.mkiv' loaded
open source  2  2 
C:/context/tex/texmf-context/tex/context/base/cont-new
.mkiv
close source 2  2 
C:/context/tex/texmf-context/tex/context/base/cont-new
.mkiv
system   files  jobname 'Ds477_2202421', input
'./Ds477_2202421', resu
lt 'Ds477_2202421'
fontslatin modern fonts are not preloaded
languageslanguage 'en' is active
open source  2  3  C:/$~1da/PODNIK/ConTeXt/Ds477_2202421.tex
open source  3  4  c:/1da/tex/context/ctx_sml_library.tex
colors   'rgb' color space is supported
colors   'cmyk' color space is supported
resolversmodules  'visual' is loaded
open source  4  5 
C:/context/tex/texmf-context/tex/context/base/m-visual
.mkiv
loading  ConTeXt Tracking Macros / Visualization
close source 4  5 
C:/context/tex/texmf-context/tex/context/base/m-visual
.mkiv
setuperror in line 14, namespace 'itemgroup', instance
'itemize', k
ey 'n'
setuperror in line 14, namespace 'itemgroup', instance
'itemize', k
ey 'packed'


some kind of error in your \setupitemize command


close source 3  5  c:/1da/tex/context/ctx_sml_library.tex
close source 2  5  C:/$~1da/PODNIK/ConTeXt/Ds477_2202421.tex
close source 1  5 
C:/context/tex/texmf-context/tex/context/base/cont-yes
.mkiv

*


a missing { or } ?

we need a real minimal example to see what is happening

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
___