Re: [NTG-context] Problem with context.startsection
On 30-11-2010 10:38, Peter Münster wrote: On Tue, Nov 30 2010, Procházka Lukáš Ing. - Pontex s. r. o. wrote: \enableregime[cp1250] Remove this line, see also page 6 of http://meeting.contextgarden.net/2010/talks/2010-09-15-documentworkflow/workflows.pdf (ok, there seems to be a bug with \enableregime[], but if Hans could drop support for 8-bit encodings, then he would have more time for other things ;) support for 8 bit is rather trivial so what is the problem? - 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 context.startsection
... Thanks, that was really silly mistake of mine - I was "Luaing" the original ctx code so I forgot to enclose the ttt into the context("ttt"); that was the problem. Braces were OK - statement: context.startsection({title = "ti", list = "li"}) may be shortened to: context.startsection{title = "ti", list = "li"} - that's OK in Lua. On Tue, 30 Nov 2010 22:38:41 +0100, Peter Münster wrote: context.startsection{title = "ti", list = "li"} % - but this is wrong Use "--" instead of "%" in lua mode. (I wrote "%" this to the mail only.) ttt Should be: tex.print"ttt" Or: context("ttt") Cheers, Peter Lukas ___ 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
On Tue, Nov 30 2010, Procházka Lukáš Ing. - Pontex s. r. o. wrote: > \enableregime[cp1250] Remove this line, see also page 6 of http://meeting.contextgarden.net/2010/talks/2010-09-15-documentworkflow/workflows.pdf (ok, there seems to be a bug with \enableregime[], but if Hans could drop support for 8-bit encodings, then he would have more time for other things ;) > context.startsection{title = "ti", list = "li"} % - but this is wrong Use "--" instead of "%" in lua mode. > ttt Should be: tex.print"ttt" Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/ ___ 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)
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 > 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 ___
Re: [NTG-context] Problem with context.startsection (was: Problem with \nolist)
On Sun, 28 Nov 2010 19:00:37 +0100, Wolfgang Schuster 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 ___