ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: ntg-context@ntg.nl
Subject: Re: Repeat backgrounds on slides
Date: Thu, 13 Feb 2020 20:39:30 +0100	[thread overview]
Message-ID: <20200213203930.5d17a8e9d3b3ca6d8b77d8ea@gmail.com> (raw)
In-Reply-To: <20200213081910.GA11688@sokrates>

On Thu, 13 Feb 2020 09:19:10 +0100
juh <juh+ntg-context@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
___________________________________________________________________________________
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
___________________________________________________________________________________

  reply	other threads:[~2020-02-13 19:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-13  8:19 juh
2020-02-13 19:39 ` Wolfgang Schuster [this message]
2020-02-14  8:10   ` Jan U. Hasecke
2020-02-14 18:53     ` Wolfgang Schuster
2020-02-15 13:56       ` Jan U. Hasecke

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=20200213203930.5d17a8e9d3b3ca6d8b77d8ea@gmail.com \
    --to=wolfgang.schuster.lists@gmail.com \
    --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).