![](https://secure.gravatar.com/avatar/d6e7462bd4209f9c4cd08271985a50df.jpg?s=120&d=mm&r=g)
Hello, I'm receiving errors when compiling the following code (although a .pdf is created): --- \starttext \placecontent \section{AAA \nolist{aaa}} \stoptext --- Error message: --- structure : section @ level 3 : 0.0.1 -> AAA \nolist {aaa} ! Undefined control sequence. l.1 AAA \nolist {aaa} \structuretitle ...a {structures.sections.title()} \getstructureheadtitle ... \relax \structuretitle \else \normalexpanded {\no... \doplaceheadtextcomponent ...setstrut \begstrut #1 \endstrut }\xdef \localhea... \@@ns::normal ...eadtextwidth \fi \noindent \fi #2 } \placestructureheadnumbertext ...uctureheadtitle } }\fi \endheadplacement {\g... ... l.4 \section{AAA \nolist{aaa}} --- I'm trying to get something similar as described in contextref.pdf on the page 213. What's the problem? Latest ctx minimals. Best regards, Lukas
![](https://secure.gravatar.com/avatar/93131e1e6e2204bd13501390d768dbdc.jpg?s=120&d=mm&r=g)
Am 28.11.2010 um 18:29 schrieb Procházka Lukáš:
Hello,
I'm receiving errors when compiling the following code (although a .pdf is created):
[...] ! Undefined control sequence. l.1 AAA \nolist {aaa} [...]
I'm trying to get something similar as described in contextref.pdf on the page 213. What's the problem?
Exactly what the error message tells you, the command \nolist is not defined in MkIV. You can find a solution to a similar problem here: http://wiki.contextgarden.net/MkIV_Differences#Nomarking.2FSelect A alternative is to use the start/stop-commands where you can set a different test for the table of contents with \startsection[title={AAA aaa},list={AAA}] ... \stopsection Wolfgang
![](https://secure.gravatar.com/avatar/d6e7462bd4209f9c4cd08271985a50df.jpg?s=120&d=mm&r=g)
... Thanks.
Lukas
On Sun, 28 Nov 2010 19:00:37 +0100, Wolfgang Schuster
Am 28.11.2010 um 18:29 schrieb Procházka Lukáš:
Hello,
I'm receiving errors when compiling the following code (although a .pdf is created):
[...] ! Undefined control sequence. l.1 AAA \nolist {aaa} [...]
I'm trying to get something similar as described in contextref.pdf on the page 213. What's the problem?
Exactly what the error message tells you, the command \nolist is not defined in MkIV.
You can find a solution to a similar problem here:
http://wiki.contextgarden.net/MkIV_Differences#Nomarking.2FSelect
A alternative is to use the start/stop-commands where you can set a different test for the table of contents with
\startsection[title={AAA aaa},list={AAA}]
...
\stopsection
Wolfgang
![](https://secure.gravatar.com/avatar/d6e7462bd4209f9c4cd08271985a50df.jpg?s=120&d=mm&r=g)
On Sun, 28 Nov 2010 19:00:37 +0100, Wolfgang Schuster
\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
![](https://secure.gravatar.com/avatar/93131e1e6e2204bd13501390d768dbdc.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/cedc4d83943006afe3994fb0a0455f82.jpg?s=120&d=mm&r=g)
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/work... (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/
![](https://secure.gravatar.com/avatar/d6e7462bd4209f9c4cd08271985a50df.jpg?s=120&d=mm&r=g)
... 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
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
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
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/work...
(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 -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/cedc4d83943006afe3994fb0a0455f82.jpg?s=120&d=mm&r=g)
On Wed, Dec 01 2010, Hans Hagen wrote:
support for 8 bit is rather trivial so what is the problem?
Test file: \enableregime[cp1250] \starttext bla \stoptext Error: ! LuaTeX error ...text/tex/texmf-context/tex/context/base/regi-ini.lua:100: attempt to call global 'translate' (a nil value). Peter -- Contact information: http://pmrb.free.fr/contact/
![](https://secure.gravatar.com/avatar/d6e7462bd4209f9c4cd08271985a50df.jpg?s=120&d=mm&r=g)
I had the same problem several days ago; Wolfgang answered but I cannot remember the mail thread.
It requires a small patch in c:\ConTeXt\tex\texmf-context\tex\context\base\regi-ini.lua - see the attachment.
Or maybe it's been patched in the newest ctx minimals.
Note that if you replace reg-ini.lua manually, you'll probably need to delete the lua-cache (c:\ConTeXt\tex\texmf-cache\luatex-cache\context\f53042fa2e1c106bc7e3383ec8c3a00c in my case) directory as well.
Cheers,
Lukas
On Wed, 01 Dec 2010 12:59:45 +0100, Peter Münster
On Wed, Dec 01 2010, Hans Hagen wrote:
support for 8 bit is rather trivial so what is the problem?
Test file:
\enableregime[cp1250] \starttext bla \stoptext
Error:
! LuaTeX error ...text/tex/texmf-context/tex/context/base/regi-ini.lua:100: attempt to call global 'translate' (a nil value).
Peter
-- 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
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
On 1-12-2010 12:59, Peter Münster wrote:
\enableregime[cp1250] \starttext bla \stoptext
ok, will be fixed -- ----------------------------------------------------------------- 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 -----------------------------------------------------------------
participants (5)
-
Hans Hagen
-
Peter Münster
-
Procházka Lukáš
-
Procházka Lukáš Ing. - Pontex s. r. o.
-
Wolfgang Schuster