* Layers – when do they repeat?
@ 2021-07-01 15:38 Henning Hraban Ramm
2021-07-21 17:16 ` Henning Hraban Ramm
0 siblings, 1 reply; 2+ messages in thread
From: Henning Hraban Ramm @ 2021-07-01 15:38 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi,
I’m struggling with layers again.
According to https://wiki.contextgarden.net/Layers and my previous experience, what you typeset on layers appears only once, while you don’t set repeat=yes.
But in my example (derived from a magazine layout where I use this margin layer for subtitles) the margin text is repeated on every page. Same behavior in current LMTX and MkIV.
What did I wrong? Or is it a bug? (The same setup didn’t cause repeats in 2019.)
Hraban
\usemodule[visual]
\setuplayout[
backspace=82mm,
width=118mm,
leftmargindistance=4mm,
leftmargin=57mm,
]
\definelayer[leftmargin][
x=0mm,y=3mm,
width=\leftmarginwidth,
height=\textheight
]
\setupbackgrounds[text][leftmargin][background=leftmargin,state=start]
\starttext
\setlayerframed[leftmargin][
frame=off,
offset=overlay,
width=\leftmarginwidth,
align={flushleft,verytolerant},
]{Why is this repeated on every page? It should not.}%
\dorecurse{20}{
\fakewords{20}{100}\par
}
\stoptext
___________________________________________________________________________________
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] 2+ messages in thread
* Re: Layers – when do they repeat?
2021-07-01 15:38 Layers – when do they repeat? Henning Hraban Ramm
@ 2021-07-21 17:16 ` Henning Hraban Ramm
0 siblings, 0 replies; 2+ messages in thread
From: Henning Hraban Ramm @ 2021-07-21 17:16 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi, this is still unresolved.
I worked around the unwanted repeating layer by resetting them explicitely after the first page, but that should not be necessary.
Hraban
> Am 01.07.2021 um 17:38 schrieb Henning Hraban Ramm <texml@fiee.net>:
>
> Hi,
> I’m struggling with layers again.
>
> According to https://wiki.contextgarden.net/Layers and my previous experience, what you typeset on layers appears only once, while you don’t set repeat=yes.
>
> But in my example (derived from a magazine layout where I use this margin layer for subtitles) the margin text is repeated on every page. Same behavior in current LMTX and MkIV.
>
> What did I wrong? Or is it a bug? (The same setup didn’t cause repeats in 2019.)
>
> Hraban
>
>
>
> \usemodule[visual]
>
> \setuplayout[
> backspace=82mm,
> width=118mm,
> leftmargindistance=4mm,
> leftmargin=57mm,
> ]
>
> \definelayer[leftmargin][
> x=0mm,y=3mm,
> width=\leftmarginwidth,
> height=\textheight
> ]
>
> \setupbackgrounds[text][leftmargin][background=leftmargin,state=start]
>
> \starttext
>
> \setlayerframed[leftmargin][
> frame=off,
> offset=overlay,
> width=\leftmarginwidth,
> align={flushleft,verytolerant},
> ]{Why is this repeated on every page? It should not.}%
>
> \dorecurse{20}{
> \fakewords{20}{100}\par
> }
>
> \stoptext
>
___________________________________________________________________________________
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] 2+ messages in thread
end of thread, other threads:[~2021-07-21 17:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-01 15:38 Layers – when do they repeat? Henning Hraban Ramm
2021-07-21 17:16 ` Henning Hraban Ramm
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).