Command/setcharstrut

From Wiki
Jump to navigation Jump to search

\setcharstrut

Syntax

\setcharstrut[...]
[...] list-of-characters

Description

Set strut to cover the maximum height and depths of all the characters specified as argument.

Example

By default, position of page headers (including page numbers) are computed on a per-page basis and the resulting baseline depends on the maximum glyph height of the given header (which extends to the top of the header space). Consequently, the baseline of page headers on successive pages might differ visibly. Presuming, the page numbers are the "limiting factor" here (i.e. are larger than the page header proper) a common baseline can be enforced across all pages by something like

\setuppagenumbering[location={header,margin}, style=\bfc\setcharstrut{0123456789}\strut, strut=no]

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: