Align in setup header/footer
![](https://secure.gravatar.com/avatar/2349dcb0bed02a89d589125ccc301859.jpg?s=120&d=mm&r=g)
Dear all, while finetuning a layout I would like to change the align in setupfootertext to right align or outer align as it is a doublesided layout. The default is afaics to align to the middle of the two pages. I would like to change this but there is no align key in setupfooter. TIA juh
![](https://secure.gravatar.com/avatar/532990f0c5a8331f60e3d0e1173292a6.jpg?s=120&d=mm&r=g)
Hi, what do you have in the footer? Page numers? Then you can just use: \setuppagenumbering [alternative=doublesided, location={footer,right}] Or, for more complex footers/headers you can use: \setupfootertexts [left on odd page] % out [right on odd page] % in [right on even page] % in [left on even page] % out https://wiki.contextgarden.net/Command/setupheadertexts I'm not sure I was understanding your question. Is this what you want? Denis
-----Ursprüngliche Nachricht----- Von: ntg-context
Im Auftrag von Jan U. Hasecke Gesendet: Freitag, 25. Juni 2021 09:25 An: mailing list for ConTeXt users Betreff: [NTG-context] Align in setup header/footer Dear all,
while finetuning a layout I would like to change the align in setupfootertext to right align or outer align as it is a doublesided layout.
The default is afaics to align to the middle of the two pages.
I would like to change this but there is no align key in setupfooter.
TIA juh ________________________________________________________________ ___________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ________________________________________________________________ ___________________
![](https://secure.gravatar.com/avatar/532990f0c5a8331f60e3d0e1173292a6.jpg?s=120&d=mm&r=g)
Addendum: I've probably got confused which parts of the footer are filled with the different arguments, but anyway... You get the idea.
-----Ursprüngliche Nachricht----- Von: ntg-context
Im Auftrag von denis.maier@unibe.ch Gesendet: Freitag, 25. Juni 2021 09:50 An: ntg-context@ntg.nl Betreff: Re: [NTG-context] Align in setup header/footer Hi,
what do you have in the footer?
Page numers? Then you can just use: \setuppagenumbering [alternative=doublesided, location={footer,right}]
Or, for more complex footers/headers you can use: \setupfootertexts [left on odd page] % out [right on odd page] % in [right on even page] % in [left on even page] % out
https://wiki.contextgarden.net/Command/setupheadertexts
I'm not sure I was understanding your question. Is this what you want?
Denis
-----Ursprüngliche Nachricht----- Von: ntg-context
Im Auftrag von Jan U. Hasecke Gesendet: Freitag, 25. Juni 2021 09:25 An: mailing list for ConTeXt users Betreff: [NTG-context] Align in setup header/footer Dear all,
while finetuning a layout I would like to change the align in setupfootertext to right align or outer align as it is a doublesided layout.
The default is afaics to align to the middle of the two pages.
I would like to change this but there is no align key in setupfooter.
TIA juh
________________________________________________________________
___________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net
________________________________________________________________
___________________
___________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ________________________________________________________________ ___________________
![](https://secure.gravatar.com/avatar/2349dcb0bed02a89d589125ccc301859.jpg?s=120&d=mm&r=g)
Hi Denis, Am 25.06.21 um 09:50 schrieb denis.maier@unibe.ch:
Or, for more complex footers/headers you can use: \setupfootertexts [left on odd page] % out [right on odd page] % in [right on even page] % in [left on even page] % out
In fact it is something like this \setupfootertexts [margin] [] [\pagenumber] [\pagenumber] [] I want to align the number inside of this area to the right or the left respectively. I only found setuplayouttext to style the area, except that there is no key "align". juh
![](https://secure.gravatar.com/avatar/532990f0c5a8331f60e3d0e1173292a6.jpg?s=120&d=mm&r=g)
You can use \hfill
-----Ursprüngliche Nachricht----- Von: ntg-context
Im Auftrag von Jan U. Hasecke Gesendet: Freitag, 25. Juni 2021 12:23 An: ntg-context@ntg.nl Betreff: Re: [NTG-context] Align in setup header/footer Hi Denis,
Am 25.06.21 um 09:50 schrieb denis.maier@unibe.ch:
Or, for more complex footers/headers you can use: \setupfootertexts [left on odd page] % out [right on odd page] % in [right on even page] % in [left on even page] % out
In fact it is something like this
\setupfootertexts [margin] [] [\pagenumber] [\pagenumber] []
I want to align the number inside of this area to the right or the left respectively.
I only found setuplayouttext to style the area, except that there is no key "align".
juh ________________________________________________________________ ___________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ________________________________________________________________ ___________________
![](https://secure.gravatar.com/avatar/532990f0c5a8331f60e3d0e1173292a6.jpg?s=120&d=mm&r=g)
but you'll perhaps have to put the stuff inside a hbox first \definehbox[pagenumber][12.5mm] \setupfootertexts [] [{\getmarking[chapter]}\hboxpagenumber{\hfill\pagenumber}] [\hboxpagenumber{\pagenumber\hfill}{\getmarking[part]}] []
-----Ursprüngliche Nachricht----- Von: Maier, Denis Christian (UB) Gesendet: Freitag, 25. Juni 2021 12:31 An: ntg-context@ntg.nl Betreff: AW: [NTG-context] Align in setup header/footer
You can use \hfill
-----Ursprüngliche Nachricht----- Von: ntg-context
Im Auftrag von Jan U. Hasecke Gesendet: Freitag, 25. Juni 2021 12:23 An: ntg-context@ntg.nl Betreff: Re: [NTG-context] Align in setup header/footer Hi Denis,
Am 25.06.21 um 09:50 schrieb denis.maier@unibe.ch:
Or, for more complex footers/headers you can use: \setupfootertexts [left on odd page] % out [right on odd page] % in [right on even page] % in [left on even page] % out
In fact it is something like this
\setupfootertexts [margin] [] [\pagenumber] [\pagenumber] []
I want to align the number inside of this area to the right or the left respectively.
I only found setuplayouttext to style the area, except that there is no key "align".
juh
________________________________________________________________
___________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net
________________________________________________________________
___________________
![](https://secure.gravatar.com/avatar/2349dcb0bed02a89d589125ccc301859.jpg?s=120&d=mm&r=g)
Am 25.06.21 um 12:36 schrieb denis.maier@unibe.ch:
but you'll perhaps have to put the stuff inside a hbox first
\definehbox[pagenumber][12.5mm]
\setupfootertexts [] [{\getmarking[chapter]}\hboxpagenumber{\hfill\pagenumber}] [\hboxpagenumber{\pagenumber\hfill}{\getmarking[part]}] []
Thanks a lot. \hfill works but I'll keep the hbox in mind. juh
![](https://secure.gravatar.com/avatar/74d41c3215dcdd377343cdc47311757c.jpg?s=120&d=mm&r=g)
denis.maier@unibe.ch schrieb am 25.06.2021 um 12:36:
but you'll perhaps have to put the stuff inside a hbox first
\definehbox[pagenumber][12.5mm]
\setupfootertexts [] [{\getmarking[chapter]}\hboxpagenumber{\hfill\pagenumber}] [\hboxpagenumber{\pagenumber\hfill}{\getmarking[part]}] []
\setuppagenumbering [alternative=doublesided] \setupfootertexts [margin] [\leftaligned {A}] [\rightaligned{B}] [\leftaligned {C}] [\rightaligned{D}] \setuplayout [backspace=4cm, width=12cm] \showframe \starttext \dorecurse{4}{\dontleavehmode\page} \stoptext Wolfgang
participants (3)
-
denis.maier@unibe.ch
-
Jan U. Hasecke
-
Wolfgang Schuster