ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* placing content in footers
@ 2019-05-11 14:35 Pablo Rodriguez
  2019-05-11 17:40 ` Henning Hraban Ramm
  2019-05-11 18:26 ` Wolfgang Schuster
  0 siblings, 2 replies; 7+ messages in thread
From: Pablo Rodriguez @ 2019-05-11 14:35 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear list,

I have the following sample:

    \setuppapersize[A8]
    \setuppagenumbering
        [alternative=doublesized]
    \setupfootertexts
        [even-right]
        [even-left]
        [odd-right]
        [odd-left]
        %~ [even-middle]
        %~ [odd-middle]
    \starttext
    \mbox{}\page\mbox{}
    \stoptext

Is there any way to place content in the middle of doublesided footers,
besides left and right contents?

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
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] 7+ messages in thread

* Re: placing content in footers
  2019-05-11 14:35 placing content in footers Pablo Rodriguez
@ 2019-05-11 17:40 ` Henning Hraban Ramm
  2019-05-12 12:30   ` Henning Hraban Ramm
  2019-05-11 18:26 ` Wolfgang Schuster
  1 sibling, 1 reply; 7+ messages in thread
From: Henning Hraban Ramm @ 2019-05-11 17:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 2019-05-11 um 16:35 schrieb Pablo Rodriguez <oinos@gmx.es>:

> Dear list,
> 
> I have the following sample:
> 
>    \setuppapersize[A8]
>    \setuppagenumbering
>        [alternative=doublesized]
>    \setupfootertexts
>        [even-right]
>        [even-left]
>        [odd-right]
>        [odd-left]
>        %~ [even-middle]
>        %~ [odd-middle]
>    \starttext
>    \mbox{}\page\mbox{}
>    \stoptext
> 
> Is there any way to place content in the middle of doublesided footers,
> besides left and right contents?

\setuppagenumbering[alternative=doublesided]
\setupheadertexts[]
\setupheadertexts[\setups{text right}][][][\setups{text left}]

\startsetups[text right]
  \rlap{\pagenumber}
  \hfill
  \getmarking[chapter]
  \hfill
  \llap{Un Nom}
\stopsetups

\startsetups[text left]
  \rlap{Una Person}
  \hfill
  \getmarking[section]
  \hfill
  \llap{\pagenumber}
\stopsetups



Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD

___________________________________________________________________________________
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] 7+ messages in thread

* Re: placing content in footers
  2019-05-11 14:35 placing content in footers Pablo Rodriguez
  2019-05-11 17:40 ` Henning Hraban Ramm
@ 2019-05-11 18:26 ` Wolfgang Schuster
  2019-05-12 16:19   ` Pablo Rodriguez
  1 sibling, 1 reply; 7+ messages in thread
From: Wolfgang Schuster @ 2019-05-11 18:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Pablo Rodriguez

Pablo Rodriguez schrieb am 11.05.2019 um 16:35:
> Dear list,
>
> I have the following sample:
>
>      \setuppapersize[A8]
>      \setuppagenumbering
>          [alternative=doublesized]
>      \setupfootertexts
>          [even-right]
>          [even-left]
>          [odd-right]
>          [odd-left]
>          %~ [even-middle]
>          %~ [odd-middle]
>      \starttext
>      \mbox{}\page\mbox{}
>      \stoptext
Where did you learn to use \mbox?
> Is there any way to place content in the middle of doublesided footers,
> besides left and right contents?
\setuppagenumbering
   [alternative=doublesided]

\setupfootertexts
   [\doifoddpageelse{right page}{left page}]

\setupfootertexts
   [inner margin] [outer margin]
   [outer margin] [inner margin]

\starttext
%\dorecurse{2}{\dontleavehmode\page}
\dorecurse{2}{\page[dummy]}
\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] 7+ messages in thread

* Re: placing content in footers
  2019-05-11 17:40 ` Henning Hraban Ramm
@ 2019-05-12 12:30   ` Henning Hraban Ramm
  2019-05-12 16:33     ` Pablo Rodriguez
  0 siblings, 1 reply; 7+ messages in thread
From: Henning Hraban Ramm @ 2019-05-12 12:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 2019-05-11 um 19:40 schrieb Henning Hraban Ramm <texml@fiee.net>:

> Am 2019-05-11 um 16:35 schrieb Pablo Rodriguez <oinos@gmx.es>:
> 
>> Dear list,
>> 
>> I have the following sample:
>> 
>>   \setuppapersize[A8]
>>   \setuppagenumbering
>>       [alternative=doublesized]
>>   \setupfootertexts
>>       [even-right]
>>       [even-left]
>>       [odd-right]
>>       [odd-left]
>>       %~ [even-middle]
>>       %~ [odd-middle]
>>   \starttext
>>   \mbox{}\page\mbox{}
>>   \stoptext
>> 
>> Is there any way to place content in the middle of doublesided footers,
>> besides left and right contents?
> 
> \setuppagenumbering[alternative=doublesided]
> \setupheadertexts[]
> \setupheadertexts[\setups{text right}][][][\setups{text left}]
> 
> \startsetups[text right]
>  \rlap{\pagenumber}
>  \hfill
>  \getmarking[chapter]
>  \hfill
>  \llap{Un Nom}
> \stopsetups
> 
> \startsetups[text left]
>  \rlap{Una Person}
>  \hfill
>  \getmarking[section]
>  \hfill
>  \llap{\pagenumber}
> \stopsetups

Sorry, I didn’t take time to comment on that example – of course it’s about headers not footers (they work the same) and shows a way to spread three pieces of text instead just centering one, which is much easier.


Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD

___________________________________________________________________________________
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] 7+ messages in thread

* Re: placing content in footers
  2019-05-11 18:26 ` Wolfgang Schuster
