[NTG-context] Problem with last version of ConTeXt

Hans Hagen pragma at wxs.nl
Mon Oct 20 09:16:16 CEST 2014


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


More information about the ntg-context mailing list