Command/definesectionlevels

From Wiki
Jump to navigation Jump to search


\definesectionlevels

Summary

The command \definesectionlevels is necessary to setup the section levels for \startsectionlevel.

Settings

\definesectionlevels[...][...,...]
[...]name
[...,...]section

Description

Instead of \startchapter, \startsection etc. you can also use nested \startsectionlevel. That makes nested text blocks possible where you don’t know in which structure level they’ll end up. It can also ease automatical transformations.

The default settings are like

\definesectionlevels[default][
  {chapter,title},
  {section,subject},
  {subsection,subsubject},
  {subsubsection,subsubsubject},
  {subsubsubsection,subsubsubject},
  {subsubsubsubsection,subsubsubject}]

So if you want to include an article below the chapter level (e.g. you’re using the cgj module for context journal and have sectionlevels below \startArticle), you can define:

\definesectionlevels[default][{section,subject},{subsection,subsubject}]

Using a name different from default, you can more specifically influence the hierarchy for single parts.


Previously, similar features were provided by \definestructurelevels and \startstructurelevel. These are still defined as synonyms, but deprecated.

Examples

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: