Command/headnumbercontent

From Wiki
Jump to navigation Jump to search


\headnumbercontent

Summary

The command \headnumbercontent is used for getting the number of the current headline.

Description

Examples

Example 1

  • \defineframed
      [ChapterFrame]
      [width=\textwidth,
       align=flushright,
       offset=0pt,
       rulethickness=0pt]
    
    \startsetups [christian_dietrich]
      \startlocalheadsetup
        \startframed[ChapterFrame]
          \blank[2cm]
          \startfont[Serif sa 8]
            \color[darkgray]{\headnumbercontent}
          \stopfont
          \blank[5mm]
          \startfont[SerifBold sa 2]
            \color[darkred]{\headtextcontent}
          \stopfont
          \blank[1cm]
          \startfont[SerifBold sa 1.5]
            \color[darkred]{\structureuservariable{subtitle}}
          \stopfont
        \stopframed
      \stoplocalheadsetup
    \stopsetups
    
    \defineheadalternative
      [christian_dietrich]
      [renderingsetup=christian_dietrich]
    
    \setuphead
      [chapter]
      [alternative=christian_dietrich,
       header=empty,
       style=]
    
    \starttext
    
    \startchapter[title=Chapter title][subtitle=Chapter subtitle]
    \samplefile{lorem}
    \stopchapter
    
    \stoptext
    

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: