Difference between revisions of "Command/definesectionlevels"

From Wiki
Jump to navigation Jump to search
(add hint about old structurelevels commands)
m (fix typo)
 
Line 40: Line 40:
  
  
Previously, similar features were provided by `\definestructurelevels` and `\startstructurelevels`. These are still defined as synonyms, but deprecated.
+
Previously, similar features were provided by `\definestructurelevels` and `\startstructurelevel`. These are still defined as synonyms, but deprecated.
 
</cd:description>
 
</cd:description>
 
<cd:examples></cd:examples>
 
<cd:examples></cd:examples>

Latest revision as of 12:31, 28 July 2024


\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: