# standardmakeup layer in ConTeXt

Need to place a PDF file as a watermark behind the title page and part break pages. These have been laid out using `\standardmakeup`. Have created the layer and can place it on a normal text page but cannot work out how to force it to work on the `\standardmakeup`. I have been using MkIV from TeXLive 2012.

Here is a minimal example of what I have tried so far

``````\startenvironment[Test]

% -- Title page setups
\definelayer[jikishin][position=no,repeat=no,width=\paperwidth,height=\paperheight]
\setlayerframed[jikishin][x=0cm,y=3cm]{\externalfigure[images/Jikishin.pdf][size=artbox]}

\setuppapersize             [A5][A5]

\setuppagenumbering
[alternative=doublesided]

\stopenvironment

\startfrontmatter  % --- here not sure how to get the layer activated
\startmakeup[title]
\title{Jikishin Ju Jitsu}
\stopmakeup
\stopfrontmatter

\startbodymatter
\chapter{Body of document}
\input knuth
\stopbodymatter
``````
-

The standard way to set a page background in ConTeXt is to use

``````\setupbackgrounds[page][background=....]
``````

To ensure that the background is restricted only to `titlemakeup` pages, use the `before` key of `\definemakeup`:

``````\definemakeup[title][...., before={\setupbackgrounds[page][background=...]}, ...]
``````

Here is a complete example (I use `cow.pdf` as a sample image)

``````\definelayer
[jikishin]
[
position=no,
repeat=no,
width=\paperwidth,
height=\paperheight,
]

\setlayerframed
[jikishin]
[x=0cm,y=3cm]
{\externalfigure[cow]}

\definemakeup
[title]
[
doublesided=no,
page=right,
footerstate=empty,
before=\setups{title:setups},
]

\startsetups title:setups
\setupbackgrounds[page][background=jikishin]
\stopsetups

\setuppapersize
[A5][A5]

\setuppagenumbering
[alternative=doublesided]

\starttext
\startfrontmatter  % --- here not sure how to get the layer activated
\starttitlemakeup
\title{Jikishin Ju Jitsu}
\stoptitlemakeup
\stopfrontmatter

\startbodymatter
\chapter{Body of document}
\input knuth
\stopbodymatter
\stoptext
``````
-
Works great! Didn't see the before=\setups option in the documentation or on ConTeXt Garden. Will try to add this there. –  Tim Sheasby Jan 2 '13 at 13:53
Almost all context setups accept a before option. –  Aditya Jan 3 '13 at 7:26