From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: overlay or layer for chapter head.
Date: Thu, 2 Apr 2015 19:07:18 +0200 [thread overview]
Message-ID: <77324F5F-6F8F-4BE4-948A-56122FED1207@gmail.com> (raw)
In-Reply-To: <20150402111229.1c2996ca@localb.wexfordpress.net>
[-- Attachment #1.1: Type: text/plain, Size: 2107 bytes --]
> Am 02.04.2015 um 17:12 schrieb John Culleton <john@wexfordpress.com>:
>
> On Thu, 02 Apr 2015 15:10:19 +0200
> Procházka Lukáš Ing. - Pontex s. r. o.
> <LPr@pontex.cz <mailto:LPr@pontex.cz>> wrote:
>
>> Hello,
>>
>> On Thu, 02 Apr 2015 14:46:11 +0200, Otared
>> Kavian <otared@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
[-- Attachment #1.2: Type: text/html, Size: 18565 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2015-04-02 17:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-02 11:15 Robin.Kirkham
2015-04-02 12:46 ` Otared Kavian
2015-04-02 13:10 ` Procházka Lukáš Ing. - Pontex s. r. o.
2015-04-02 15:12 ` John Culleton
2015-04-02 17:07 ` Wolfgang Schuster [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-04-01 14:19 John Culleton
2015-04-01 19:37 ` Idris Samawi Hamid ادريس سماوي حامد
2015-04-01 20:39 ` Alan BRASLAU
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=77324F5F-6F8F-4BE4-948A-56122FED1207@gmail.com \
--to=schuster.wolfgang@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).