From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HTML_MESSAGE,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: from cgl.ntg.nl (Cgl.ntg.nl [5.39.185.202]) by inbox.vuxu.org (Postfix) with ESMTP id 8C1A824683 for ; Tue, 28 May 2024 11:08:56 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 7535A484D48 for ; Tue, 28 May 2024 11:08:56 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Authentication-Results: cgl.ntg.nl (amavisd-new); dkim=fail (2048-bit key) reason="fail (message has been altered)" header.d=mailbox.org Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aZ_yKHCkhTXH for ; Tue, 28 May 2024 11:08:55 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 03C35484C5F for ; Tue, 28 May 2024 11:08:33 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 9E4D2484BA4 for ; Tue, 28 May 2024 11:08:22 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PIjL8HindxaK for ; Tue, 28 May 2024 11:08:22 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=80.241.56.152; helo=mout-p-102.mailbox.org; envelope-from=denismaier@mailbox.org; receiver= Received: from mout-p-102.mailbox.org (mout-p-102.mailbox.org [80.241.56.152]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id E5037484BA2 for ; Tue, 28 May 2024 11:08:21 +0200 (CEST) Received: from smtp102.mailbox.org (smtp102.mailbox.org [10.196.197.102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4VpRWR2Drwz9sQ6 for ; Tue, 28 May 2024 11:08:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1716887299; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=8Lh5agb1o/OgIh8SRBaqZ/wwbE96jloVRVb0g56XXeE=; b=a6Q3713wEtcQ1Fo3eIOTFc0Dq8+8h4Cjqd4AE1NAXt8uMkDEYpWePaU3a6oNUhLV34i5XH VdrrUnD9LYgtm+duypH4XBSkLhrhKKYCCd82fmsO6rLZA4UDEC0Ttyp8IbB7ayf8fBBy+2 HmifMdN/ouPHwbCnqjWd3riodfYvmQLooAOY6yJDnIosGXjgLOCujQ+ameY6BcdNd9AYgU zV/LysC2ODmGlxyaEo2AwycPLGPVVDObdqQE/uGebOrxspuo4gZocnSHd0yHdRt+WjjmPW b9+GxmmESSL8v+ybBkwmSSLUYc2yEkvii7jjy2hZsQ/WMpsq7Hp9j/hr2gZayQ== To: "'mailing list for ConTeXt users'" References: In-Reply-To: Date: Tue, 28 May 2024 11:08:03 +0200 Message-ID: <000b01dab0de$8c66da30$a5348e90$@mailbox.org> MIME-Version: 1.0 Thread-Index: AQJmMu3SW6bKb0Rcacrhu0+xJiNy77CVVo9Q Content-Language: de-ch X-MBO-RS-META: ywqtgyw19mgw8yxne6g9eztn15a9crkd X-MBO-RS-ID: 33d2796fab92b41a75c Message-ID-Hash: 5UKM7EYJWTQQUMYDJ3QZKZOYGKGF2RZG X-Message-ID-Hash: 5UKM7EYJWTQQUMYDJ3QZKZOYGKGF2RZG X-MailFrom: denismaier@mailbox.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: lua error in `strc-lev.lua` List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Denis Maier via ntg-context Cc: denismaier@mailbox.org Content-Type: multipart/mixed; boundary="===============4350614044730821927==" This is a multipart message in MIME format. --===============4350614044730821927== Content-Type: multipart/alternative; boundary="----=_NextPart_000_000C_01DAB0EF.4FF04670" Content-Language: de-ch This is a multipart message in MIME format. ------=_NextPart_000_000C_01DAB0EF.4FF04670 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Well, you define less levels than you need. =20 Try this : =20 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \definesectionlevels [default] [ %chapter, % uncomment this line to make it work section, subsection, subsubsection, subsubsubsection, = subsubsubsubsection] =20 \starttext \startsectionlevel \startsectionlevel \startsectionlevel \startsectionlevel \startsectionlevel \startsectionlevel \startsectionlevel \stopsectionlevel \stopsectionlevel \stopsectionlevel \stopsectionlevel \stopsectionlevel \stopsectionlevel \stopsectionlevel \stoptext %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% =20 Interestingly, this will also work, although (if I=E2=80=99m counting = correctly) there are still only 5 levels defined, but 6 are used (just = like above): =20 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% =20 \definesectionlevels [default] [ %chapter, % uncomment this line to make it work section, subsection, subsubsection, subsubsubsection, = subsubsubsubsection] =20 \starttext \startsectionlevel \startsectionlevel \startsectionlevel \startsectionlevel \startsectionlevel \startsectionlevel %\startsectionlevel %\stopsectionlevel \stopsectionlevel \stopsectionlevel \stopsectionlevel \stopsectionlevel \stopsectionlevel \stopsectionlevel \stoptext =20 =20 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Von: Sylvain Hubert =20 Gesendet: Dienstag, 28. Mai 2024 10:48 An: mailing list for ConTeXt users Betreff: [NTG-context] lua error in `strc-lev.lua` =20 ConTeXt LMTX version: 2024.05.27 18:16 =20 Reproducible example: =20 \definesectionlevels [default] [section, subsection, subsubsection, subsubsubsection, = subsubsubsubsection] =20 \starttext \startsectionlevel \startsectionlevel \startsectionlevel \startsectionlevel \startsectionlevel \startsectionlevel \startsectionlevel \stopsectionlevel \stopsectionlevel \stopsectionlevel \stopsectionlevel \stopsectionlevel \stopsectionlevel \stopsectionlevel \stoptext =20 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...) =20 ------=_NextPart_000_000C_01DAB0EF.4FF04670 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Well, you define = less levels than you need.

 

Try = this :

 

%%%%%%%%%%%%%%%%%%%= %%%%%%%%%%%%%%

\definesectionlevel= s

=C2=A0=C2=A0 = [default]

=C2=A0=C2=A0 = [

=C2=A0=C2=A0=C2=A0 = %chapter, % uncomment this line to make it work

=C2=A0=C2=A0 = section, subsection, subsubsection, subsubsubsection, = subsubsubsubsection]

 

\starttext

\startsectionlevel<= o:p>

\startsectionlevel<= o:p>

\startsectionlevel<= o:p>

\startsectionlevel<= o:p>

\startsectionlevel<= o:p>

\startsectionlevel<= o:p>

\startsectionlevel<= o:p>

\stopsectionlevel

\stopsectionlevel

\stopsectionlevel

\stopsectionlevel

\stopsectionlevel

\stopsectionlevel

\stopsectionlevel

\stoptext

%%%%%%%%%%%%%%%%%%%= %%%%%%%%%%%%%%

 

Interestingly, this will also work, = although (if I=E2=80=99m counting correctly) there are still only 5 = levels defined, but 6 are used (just like = above):

 

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

 

\definesectionlevel= s

=C2=A0=C2=A0 = [default]

=C2=A0=C2=A0 = [

=C2=A0=C2=A0=C2=A0 = %chapter, % uncomment this line to make it work

=C2=A0=C2=A0 = section, subsection, subsubsection, subsubsubsection, = subsubsubsubsection]

 

\starttext

\startsectionlevel<= o:p>

\startsectionlevel<= o:p>

\startsectionlevel<= o:p>

\startsectionlevel<= o:p>

\startsectionlevel<= o:p>

\startsectionlevel<= o:p>

%\startsectionlevel=

%\stopsectionlevel<= o:p>

\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

=C2=A0=C2=A0 = [default]

=C2=A0=C2=A0 [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...)

 

------=_NextPart_000_000C_01DAB0EF.4FF04670-- --===============4350614044730821927== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============4350614044730821927==--