From: Henning Hraban Ramm <texml@fiee.net>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Layers – when do they repeat?
Date: Thu, 1 Jul 2021 17:38:07 +0200 [thread overview]
Message-ID: <8100DDC3-7D36-4DF1-ACE1-317233D12BEB@fiee.net> (raw)
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
___________________________________________________________________________________
next reply other threads:[~2021-07-01 15:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-01 15:38 Henning Hraban Ramm [this message]
2021-07-21 17:16 ` Henning Hraban Ramm
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8100DDC3-7D36-4DF1-ACE1-317233D12BEB@fiee.net \
--to=texml@fiee.net \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).