ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Turning off background(s)
@ 2005-04-20 19:59 John R. Culleton
  2005-04-21  8:27 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: John R. Culleton @ 2005-04-20 19:59 UTC (permalink / raw)


I wanted the title page to have a yellow background so I used:
\setupbackgrounds[page][state=start,background=color,backgroundcolor=yellow]
before \starttext.

After that one page I wanted to go back to no background, but I
am having trouble turning it off. Here is some of my code:
---------------------------------
\setupbackgrounds[page][state=start,background=color,backgroundcolor=yellow]
\starttext
\startfrontmatter
\startstandardmakeup
...(title page stuff)
\stopstandardmakeup 
\setupbackgrounds[page][state=stop]
------------------------
I get one white page and then everything goes back to yellow
again. How do I turn off the yellow background permanently?

-- 
John Culleton
Able Indexers and Typesetters
http://wexfordpress.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Turning off background(s)
  2005-04-20 19:59 Turning off background(s) John R. Culleton
@ 2005-04-21  8:27 ` Hans Hagen
  2005-04-22 10:40   ` Turning off background(s), additional John R. Culleton
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2005-04-21  8:27 UTC (permalink / raw)


John R. Culleton wrote:

> \setupbackgrounds[page][state=start,background=color,backgroundcolor=yellow]

\setupbackgrounds[page][background=color,backgroundcolor=yellow]

> \starttext
> \startfrontmatter
> \startstandardmakeup
> ...(title page stuff)
> \stopstandardmakeup 
> \setupbackgrounds[page][state=stop]

\setupbackgrounds[page][background=]

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Turning off background(s), additional.
  2005-04-21  8:27 ` Hans Hagen
@ 2005-04-22 10:40   ` John R. Culleton
  0 siblings, 0 replies; 3+ messages in thread
From: John R. Culleton @ 2005-04-22 10:40 UTC (permalink / raw)
  Cc: Hans Hagen

On Thursday 21 April 2005 08:27 am, Hans Hagen wrote:
> John R. Culleton wrote:
> > \setupbackgrounds[page][state=start,background=color,backgroundcolor=yell
> >ow]
>
> \setupbackgrounds[page][background=color,backgroundcolor=yellow]
>
> > \starttext
> > \startfrontmatter
> > \startstandardmakeup
> > ...(title page stuff)
> > \stopstandardmakeup
> > \setupbackgrounds[page][state=stop]
>
> \setupbackgrounds[page][background=]
>
> Hans

There was another little problem. I had created the background
before the \starttext statement. This made it global in nature. 
So when I got rid of it between \startfrontmatter and
\stopfrontmatter it was only abolished in that range of pages. 

Live and learn. I had thought that the tags for frontmatter etc were
just documentation but not so.

-- 
John Culleton
Able Indexers and Typesetters
http://wexfordpress.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-04-22 10:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-20 19:59 Turning off background(s) John R. Culleton
2005-04-21  8:27 ` Hans Hagen
2005-04-22 10:40   ` Turning off background(s), additional John R. Culleton

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).