Command/setupformula

Unofficial ConTeXt Wiki mirror

Last modified: 2026-02-10

Summary

The command \setupformula is used to define properties of formulae.

Settings

\setupformula[...,...][...=...,...]
[...,...] name
location left right
align left middle right flushleft center flushright normal
split yes no page
strut yes no
distance dimension
left command
right command
spacebefore see \blank
spaceafter see \blank
numbercommand oneargument
color color
numberstyle style command
numbercolor color
option packed tight middle frame depth line halfline -line -halfline see \setupbodyfont
margin yes no standard dimension
leftmargin dimension
rightmargin dimension
alternative name
indentnext yes no auto
grid see \snaptogrid
frame number
hang none auto
expansion yes no xml
referenceprefix + - text
xmlsetup name
catcodes name
...=...,... inherits from \setupcounter

Option Explanation
location
placement of numbering. There’s also atleftmargin/atrightmargin (don’t use indent)
align
alignment of formula lines. There’s also slanted: first line left, last line right aligned.
split
line breaking behavior. There’s also line: no line breaking (can cause overfull hboxes)
left
in front of the number. default: “(”
right
after the number. default: “)”
margin
left and right indent

Description

For RtL documents, there’s order=reverse to switch the number alignment.

The math manual mentions margindistance.

Examples

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: