Re: [NTG-context] \doifemptyelse

2014-02-22 Thread Pablo Rodriguez
On 02/20/2014 11:23 PM, Wolfgang Schuster wrote: Am 20.02.2014 um 23:09 schrieb Pablo Rodriguez oi...@gmx.es: [...] Only a minor detail: is there a more proper way to center both headings? You can use the simple version of \setupheadertexts and use \doifoddpageelse to check whether you’re

Re: [NTG-context] \doifemptyelse

2014-02-22 Thread Pablo Rodriguez
On 02/20/2014 11:32 PM, Thangalin wrote: Have you looked at: http://wiki.contextgarden.net/Headers_and_Footers#Marginal_headings_and_centered_headings ? Many thanks for your reply, Thagalin. I even compiled the sample code, but I hadn’t understood how the \setupheadertexts worked with a

Re: [NTG-context] \doifemptyelse

2014-02-20 Thread Wolfgang Schuster
Am 20.02.2014 um 21:12 schrieb Pablo Rodriguez oi...@gmx.es: Dear list, I have the following sample: \starttext \chapter{Chapter} .\doifemptyelse{\getmarking[section][current]} {\getmarking[chapter][current]} {\getmarking[section][current]}. \section{Section}

Re: [NTG-context] \doifemptyelse

2014-02-20 Thread Pablo Rodriguez
On 02/20/2014 09:39 PM, Wolfgang Schuster wrote: Am 20.02.2014 um 21:12 schrieb Pablo Rodriguez: [...] How can I make the first conditional work? You can’t, markings are only reliable when you use them in the header of footer of the page. To access the values of a heading you can use the

Re: [NTG-context] \doifemptyelse

2014-02-20 Thread Wolfgang Schuster
Am 20.02.2014 um 23:09 schrieb Pablo Rodriguez oi...@gmx.es: On 02/20/2014 09:39 PM, Wolfgang Schuster wrote: Am 20.02.2014 um 21:12 schrieb Pablo Rodriguez: [...] How can I make the first conditional work? You can’t, markings are only reliable when you use them in the header of footer

Re: [NTG-context] \doifemptyelse

2014-02-20 Thread Thangalin
Have you looked at: http://wiki.contextgarden.net/Headers_and_Footers#Marginal_headings_and_centered_headings ? ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist :