From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/59030 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Lost document background Date: Mon, 24 May 2010 10:48:25 +0200 Message-ID: <4BFA3D59.9020605@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1274690929 22010 80.91.229.12 (24 May 2010 08:48:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 24 May 2010 08:48:49 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon May 24 10:48:47 2010 connect(): No such file or directory Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OGTL5-0003EO-4f for gctc-ntg-context-518@m.gmane.org; Mon, 24 May 2010 10:48:47 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B3C88C9C71; Mon, 24 May 2010 10:48:46 +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 T5Cu5B3cLQlW; Mon, 24 May 2010 10:48:40 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 97F51C9C5C; Mon, 24 May 2010 10:48:40 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CB17DC9C5C for ; Mon, 24 May 2010 10:48:39 +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 tLii10dPbjMr for ; Mon, 24 May 2010 10:48:28 +0200 (CEST) Original-Received: from mail-bw0-f41.google.com (mail-bw0-f41.google.com [209.85.214.41]) by balder.ntg.nl (Postfix) with ESMTP id AF651C9C50 for ; Mon, 24 May 2010 10:48:28 +0200 (CEST) Original-Received: by bwz2 with SMTP id 2so911189bwz.14 for ; Mon, 24 May 2010 01:48:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=BPqZGwYI7HMYvD4cpEWEF9zlUr6FMUq5VfV5R9UV3FM=; b=gFEV+MsG3vvToosu7aL5hm9Yyc/rLUzdfjDDeBc9vUX6fCcpb78yse4pIr8e8NGy0u fOY3B5/9g3BHKkc4MS9KtKwlB9+Ze790UQymV31g4T1APlmw9ZcJFbW508T6Bd9zumnV l8S3AUgPRinoQps+KlwjIcxAQyIfKveZNCnYg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=wMbXvtwyfX0KLdPEtk3JimwykB+XKed4m+sHthjAnaAfUOHUdPRNlZdBRu2UDLROEb IEugmx+tBjlu1RIVGAxOaUyk9Z3/DLW+GdCP5ock+s8A3W2laPYPWDKz6m8HhKtmTJ2J nr4hYqRnjmTf85VMMjoa8eLOtOEPJPpr0UVhM= Original-Received: by 10.204.39.204 with SMTP id h12mr1954603bke.196.1274690908018; Mon, 24 May 2010 01:48:28 -0700 (PDT) Original-Received: from [192.168.2.23] (p5B293602.dip.t-dialin.net [91.41.54.2]) by mx.google.com with ESMTPS id s17sm18163020bkd.16.2010.05.24.01.48.26 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 24 May 2010 01:48:26 -0700 (PDT) User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:59030 Archived-At: Hi Hans, under certain circumstances document backgrounds (overlays) are lost. A minimum real live example is this: \definelayer[test] \setuppagenumbering[alternative=doublesided] \setupmakeup[standard][doublesided=empty] % background is lost %\setupmakeup[standard][doublesided=yes] % background is visible \startsetups[test] \setlayer[test][hoffset=4cm,voffset=7cm]{\tfd text} \stopsetups \setupbackgrounds[page][background=test,setups=test] \starttext \startstandardmakeup text \stopstandardmakeup test \stoptext With 'doublesided=yes' the background is visible but with 'doublesided=empty' no background is shown. I spend a few hours to find the reason for this and i was able to produce a shorter example: \defineoverlay[test][\tfd text] \setupbackgrounds[page][background=test,state=repeat] \starttext text\page\page[blank]\null\page %\chardef\pageornamentstate\zerocount text \stoptext The problem is that '\page[blank]' sets \pageornamentstate at global level to '1'. 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 ___________________________________________________________________________________