[NTG-context] Repeat backgrounds on slides
Wolfgang Schuster
wolfgang.schuster.lists at gmail.com
Thu Feb 13 20:39:30 CET 2020
On Thu, 13 Feb 2020 09:19:10 +0100
juh <juh+ntg-context at mailbox.org> wrote:
> Hi all,
>
> I am a little bit confused as I never had this problem, although I often use
> backgrounds and layers.
>
> \definelayer[bg:hs2020-mond]
> [x=0, y=0, width=\paperwidth, height=\paperheight]
>
> \setlayer[bg:hs2020-mond]
> [x=0mm, y=0mm]
> {\externalfigure[background.jpg][height=\paperwidth]}
>
> Ususally I call the background after a head command like \starttitle or when I
> create slides like this
>
> \startslide[title={foobar}]
> \setupbackgrounds[page][background=bg:hs2020-mond]
> ...
> \stopslide
>
> The problem is that I cannot call the background on another slide.
> It seems as if the layer is gone after the first usage.
This is normal behaviour for layers but you can repeat it on every page with
\definelayer [bg:...] [state=repeat]
In your case a simple overlay is the simpler solution to get repeated images on every page, i.e.
\defineoverlay [bg:hs2020-mond] [{\externalfigure[background.jpg][height=\paperheight]}]
or
\defineoverlay [bg:hs2020-mond] [\overlayfigure{background.jpg}]
Wolfgang
More information about the ntg-context
mailing list