@ 2019-05-12 16:19   ` Pablo Rodriguez
  2019-05-12 22:15     ` Alan Braslau
  0 siblings, 1 reply; 7+ messages in thread
From: Pablo Rodriguez @ 2019-05-12 16:19 UTC (permalink / raw)
  To: ntg-context

On 5/11/19 8:26 PM, Wolfgang Schuster wrote:
> Pablo Rodriguez schrieb am 11.05.2019 um 16:35:
>> [...]
>>      \mbox{}\page\mbox{}
>
> Where did you learn to use \mbox?

I don’t remember (probably in my LaTeX times, before moving to ConTeXt).

I know that you don’t like it, but I didn’t know about \page[dummy].

>> Is there any way to place content in the middle of doublesided footers,
>> besides left and right contents?
> \setuppagenumbering
>    [alternative=doublesided]
>
> \setupfootertexts
>    [\doifoddpageelse{right page}{left page}]
>
> \setupfootertexts
>    [inner margin] [outer margin]
>    [outer margin] [inner margin]

Many thanks for your help. I didn’t know that \setupfootertexts could be
invoked twice.

Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
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] 7+ messages in thread

* Re: placing content in footers
  2019-05-12 12:30   ` Henning Hraban Ramm
@ 2019-05-12 16:33     ` Pablo Rodriguez
  0 siblings, 0 replies; 7+ messages in thread
From: Pablo Rodriguez @ 2019-05-12 16:33 UTC (permalink / raw)
  To: ntg-context

On 5/12/19 2:30 PM, Henning Hraban Ramm wrote:
> Am 2019-05-11 um 19:40 schrieb Henning Hraban Ramm:
>> Am 2019-05-11 um 16:35 schrieb Pablo Rodriguez:
>>> [...]
>>> Is there any way to place content in the middle of doublesided footers,
>>> besides left and right contents?
>>
>> \setuppagenumbering[alternative=doublesided]
>> \setupheadertexts[]
>> \setupheadertexts[\setups{text right}][][][\setups{text left}]
>>
>> \startsetups[text right]
>>  \rlap{\pagenumber}
>>  \hfill
>>  \getmarking[chapter]
>>  \hfill
>>  \llap{Un Nom}
>> \stopsetups
>>
>> \startsetups[text left]
>>  \rlap{Una Person}
>>  \hfill
>>  \getmarking[section]
>>  \hfill
>>  \llap{\pagenumber}
>> \stopsetups
>
> Sorry, I didn’t take time to comment on that example – of course it’s
> about headers not footers (they work the same) and shows a way to
> spread three pieces of text instead just centering one, which is much
> easier.

Many thanks for your reply, Hraban.

Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
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] 7+ messages in thread

* Re: placing content in footers
  2019-05-12 16:19   ` Pablo Rodriguez
@ 2019-05-12 22:15     ` Alan Braslau
  0 siblings, 0 replies; 7+ messages in thread
From: Alan Braslau @ 2019-05-12 22:15 UTC (permalink / raw)
  To: Pablo Rodriguez; +Cc: mailing list for ConTeXt users

On Sun, 12 May 2019 18:19:54 +0200
Pablo Rodriguez <oinos@gmx.es> wrote:

> >>      \mbox{}\page\mbox{}  
> >
> > Where did you learn to use \mbox?  
> 
> I don’t remember (probably in my LaTeX times, before moving to
> ConTeXt).

The use of \mbox{} is a classic LaTeX hack...

--
Alan
___________________________________________________________________________________
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] 7+ messages in thread

end of thread, other threads:[~2019-05-12 22:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-11 14:35 placing content in footers Pablo Rodriguez
2019-05-11 17:40 ` Henning Hraban Ramm
2019-05-12 12:30   ` Henning Hraban Ramm
2019-05-12 16:33     ` Pablo Rodriguez
2019-05-11 18:26 ` Wolfgang Schuster
2019-05-12 16:19   ` Pablo Rodriguez
2019-05-12 22:15     ` Alan Braslau

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).