Thanks Raban, works perfectly well !
Would be worth adding to a manual.
Jürgen

----- Nachricht von Henning Hraban Ramm <te...@fiee.net> ---------
     Datum: Mon, 24 Feb 2025 09:49:45 +0100
       Von: Henning Hraban Ramm <te...@fiee.net>
Antwort an: mailing list for ConTeXt users <ntg-context@ntg.nl>
   Betreff: [NTG-context] Re: header centered doublesided
        An: ntg-context@ntg.nl


Am 24.02.25 um 09:16 schrieb Jürgen Hanneder via ntg-context:
I tried to produce the page layout demanded by a publisher, who wants the author's name in the left
header and the name of the article in the right header, but failed.

It seems to me that while \setupheadertexts can print stuff in the middle, it does not take orders to
have different texts on left (even) and right (odd) pages.

My relevant setup is:
\setupheader[leftwidth=.8\hsize,rightwidth=.8\hsize,style=\tfx,location={middle}]
\setuppagenumbering[alternative=doublesided,location={footer,margin}]
\setupheadertexts[?]

On single sided layouts, \setupheadertexts takes two arguments (left and right side); on doublesided layouts, four arguments: \setupheadertexts[right page left side][right page reight side][left page left side][left page right side]

Often it makes sense to use setups, e.g.

1 \setuppagenumbering[alternative=doublesided] % doppelseitig
2 \setupheadertexts[] % leeren
3 \setupheadertexts[\setups{text rechts}][][][\setups{text links}]
4 \startsetups[text rechts]
5 \rlap{\pagenumber}
6 \hfill % horizontal füllen
7 \getmarking[chapter] % Kapitel-Titel abrufen
8 \hfill
9 \llap{Un Nom}
10 \stopsetups
11 \startsetups[text links]
12 \rlap{Una Person}
13 \hfill
14 \getmarking[section]
15 \hfill
16 \llap{\pagenumber}
17 \stopsetups

Hraban
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________


----- Ende der Nachricht von Henning Hraban Ramm <te...@fiee.net> -----



---

Prof. Dr. Juergen Hanneder
Philipps-Universitaet Marburg
FG Indologie u. Tibetologie
Deutschhausstr.12
35032 Marburg
Germany
Tel. 0049-6421-28-24930
hanne...@staff.uni-marburg.de

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to