[NTG-context] Re: lua error in `strc-lev.lua`

2024-05-29 Thread Sylvain Hubert
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 wrote: > On 5/28/2024 10:48 AM, Sylvain Hubert wrote: > > ConTeXt LMTX version: 2024.05.27 18:16 > > > > Reproducible example: > &g

[NTG-context] Re: lua error in `strc-lev.lua`

2024-05-29 Thread Sylvain Hubert
rt wrote: > > ConTeXt LMTX version: 2024.05.27 18:16 > > > > Reproducible example: > > > > \definesectionlevels > > [default] > > [section, subsection, subsubsection, subsubsubsection, > subsubsubsubsection] > > > > \starttext >

[NTG-context] Re: lua error in `strc-lev.lua`

2024-05-28 Thread Denis Maier via ntg-context
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

[NTG-context] lua error in `strc-lev.lua`

2024-05-28 Thread Sylvain Hubert
ConTeXt LMTX version: 2024.05.27 18:16 Reproducible example: \definesectionlevels [default] [section, subsection, subsubsection, subsubsubsection, subsubsubsubsection] \starttext \startsectionlevel \startsectionlevel \startsectionlevel \startsectionlevel \startsectionlevel \startsectionlevel

Re: [NTG-context] Setting table of contents depth by number rather than by list

2021-12-24 Thread Hans Hagen via ntg-context
start/stopsectionlevel for sectioning commands instead. That way, users could add \definesectionlevels to the document preamble to use whatever sectioning scheme they wanted. However, this would mean that the exporter wouldn't know what sectioning commands to use the TOC setup. given the amount of r

Re: [NTG-context] Setting table of contents depth by number rather than by list

2021-12-24 Thread Bruce Horrocks via ntg-context
ntent] > [list={section,subsection}] > for n=2. > > I'm considering using \start/stopsectionlevel for sectioning commands > instead. That way, users could add \definesectionlevels to the document > preamble to use whatever sectioning scheme they wanted. However, this would

Re: [NTG-context] Setting table of contents depth by number rather than by list

2021-12-24 Thread Denis Maier via ntg-context
will translate into a definesectionlevels command and inform your exporter about the used sectionlevels. Once the used commands are known it should be possible to map toc:2 to a combinedlist definition. I can't require the user

Re: [NTG-context] Setting table of contents depth by number rather than by list

2021-12-24 Thread Denis Maier via ntg-context
This: #+Context_Section_Levels: '(chapter section subsection) will translate into a definesectionlevels command and inform your exporter about the used sectionlevels. Once the used commands are known it should be possible to map toc:2 to a combine

Re: [NTG-context] Setting table of contents depth by number rather than by list

2021-12-24 Thread Jason Ross via ntg-context
On 12/24/21 1:29 PM, Denis Maier wrote: I probably wasn't clear. You will support toc:2. This: #+Context_Section_Levels: '(chapter section subsection) will translate into a definesectionlevels command and inform your exporter about the used sectionlevels. Once the used commands are

Re: [NTG-context] Setting table of contents depth by number rather than by list

2021-12-24 Thread Denis Maier via ntg-context
upport "toc:2". I probably wasn't clear. You will support toc:2. This: #+Context_Section_Levels: '(chapter section subsection) will translate into a definesectionlevels command and inform your exporter about the used sectionlevels. O

Re: [NTG-context] Setting table of contents depth by number rather than by list

2021-12-24 Thread Denis Maier via ntg-context
[content] [list={section,subsection}] for n=2. I'm considering using \start/stopsectionlevel for sectioning commands instead. That way, users could add \definesectionlevels to the document preamble

Re: [NTG-context] Setting table of contents depth by number rather than by list

2021-12-24 Thread Denis Maier via ntg-context
users could add \definesectionlevels to the document preamble to use whatever sectioning scheme they wanted. However, this would mean that the exporter wouldn't know what sectioning commands to use the TOC setup. Thanks,

[NTG-context] Setting table of contents depth by number rather than by list

2021-12-24 Thread Jason Ross via ntg-context
could add \definesectionlevels to the document preamble to use whatever sectioning scheme they wanted. However, this would mean that the exporter wouldn't know what sectioning commands to use the TOC setup. Than

Re: [NTG-context] Are nested sections possible?

2016-03-11 Thread Andreas Schneider
subsubsubsubsection), you may need to define your own using \definesectionlevels. Best regards Andreas Am 2016-03-11 09:08, schrieb m...@silentumbrella.com: Greetings, Is it possible to have \starttext \startchapter Hey a chapter! \startsection something.one \startsection someting.one.one

Re: [NTG-context] toc and macro

2015-05-28 Thread Wolfgang Schuster
and finds itself out (by the nesting of the command) > if its behave > as \startpart or \startchapter or \startsection or \startsubsection or > \startsubsubsection … You’re looking for the \startsectionlevel command. %\definesectionlevels[default][part,chapter,section,subsection] \starttext

Re: [NTG-context] Structure of titles in MkIV

2014-10-15 Thread Alan BRASLAU
Quoting from the thread "Adaptive section structuring" of September 2012: > %\definesectionlevels[default][section,subsection,subsubsection] > \definesectionlevels[mine][title,subject,subsubject] > > \starttext > > \startsectionlevel [title=Alpha] >

Re: [NTG-context] Dynamic headings & query heading information

2014-02-08 Thread Andreas Schneider
told you before: you are awesome! This is exactly what I was looking for. Due to this I also found \currentstructurereference and a bunch of other commands :) Once you know that "structure" is the keyword, "strc-sec.*" is just around the corner. Regarding your earlier mail (\defi

Re: [NTG-context] Dynamic headings & query heading information

2014-02-07 Thread Wolfgang Schuster
hieve two things: > > 1) a macro (that will print a list) should also add a heading. However, the > heading should always be one level beneath the current heading and without > numbering. Example: within a \section it should be a \subsubject, within a > \chapter it should be a \subjec

Re: [NTG-context] \startstructurelevel

2013-10-25 Thread Wolfgang Schuster
vel > \stoptext You can’t mix sectionlevels and normal section command. When you want a \section for the first level change the level settings with \definesectionlevels [default] [section, subsection, subsubsection, subsubsubsection, subsubsubsubsection] and use \starttext \s

Re: [NTG-context] Adaptive section structuring

2012-09-13 Thread Wolfgang Schuster
stopstructure > \stopstructure > \stoptext > > This would ease moving around sections, which might end up as > subsections and vice versa. %\definesectionlevels[default][section,subsection,subsubsection] \definesectionlevels[mine][title,subject,subsubject] \starttex