Command/setcharstrut

From ConTeXt wiki
Jump to: navigation, 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:

C O N T E X T G A R D E N

Personal tools
Namespaces
Variants
Actions
Help
External Help
Installation
Navigation
Toolbox