[NTG-context] background problem with layers

Peter Rolf indiego at gmx.net
Mon Jul 22 13:32:45 CEST 2019


Hi,

I have a problem with a not printed color background when using layers.
Small test file is attached.

ConTeXt version: 2019.07.16 18:23


Peter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.pdf
Type: application/pdf
Size: 10459 bytes
Desc: not available
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20190722/3cf568ed/attachment.pdf>
-------------- next part --------------
\defineframed[framedclass][
	foregroundcolor=black,	foregroundstyle=\bfa,
	backgroundcolor=darkgray, background=color,
	backgroundoffset=1mm,
	backgroundcorner=round, backgroundradius=1mm,
	frame=on, framecolor=black,
]

\definelayer[foo][width=\the\paperwidth, height=\the\paperheight, state=repeat]
\setlayer[foo][x=70mm, y=40mm]
	{\framedclass{no style here}}

\setupbackgrounds[paper][background={foo}]


\starttext
\framedclass{works fine}
\setlayer[foo][x=40mm, y=70mm]
	{\framedclass{no background here}}
\stoptext


More information about the ntg-context mailing list