Difference between revisions of "Command/setcharstrut"
< Command
Jump to navigation
Jump to search
(Created page with "{{Reference |name={{subst:SUBPAGENAME}} |attributes= }} == Syntax == <table cellspacing="4" cellpadding="2" class="cmd"> <tr> <td colspan="2" class="cmd...") |
(No difference)
|
Revision as of 18:09, 28 December 2014
\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: