Command/setuplinenumbering

Unofficial ConTeXt Wiki mirror

Last modified: 2025-09-13

Summary

The command \setuplinenumbering is used to change the numbering of lines.

Settings

\setuplinenumbering[...,...][...=...,...]
[...,...] name
start number
step number
method page first next
conversion name
continue yes no
location text begin end default left right inner outer inleft inright margin inmargin
distance dimension
align inner outer flushleft flushright left right middle auto
command oneargument
left command
right command
margin dimension
width margin dimension
style style command
color color

Option Explanation
optional, for \definelinenumbering
step
only number every nth line
method
page restart numbering on every page
first usual numbering
next omits first number on each page
conversion
kind of numbers, e.g. numbers characters Characters romannumerals Romannumerals text
continue
continue numbering from previous linenumbering block
align
alignment of the numbers
width
width of the line number

Description

Examples

Print the line numbers in a tiny font, not at normal text size:

  • \definepapersize[sheet][width=100mm,height=60mm]
    \setuppapersize[sheet]
    \starttext
      \setuplinenumbering[style=\tfxx]
      \startlinenumbering
        \input tufte
      \stoplinenumbering
    \stoptext
    
    

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: