> Am 02.04.2015 um 17:12 schrieb John Culleton <j...@wexfordpress.com>:
> 
> On Thu, 02 Apr 2015 15:10:19 +0200
> Procházka Lukáš Ing. - Pontex s. r. o.
> <l...@pontex.cz <mailto:l...@pontex.cz>> wrote:
> 
>> Hello,
>> 
>> On Thu, 02 Apr 2015 14:46:11 +0200, Otared
>> Kavian <ota...@gmail.com> wrote:
>> 
>>> Hi,
>>> 
>>> Maybe you need to say state=repeat in the
>>> definition of your layer:
>>> 
>>>     \definelayer[chapterbackground][state=repeat]
>> 
>> '[state=repeat]' causes all pages have the
>> 'mill' background.
>> 
>> Best regards,
>> 
>> Lukas
>> 
>> 
> 
> I am not seeking a background but rather a
> foreground. And I only need this for 7 chapter
> heads. Here is how I put the page image into my
> context file now:
> -------------------------------------------------
> \startstandardmakeup[doublesided=no]
> \vskip -0.15in
> \hskip -0.7in
> \hbox{\externalfigure[chaphead2.pdf][width=\paperwidth,
> height=\paperheight]} \stopstandardmakeup
> \writetolist[chapter]{2}{Chapter 2: Understanding
> the Food Industry}%
> ------------------------------------------------
> This works but I want a less fiddly-more
> reliable method.  

\setupexternalfigures[location=default]

\definelayer[chaptertext][width=\paperwidth,height=\paperheight]

\define[2]\ChapterCommand
  {\setlayerframed
     [chaptertext]
     [x=3cm,
      y=8cm]
         [frame=off]
     {#1 – #2}}

\definemakeup[chapterpage][page]

\setupmakeup
  [chapterpage]
  [pagestate=start,
      before={\setupbackgrounds[page][background=chapterimage]},
      bottom={\placelayer[chaptertext]}]

\defineoverlay[chapterimage][\overlayfigure{\structureuservariable{image}}]

\setuphead
  [chapter]
  [   before={\startmakeup[chapterpage]},
    %command=\ChapterCommand,
   placehead=empty,
       after={\stopmakeup}]

\setuphead
  [title]
  [ before={\blank[big]},
     after={\blank[2*big]},
   command=]

\starttext

\completecontent

\startchapter[title={Understanding the Food Industry}][image=mill.png]

\input knuth

\stopchapter

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to