[NTG-context] \doifemptyelse issue?

2023-11-13 Thread Bruce Horrocks
The following MWE gives "false false" instead of "false true". I'm sure this used to work (18 months or more ago!) as I found it when re-processing an old document. ---start--- \setdataset [DS] [a=] \setdataset [DS] [a=] \starttext :\datasetvariable{DS}{1}{a}: \crlf

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

[NTG-context] \doifemptyelse

2014-02-20 Thread Pablo Rodriguez
Dear list, I have the following sample: \starttext \chapter{Chapter} .\doifemptyelse{\getmarking[section][current]} {\getmarking[chapter][current]} {\getmarking[section][current]}. \section{Section} .\doifemptyelse{\getmarking[section][current]} {\getmarking[chapter][current]}

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 :