Command/definetext

From Wiki
Jump to navigation Jump to search


\definetext

Summary

The command \definetext is used to define the content of single layout areas.

Settings

\definetext[...][...][...][...][...][...][...]
[...]name
[...]top header text footer bottom
[...]text margin edge
[...]date pagenumber mark text command
[...]date pagenumber mark text command
[...]date pagenumber mark text command
[...]date pagenumber mark text command

Description

Examples

Custom header on a chapter page

\definetext can be used to create a custom header for the first page of a \chapter.

The command has a variable number of arguments like \setupheadertexts.

The third argument with the horizontal position can only be used if you use two or four arguments to set texts on the left and right side but isn’t in this example because a) the "text" position is the default and b) we pass only one argument for the content to have the text horizontally centered.

% Wolfgang Schuster, 2024-03-26
\definetext
  [chapterheader] % identifier
  [header]        % vertical position (header/footer)
% [text]          % horizontal position (text/margin)
  [This is a custom header for \tex{chapter}] % content

\setuphead[chapter][header=chapterheader]

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: