# Difference between revisions of "Command/setupheadertexts"

## Syntax

 \setupheadertexts[...][...][...][...] [...] text on the left handed side of odd pages [...] text on the right handed side of odd pages [...] text on the right handed side of even pages [...] text on the left handed side of even pages

or

Note that these can be combined, so if you want a header with text on the left, middle, and right of the page you can use:

```\setupheadertexts[middle text]
```

There are predefined keywords for popular values, like `chapter` and `pagenumber`,

eg:

```\setupheadertexts[chapter]
```

## Description

These commands take 4 arguments. The first is for the left handed side on odd pages, the second for the right handed side on odd pages, the third for the right handed side on even pages, and the fourth for the left handed side on even pages.

## Example

This example produces the same header on odd and even pages.

```\setupheadertexts
[{\getmarking[chapter]}]    [{page \pagenumber}]
[{page \pagenumber}]        [{\getmarking[chapter]}]
\setuppagenumbering[location=]
```

Note: \setuppagenumbering[location=] supresses the default output (i.e. centered in header) of the page number on every page.

```\startsetups[headertext]
\startframed[frame=off,align=flushleft,width=fit]
abc\\
def\\
ghi\\
jkl
\stopframed
\stopsetups