ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Procházka Lukáš Ing. - Pontex s. r. o." <LPr@pontex.cz>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: Problem with context.startsection (was: Problem with \nolist)
Date: Tue, 30 Nov 2010 17:51:49 +0100	[thread overview]
Message-ID: <op.vmzs4nertpjj8f@lpr> (raw)
In-Reply-To: <5021E787-6E6D-4118-95CD-22DE5E2ED14A@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 921 bytes --]

On Sun, 28 Nov 2010 19:00:37 +0100, Wolfgang Schuster <schuster.wolfgang@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:LPr@pontex.cz]
Pontex s. r. o.      [mailto:pontex@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

[-- Attachment #2: t.mkiv --]
[-- Type: application/octet-stream, Size: 259 bytes --]

\enableregime[cp1250]

\starttext
  \placecontent % = TOC

  \startsection[title=TI,list=LI]
    sss
  \stopsection

  \startluacode
    context.startsection{title = "ti", list = "li"}
    ttt
    context.stopsection()
  \stopluacode
\stoptext

[-- Attachment #3: Type: text/plain, Size: 486 bytes --]

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

  parent reply	other threads:[~2010-11-30 16:51 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-28 17:29 Problem with \nolist Procházka Lukáš
2010-11-28 18:00 ` Wolfgang Schuster
2010-11-28 20:54   ` Procházka Lukáš
2010-11-30 16:51   ` Procházka Lukáš Ing. - Pontex s. r. o. [this message]
2010-11-30 17:13     ` Problem with context.startsection (was: Problem with \nolist) Wolfgang Schuster
2010-11-30 21:38     ` Problem with context.startsection Peter Münster
2010-12-01  7:23       ` Procházka Lukáš Ing. - Pontex s. r. o.
2010-12-01  9:22       ` Hans Hagen
2010-12-01 11:59         ` \enableregime (was: Re: Problem with context.startsection) Peter Münster
2010-12-01 12:13           ` Procházka Lukáš Ing. - Pontex s. r. o.
2010-12-01 14:31           ` \enableregime Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=op.vmzs4nertpjj8f@lpr \
    --to=lpr@pontex.cz \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).