ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Align in setup header/footer
@ 2021-06-25  7:24 Jan U. Hasecke
  2021-06-25  7:50 ` denis.maier
  0 siblings, 1 reply; 8+ messages in thread
From: Jan U. Hasecke @ 2021-06-25  7:24 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Align in setup header/footer
  2021-06-25  7:24 Align in setup header/footer Jan U. Hasecke
@ 2021-06-25  7:50 ` denis.maier
  2021-06-25  7:55   ` denis.maier
  2021-06-25 10:23   ` Jan U. Hasecke
  0 siblings, 2 replies; 8+ messages in thread
From: denis.maier @ 2021-06-25  7:50 UTC (permalink / raw)
  To: ntg-context

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 <ntg-context-bounces@ntg.nl> Im Auftrag von Jan U. Hasecke
> Gesendet: Freitag, 25. Juni 2021 09:25
> An: mailing list for ConTeXt users <ntg-context@ntg.nl>
> 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Align in setup header/footer
  2021-06-25  7:50 ` denis.maier
@ 2021-06-25  7:55   ` denis.maier
  2021-06-25 10:23   ` Jan U. Hasecke
  1 sibling, 0 replies; 8+ messages in thread
From: denis.maier @ 2021-06-25  7:55 UTC (permalink / raw)
  To: ntg-context

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 <ntg-context-bounces@ntg.nl> 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 <ntg-context-bounces@ntg.nl> Im Auftrag von Jan U.
> > Hasecke
> > Gesendet: Freitag, 25. Juni 2021 09:25
> > An: mailing list for ConTeXt users <ntg-context@ntg.nl>
> > 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
> ________________________________________________________________
> ___________________
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Align in setup header/footer
  2021-06-25  7:50 ` denis.maier
  2021-06-25  7:55   ` denis.maier
@ 2021-06-25 10:23   ` Jan U. Hasecke
  2021-06-25 10:31     ` denis.maier
  1 sibling, 1 reply; 8+ messages in thread
From: Jan U. Hasecke @ 2021-06-25 10:23 UTC (permalink / raw)
  To: ntg-context


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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Align in setup header/footer
  2021-06-25 10:23   ` Jan U. Hasecke
@ 2021-06-25 10:31     ` denis.maier
  2021-06-25 10:36       ` denis.maier
  0 siblings, 1 reply; 8+ messages in thread
From: denis.maier @ 2021-06-25 10:31 UTC (permalink / raw)
  To: ntg-context

You can use \hfill

> -----Ursprüngliche Nachricht-----
> Von: ntg-context <ntg-context-bounces@ntg.nl> 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
> ________________________________________________________________
> ___________________
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Align in setup header/footer
  2021-06-25 10:31     ` denis.maier
@ 2021-06-25 10:36       ` denis.maier
  2021-06-25 11:15         ` Jan U. Hasecke
  2021-06-25 11:19         ` Wolfgang Schuster
  0 siblings, 2 replies; 8+ messages in thread
From: denis.maier @ 2021-06-25 10:36 UTC (permalink / raw)
  To: ntg-context

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 <ntg-context-bounces@ntg.nl> 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
> >
> ________________________________________________________________
> > ___________________
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Align in setup header/footer
  2021-06-25 10:36       ` denis.maier
@ 2021-06-25 11:15         ` Jan U. Hasecke
  2021-06-25 11:19         ` Wolfgang Schuster
  1 sibling, 0 replies; 8+ messages in thread
From: Jan U. Hasecke @ 2021-06-25 11:15 UTC (permalink / raw)
  To: ntg-context

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

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Align in setup header/footer
  2021-06-25 10:36       ` denis.maier
  2021-06-25 11:15         ` Jan U. Hasecke
@ 2021-06-25 11:19         ` Wolfgang Schuster
  1 sibling, 0 replies; 8+ messages in thread
From: Wolfgang Schuster @ 2021-06-25 11:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-06-25 11:19 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-25  7:24 Align in setup header/footer Jan U. Hasecke
2021-06-25  7:50 ` denis.maier
2021-06-25  7:55   ` denis.maier
2021-06-25 10:23   ` Jan U. Hasecke
2021-06-25 10:31     ` denis.maier
2021-06-25 10:36       ` denis.maier
2021-06-25 11:15         ` Jan U. Hasecke
2021-06-25 11:19         ` Wolfgang Schuster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).