Re: [NTG-context] Problem with context.startsection (was: Problem with \nolist)

2010-11-30 Thread Procházka Lukáš Ing . - Pontex s . r . o .

On Sun, 28 Nov 2010 19:00:37 +0100, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:


\startsection[title={AAA aaa},list={AAA}]

...

\stopsection



... OK, the example above works well when called from ConTeXt. But from Lua? - 
This Lua code seems to be wrong:

---
\enableregime[cp1250]

\starttext
  \placecontent % = TOC

  \startsection[title=TI,list=LI] % That's OK -
sss
  \stopsection

  \startluacode
context.startsection{title = ti, list = li} % - but this is wrong
 ttt
context.stopsection()
  \stopluacode
\stoptext
---

Normally, I don't have problem to call Lua, but in this case... Where's my 
mistake?

Kind 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

t.mkiv
Description: Binary data
___
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 context.startsection (was: Problem with \nolist)

2010-11-30 Thread Wolfgang Schuster

Am 30.11.2010 um 17:51 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:

 On Sun, 28 Nov 2010 19:00:37 +0100, Wolfgang Schuster 
 schuster.wolfg...@googlemail.com wrote:
 
 \startsection[title={AAA aaa},list={AAA}]
 
 ...
 
 \stopsection
 
 
 ... OK, the example above works well when called from ConTeXt. But from Lua? 
 - This Lua code seems to be wrong:
 
 ---
 \enableregime[cp1250]
 
 \starttext
  \placecontent % = TOC
 
  \startsection[title=TI,list=LI] % That's OK -
sss
  \stopsection
 
  \startluacode
context.startsection{title = ti, list = li} % - but this is wrong

You forgot the braces:

context.startsection({title = title, list = list})

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
___