[NTG-context] Are nested sections possible?

Hans Hagen pragma at wxs.nl
Fri Mar 11 10:43:27 CET 2016


On 3/11/2016 9:08 AM, mica at silentumbrella.com wrote:
> Greetings,
>
> Is it possible to have
>
> \starttext
>
> \startchapter
> Hey a chapter!
> \startsection
> something.one
> \startsection
> someting.one.one
> \startsection
> something.one.one.one
> \stopsection
> \stopsection
> \stopsection
>
>
> \stopchapter
>
> \stoptext
>
> render as:
>
> 1. Hey a chapter!
> 1.1 something.one
> 1.1.1 something.one.one
> 1.1.1.1 something.one.one.one

do you mean something like

sections/levels-001.tex
sections/levels-002.tex

in the test suite?

\starttext

\startstructurelevel [title=first top level]

     \startstructurelevel [title=first lower level]
         \startstructurelevel [title=second lower level]
             \startstructurelevel [title=third lower level]
                 test
             \stopstructurelevel
         \stopstructurelevel
     \stopstructurelevel

     \startstructurelevel [title=first lower level]
         \startstructurelevel [title=second lower level]
             \startstructurelevel [title=third lower level]
                 test
             \stopstructurelevel
         \stopstructurelevel
     \stopstructurelevel

\stopstructurelevel

\stoptext

and
\starttext

\startstructurelevel [title=first top level]

     \startstructurelevel [title=first lower level]
         \startstructurelevel [title=second lower level]
             \startstructurelevel [title=third lower level]
                 test
             \stopstructurelevel
         \stopstructurelevel
     \stopstructurelevel

     \startstructurelevel [title=first lower level]
         \startstructurelevel [title=second lower level]
             \startstructurelevel [title=third lower level]
                 test
             \stopstructurelevel
         \stopstructurelevel
     \stopstructurelevel

\stopstructurelevel

\stoptext


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
       tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the ntg-context mailing list