Fabrice,
there is difference between putting something on the first page
regardless of the number of pages in your document or do something when
your document contains only a single or more pages.
When you have a header or title which is always placed on the first page
(but not on the follo
Fabrice Couvreur schrieb am 27.08.2021 um 10:04:
Hi Wolfgang,
This may not be nicest but seems to work
Fabrice
%%
\definelayout
[1]
[header=10mm]
\setuplayout
[header=0pt,
height=middle]
\setuppagenumbering
[alternative=doublesided,location=]
\setupbackgrounds
[hea
Fabrice Couvreur via ntg-context schrieb am 26.08.2021 um 19:06:
Hi,
Using this (almost what I'm trying to do) without success
[...]
\startsetups[header]
\doifelse{\totalnumberofpages}{1}
{\setupheadertexts[\setups{header}]}
{}
\stopsetups
This stores the page check in the setups environ
Hi,
Using this (but it's not exactly what I want) it works
test-1.tex %%
\setuppagenumbering
[alternative=doublesided,location=]
\definelayout
[1]
[header=10mm]
\setuplayout
[header=0pt,
height=middle]
\setupbackgrounds
[header]
[text]
[frame=off,bottomframe=on,
Taco Hoekwater via ntg-context schrieb am 26.08.2021 um 16:34:
Hi,
On 26 Aug 2021, at 16:07, Fabrice Couvreur via ntg-context
wrote:
Hi,
I know I asked the question a few years ago, but I don't remember !
The idea is to test whether the document contains only one page or not.
Perhaps not
Hi,
> On 26 Aug 2021, at 16:07, Fabrice Couvreur via ntg-context
> wrote:
>
> Hi,
> I know I asked the question a few years ago, but I don't remember !
> The idea is to test whether the document contains only one page or not.
Perhaps not the nicest solution, but this works:
\doifvalueelse
Hi,
I know I asked the question a few years ago, but I don't remember !
The idea is to test whether the document contains only one page or not.
If it contains only one page, the header is enabled.
If it contains several pages, the header is enabled only on the first page
but not on the others.
Than