Re: [NTG-context] Problem with context.startsection

2010-12-01 Thread Hans Hagen

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


Re: [NTG-context] Problem with context.startsection

2010-11-30 Thread Peter Münster
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.prin

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

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

... 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 pmli...@free.fr 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.prin


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
___