Re: [NTG-context] \...structurelevel - probably a bug in the last version

2012-04-08 Thread Wolfgang Schuster

Am 09.04.2012 um 08:40 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:

> Hello,
> 
> I've just updated ConTeXt.
> 
> The following code used to work so far, now I'm getting error:
> 
> 
> \definestructurelevels[A][section,]
> 
> \starttext
>  \startstructurelevel[A][title=Title]
>\input knuth
>  \stopstructurelevel
> \stoptext
> 

Change this in strc-lev.mkvi:

\unexpanded\def\strc_levels_start[#category]%
  {\doifassignmentelse{#category}
-{\ctxcommand{startautolevel("\v!default")}[#category]}
-{\ctxcommand{startautolevel("#category")}}}
+{\ctxcommand{startsectionlevel("\v!default")}[#category]}
+{\ctxcommand{startsectionlevel("#category")}}}

As you can see in the file the commands have new names and the old names are 
synonyms for backward compatibility.

Wolfgang
___
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] \...structurelevel - probably a bug in the last version

2012-04-08 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

I've just updated ConTeXt.

The following code used to work so far, now I'm getting error:


\definestructurelevels[A][section,]

\starttext
  \startstructurelevel[A][title=Title]
\input knuth
  \stopstructurelevel
\stoptext


"
This is LuaTeX, Version beta-0.70.1-2012032923 (TeX Live 2012)
...
ConTeXt  ver: 2012.04.07 14:42 MKIV  fmt: 2012.4.9  int: english/english
...
! LuaTeX error :1: attempt to call field 'startautolevel' (a 
nil value)
stack traceback:
:1: in main chunk.

system  > tex > error on line 4 in file 
C:/Lukas/Jobs/D5-035.Zat/SO_201/Texts/Test/t2.mkiv:

1 \definestructurelevels[A][subsubsubsection,]
2
3 \starttext
4 >>\startstructurelevel[A][title=Title]
5 \input knuth
6   \stopstructurelevel
7 \stoptext
8
"

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

t2.log
Description: Binary data


t2.mkiv
Description: Binary data


t2.pdf
Description: Adobe PDF document
___
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
___