From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/77488 Path: news.gmane.org!not-for-mail From: Marco Newsgroups: gmane.comp.tex.context Subject: Re: two questions for the simplest slides Date: Sat, 21 Jul 2012 21:21:02 +0200 Message-ID: <20120721212102.5c75bc34@homerow> References: <500AF9E1.2010007@web.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1342898490 18949 80.91.229.3 (21 Jul 2012 19:21:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 21 Jul 2012 19:21:30 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sat Jul 21 21:21:30 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SsfF2-00062X-P6 for gctc-ntg-context-518@m.gmane.org; Sat, 21 Jul 2012 21:21:28 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E8C16101F3; Sat, 21 Jul 2012 21:21:27 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id zDQApa9KkLCO; Sat, 21 Jul 2012 21:21:26 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 67CD2101DF; Sat, 21 Jul 2012 21:21:26 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 27C80101DF for ; Sat, 21 Jul 2012 21:21:25 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id qVYXVG8q5Py0 for ; Sat, 21 Jul 2012 21:21:24 +0200 (CEST) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id 09BB4101DD for ; Sat, 21 Jul 2012 21:21:23 +0200 (CEST) Original-Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q6LJLMTg021051 for ; Sat, 21 Jul 2012 21:21:23 +0200 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SsfEt-0005t3-AS for ntg-context@ntg.nl; Sat, 21 Jul 2012 21:21:19 +0200 Original-Received: from 83.68.239.193 ([83.68.239.193]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 21 Jul 2012 21:21:19 +0200 Original-Received: from netuse by 83.68.239.193 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 21 Jul 2012 21:21:19 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 32 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 83.68.239.193 X-Newsreader: Claws Mail 3.8.0cvs55 (GTK+ 2.24.10; x86_64-pc-linux-gnu) X-Bayes-Prob: 0.9055 (Score 4.2, tokens from: @@RPTN) X-CanIt-Geo: ip=80.91.229.3; country=NO; latitude=62.0000; longitude=10.0000; http://maps.google.com/maps?q=62.0000,10.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0VHB7ln7Q - 9dbec7a2601c - 20120721 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:77488 Archived-At: Hi Pablo, for each defined colour there is a command that can be called to switch. \centerbox centres the text vertically. It is not the most elegant solution, but the following does what you asked for. \setuppapersize [S6] [S6] \setuppagenumber [state=stop] \setupbackgrounds [page] [background=color] \define[1]\setpagecolor {\setupbackgrounds[page][backgroundcolor=#1]} \setupalign [middle] \starttext \setpagecolor{blue} \yellow \centerbox{Page is blue and text is yellow.} \stoptext Marco ___________________________________________________________________________________ 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 ___________________________________________________________________________________