From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/65709 Path: news.gmane.org!not-for-mail From: Skip Collins Newsgroups: gmane.comp.tex.context Subject: showing and hiding layers Date: Mon, 31 Jan 2011 10:37:11 -0500 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1296543803 19344 80.91.229.12 (1 Feb 2011 07:03:23 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 1 Feb 2011 07:03:23 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Tue Feb 01 08:03:19 2011 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 1PkAGl-0007vy-Q4 for gctc-ntg-context-518@m.gmane.org; Tue, 01 Feb 2011 08:03:19 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 125BCCA985; Tue, 1 Feb 2011 08:03:19 +0100 (CET) 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 fcTLVpeTQKCv; Tue, 1 Feb 2011 08:03:16 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F0DCFCA940; Tue, 1 Feb 2011 08:03:15 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 94ADDCA936 for ; Mon, 31 Jan 2011 16:37:16 +0100 (CET) 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 I1TJZrxiKuEL for ; Mon, 31 Jan 2011 16:37:14 +0100 (CET) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id A18D1CA88B for ; Mon, 31 Jan 2011 16:37:14 +0100 (CET) Original-Received: from mail-bw0-f41.google.com (mail-bw0-f41.google.com [209.85.214.41]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p0VFbC5v003659 for ; Mon, 31 Jan 2011 16:37:12 +0100 Original-Received: by bwz16 with SMTP id 16so5861730bwz.14 for ; Mon, 31 Jan 2011 07:37:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=Lgasw8zTkf6fr7tIXUxJ81MYWmpC25bub/1kFcbuFZQ=; b=Y0AK6cOyprZSsOM9rGBfgCShyQpVWrtMVIs5nHrIQ5LBK4cv0LLbuL2wpKaudNoGgf 7dSS3nix+LyVkNzU8QO9KReAGMWxryIVf3WvSGRJ0MVoCxdPcvUiSArS07kBRGWijIUt a4md9sI/d4r4t+JFlsorK3eMIklAbbjehl9Ho= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=S9KlIGCLzZB3pfgn825zGXaiM1JVOA8hdAW2sDoJYiWAIOS78XVEMA4kCb7fSqsxZM JgdvU7bJAHEyv25Gi2UjLC33rOLyNTqKtnHS9n7XljsQEyKx4RXxpVpt4gfqUTB02LPe JxMV5mlqJdIj2p07YxVyZbfYducwMvDFaJHq0= Original-Received: by 10.204.32.216 with SMTP id e24mr5443353bkd.204.1296488231950; Mon, 31 Jan 2011 07:37:11 -0800 (PST) Original-Received: by 10.204.63.18 with HTTP; Mon, 31 Jan 2011 07:37:11 -0800 (PST) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06E2fBcjz - d54547a34a89 - 20110131 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 X-Mailman-Approved-At: Tue, 01 Feb 2011 08:03:14 +0100 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:65709 Archived-At: I am trying to create a layer to contain letterhead graphics. I would like the letterhead to appear by default when a pdf is opened and printed. But I would also like to be able to hide the letterhead layer in Acrobat when printing on pre-printed paper. My simplistic, always-displayed letterhead looks like: %%% start code %%% \definelayer[letterhead] [x=0in,y=0in,width=\paperwidth,height=\paperheight,state=start] \setlayer[letterhead] [hoffset=1in,voffset=0.5in] {LetterHeadMark} \setupbackgrounds[page][background={letterhead}] \starttext Hello, World! \stoptext %%% stop code %%% But there is no obvious way to turn this off when printing. Contextgarden suggests using \defineproperty to create a pdf layer. I can show and hide this layer in acrobat, but it always opens up hidden. I am also not sure how to place the letterhead exactly on the page using this method. Any suggestions? ___________________________________________________________________________________ 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 ___________________________________________________________________________________