Re: [NTG-context] placing content in footers
On Sun, 12 May 2019 18:19:54 +0200 Pablo Rodriguez 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 ___
Re: [NTG-context] placing content in footers
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 ___
Re: [NTG-context] placing content in footers
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 ___
Re: [NTG-context] placing content in footers
Am 2019-05-11 um 19:40 schrieb Henning Hraban Ramm : > Am 2019-05-11 um 16:35 schrieb Pablo Rodriguez : > >> 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 ___
Re: [NTG-context] placing content in footers
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 ___
Re: [NTG-context] placing content in footers
Am 2019-05-11 um 16:35 schrieb Pablo Rodriguez : > 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 ___