* [NTG-context] lua error in `strc-lev.lua` @ 2024-05-28 8:48 Sylvain Hubert 2024-05-28 9:08 ` [NTG-context] " Denis Maier via ntg-context [not found] ` <0e19909b-03c3-45f4-944c-b882f15f38f5@xs4all.nl> 0 siblings, 2 replies; 7+ messages in thread From: Sylvain Hubert @ 2024-05-28 8:48 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1.1: Type: text/plain, Size: 843 bytes --] ConTeXt LMTX version: 2024.05.27 18:16 Reproducible example: \definesectionlevels [default] [section, subsection, subsubsection, subsubsubsection, subsubsubsubsection] \starttext \startsectionlevel \startsectionlevel \startsectionlevel \startsectionlevel \startsectionlevel \startsectionlevel \startsectionlevel \stopsectionlevel \stopsectionlevel \stopsectionlevel \stopsectionlevel \stopsectionlevel \stopsectionlevel \stopsectionlevel \stoptext lua error > lua error on line 19 in file ./input.tex: registered function call [969]: ...mtx/tex/texmf-context/tex/context/base/mkiv/strc-lev.lua:75: attempt to index a nil value (field '?') stack traceback: ...mtx/tex/texmf-context/tex/context/base/mkiv/strc-lev.lua:75: in function <...mtx/tex/texmf-context/tex/context/base/mkiv/strc-lev.lua:66> (...tail calls...) [-- Attachment #1.2: Type: text/html, Size: 2351 bytes --] [-- Attachment #2: Type: text/plain, Size: 511 bytes --] ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 7+ messages in thread
* [NTG-context] Re: lua error in `strc-lev.lua` 2024-05-28 8:48 [NTG-context] lua error in `strc-lev.lua` Sylvain Hubert @ 2024-05-28 9:08 ` Denis Maier via ntg-context [not found] ` <0e19909b-03c3-45f4-944c-b882f15f38f5@xs4all.nl> 1 sibling, 0 replies; 7+ messages in thread From: Denis Maier via ntg-context @ 2024-05-28 9:08 UTC (permalink / raw) To: 'mailing list for ConTeXt users'; +Cc: denismaier [-- Attachment #1.1: Type: text/plain, Size: 2572 bytes --] Well, you define less levels than you need. Try this : %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \definesectionlevels [default] [ %chapter, % uncomment this line to make it work section, subsection, subsubsection, subsubsubsection, subsubsubsubsection] \starttext \startsectionlevel \startsectionlevel \startsectionlevel \startsectionlevel \startsectionlevel \startsectionlevel \startsectionlevel \stopsectionlevel \stopsectionlevel \stopsectionlevel \stopsectionlevel \stopsectionlevel \stopsectionlevel \stopsectionlevel \stoptext %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Interestingly, this will also work, although (if I’m counting correctly) there are still only 5 levels defined, but 6 are used (just like above): %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \definesectionlevels [default] [ %chapter, % uncomment this line to make it work section, subsection, subsubsection, subsubsubsection, subsubsubsubsection] \starttext \startsectionlevel \startsectionlevel \startsectionlevel \startsectionlevel \startsectionlevel \startsectionlevel %\startsectionlevel %\stopsectionlevel \stopsectionlevel \stopsectionlevel \stopsectionlevel \stopsectionlevel \stopsectionlevel \stopsectionlevel \stoptext %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Von: Sylvain Hubert <champignoom@gmail.com> Gesendet: Dienstag, 28. Mai 2024 10:48 An: mailing list for ConTeXt users <ntg-context@ntg.nl> Betreff: [NTG-context] lua error in `strc-lev.lua` ConTeXt LMTX version: 2024.05.27 18:16 Reproducible example: \definesectionlevels [default] [section, subsection, subsubsection, subsubsubsection, subsubsubsubsection] \starttext \startsectionlevel \startsectionlevel \startsectionlevel \startsectionlevel \startsectionlevel \startsectionlevel \startsectionlevel \stopsectionlevel \stopsectionlevel \stopsectionlevel \stopsectionlevel \stopsectionlevel \stopsectionlevel \stopsectionlevel \stoptext lua error > lua error on line 19 in file ./input.tex: registered function call [969]: ...mtx/tex/texmf-context/tex/context/base/mkiv/strc-lev.lua:75: attempt to index a nil value (field '?') stack traceback: ...mtx/tex/texmf-context/tex/context/base/mkiv/strc-lev.lua:75: in function <...mtx/tex/texmf-context/tex/context/base/mkiv/strc-lev.lua:66> (...tail calls...) [-- Attachment #1.2: Type: text/html, Size: 15691 bytes --] [-- Attachment #2: Type: text/plain, Size: 511 bytes --] ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <0e19909b-03c3-45f4-944c-b882f15f38f5@xs4all.nl>]
* [NTG-context] Re: lua error in `strc-lev.lua` [not found] ` <0e19909b-03c3-45f4-944c-b882f15f38f5@xs4all.nl> @ 2024-05-29 9:05 ` Sylvain Hubert 2024-05-29 9:16 ` Henning Hraban Ramm 2024-05-29 9:22 ` Hans Hagen 2024-05-29 9:15 ` Sylvain Hubert 1 sibling, 2 replies; 7+ messages in thread From: Sylvain Hubert @ 2024-05-29 9:05 UTC (permalink / raw) To: Hans Hagen, mailing list for ConTeXt users [-- Attachment #1.1: Type: text/plain, Size: 2792 bytes --] I replaced `strc-lev.lua` and rerun `context` but the error message stays the same. `context` command doesn't seem to recognize the change of `strc-lev.lua`. Should I run `mtxrun` or something before? On Tue, 28 May 2024 at 20:20, Hans Hagen <j.hagen@xs4all.nl> wrote: > On 5/28/2024 10:48 AM, Sylvain Hubert wrote: > > ConTeXt LMTX version: 2024.05.27 18:16 > > > > Reproducible example: > > > > \definesectionlevels > > [default] > > [section, subsection, subsubsection, subsubsubsection, > subsubsubsubsection] > > > > \starttext > > \startsectionlevel > > \startsectionlevel > > \startsectionlevel > > \startsectionlevel > > \startsectionlevel > > \startsectionlevel > > \startsectionlevel > > \stopsectionlevel > > \stopsectionlevel > > \stopsectionlevel > > \stopsectionlevel > > \stopsectionlevel > > \stopsectionlevel > > \stopsectionlevel > > \stoptext > > > > lua error > lua error on line 19 in file ./input.tex: > > > > registered function call [969]: > > ...mtx/tex/texmf-context/tex/context/base/mkiv/strc-lev.lua:75: attempt > > to index a nil value (field '?') > > stack traceback: > > ...mtx/tex/texmf-context/tex/context/base/mkiv/strc-lev.lua:75: > > in function > <...mtx/tex/texmf-context/tex/context/base/mkiv/strc-lev.lua:66> > > (...tail calls...) > can you test with the attached ... (remake the format) > > \starttext > \startsectionlevel[title=level 1] > \startsectionlevel[title=level 2 ] > \startsectionlevel[title=level 3] > \startsectionlevel[title=level 4] > \startsectionlevel[title=level 5] > \startsectionlevel[title=level 6] > \startsectionlevel[title=level 7] > \startsectionlevel[title=level 8] > \startsectionlevel[title=level 9] > \startsectionlevel[title=level 10 ] > \stopsectionlevel > \stopsectionlevel > \stopsectionlevel > \stopsectionlevel > \stopsectionlevel > \stopsectionlevel > \stopsectionlevel > \stopsectionlevel > \stopsectionlevel > \stopsectionlevel > \stopsectionlevel > \stopsectionlevel > \stopsectionlevel > \stopsectionlevel > \stopsectionlevel > \stopsectionlevel > \stoptext > > > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl > ----------------------------------------------------------------- > [-- Attachment #1.2: Type: text/html, Size: 3817 bytes --] [-- Attachment #2: Type: text/plain, Size: 511 bytes --] ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 7+ messages in thread
* [NTG-context] Re: lua error in `strc-lev.lua` 2024-05-29 9:05 ` Sylvain Hubert @ 2024-05-29 9:16 ` Henning Hraban Ramm 2024-05-29 10:36 ` Henning Hraban Ramm 2024-05-29 9:22 ` Hans Hagen 1 sibling, 1 reply; 7+ messages in thread From: Henning Hraban Ramm @ 2024-05-29 9:16 UTC (permalink / raw) To: ntg-context Am 29.05.24 um 11:05 schrieb Sylvain Hubert: > I replaced `strc-lev.lua` and rerun `context` but the error message > stays the same. `context` command doesn't seem to recognize the change > of `strc-lev.lua`. Should I run `mtxrun` or something before? After changes to the source files you must re-generate the format: context --generate and maybe context --luatex --generate Hraban ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 7+ messages in thread
* [NTG-context] Re: lua error in `strc-lev.lua` 2024-05-29 9:16 ` Henning Hraban Ramm @ 2024-05-29 10:36 ` Henning Hraban Ramm 0 siblings, 0 replies; 7+ messages in thread From: Henning Hraban Ramm @ 2024-05-29 10:36 UTC (permalink / raw) To: ntg-context Am 29.05.24 um 11:16 schrieb Henning Hraban Ramm: > Am 29.05.24 um 11:05 schrieb Sylvain Hubert: >> I replaced `strc-lev.lua` and rerun `context` but the error message >> stays the same. `context` command doesn't seem to recognize the change >> of `strc-lev.lua`. Should I run `mtxrun` or something before? > > After changes to the source files you must re-generate the format: > > context --generate > > and maybe > > context --luatex --generate --make instead of --generate, of course. Sorry! Hraban ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 7+ messages in thread
* [NTG-context] Re: lua error in `strc-lev.lua` 2024-05-29 9:05 ` Sylvain Hubert 2024-05-29 9:16 ` Henning Hraban Ramm @ 2024-05-29 9:22 ` Hans Hagen 1 sibling, 0 replies; 7+ messages in thread From: Hans Hagen @ 2024-05-29 9:22 UTC (permalink / raw) To: Sylvain Hubert, mailing list for ConTeXt users On 5/29/2024 11:05 AM, Sylvain Hubert wrote: > I replaced `strc-lev.lua` and rerun `context` but the error message > stays the same. `context` command doesn't seem to recognize the change > of `strc-lev.lua`. Should I run `mtxrun` or something before? context --make ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | 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 / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 7+ messages in thread
* [NTG-context] Re: lua error in `strc-lev.lua` [not found] ` <0e19909b-03c3-45f4-944c-b882f15f38f5@xs4all.nl> 2024-05-29 9:05 ` Sylvain Hubert @ 2024-05-29 9:15 ` Sylvain Hubert 1 sibling, 0 replies; 7+ messages in thread From: Sylvain Hubert @ 2024-05-29 9:15 UTC (permalink / raw) To: Hans Hagen, mailing list for ConTeXt users [-- Attachment #1.1: Type: text/plain, Size: 2681 bytes --] I rerun `install.sh` after replacing `strc-lev.lua` and the error goes away. Thanks Hans! On Tue, 28 May 2024 at 20:20, Hans Hagen <j.hagen@xs4all.nl> wrote: > On 5/28/2024 10:48 AM, Sylvain Hubert wrote: > > ConTeXt LMTX version: 2024.05.27 18:16 > > > > Reproducible example: > > > > \definesectionlevels > > [default] > > [section, subsection, subsubsection, subsubsubsection, > subsubsubsubsection] > > > > \starttext > > \startsectionlevel > > \startsectionlevel > > \startsectionlevel > > \startsectionlevel > > \startsectionlevel > > \startsectionlevel > > \startsectionlevel > > \stopsectionlevel > > \stopsectionlevel > > \stopsectionlevel > > \stopsectionlevel > > \stopsectionlevel > > \stopsectionlevel > > \stopsectionlevel > > \stoptext > > > > lua error > lua error on line 19 in file ./input.tex: > > > > registered function call [969]: > > ...mtx/tex/texmf-context/tex/context/base/mkiv/strc-lev.lua:75: attempt > > to index a nil value (field '?') > > stack traceback: > > ...mtx/tex/texmf-context/tex/context/base/mkiv/strc-lev.lua:75: > > in function > <...mtx/tex/texmf-context/tex/context/base/mkiv/strc-lev.lua:66> > > (...tail calls...) > can you test with the attached ... (remake the format) > > \starttext > \startsectionlevel[title=level 1] > \startsectionlevel[title=level 2 ] > \startsectionlevel[title=level 3] > \startsectionlevel[title=level 4] > \startsectionlevel[title=level 5] > \startsectionlevel[title=level 6] > \startsectionlevel[title=level 7] > \startsectionlevel[title=level 8] > \startsectionlevel[title=level 9] > \startsectionlevel[title=level 10 ] > \stopsectionlevel > \stopsectionlevel > \stopsectionlevel > \stopsectionlevel > \stopsectionlevel > \stopsectionlevel > \stopsectionlevel > \stopsectionlevel > \stopsectionlevel > \stopsectionlevel > \stopsectionlevel > \stopsectionlevel > \stopsectionlevel > \stopsectionlevel > \stopsectionlevel > \stopsectionlevel > \stoptext > > > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl > ----------------------------------------------------------------- > [-- Attachment #1.2: Type: text/html, Size: 3687 bytes --] [-- Attachment #2: Type: text/plain, Size: 511 bytes --] ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2024-05-29 10:37 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2024-05-28 8:48 [NTG-context] lua error in `strc-lev.lua` Sylvain Hubert 2024-05-28 9:08 ` [NTG-context] " Denis Maier via ntg-context [not found] ` <0e19909b-03c3-45f4-944c-b882f15f38f5@xs4all.nl> 2024-05-29 9:05 ` Sylvain Hubert 2024-05-29 9:16 ` Henning Hraban Ramm 2024-05-29 10:36 ` Henning Hraban Ramm 2024-05-29 9:22 ` Hans Hagen 2024-05-29 9:15 ` Sylvain Hubert
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).