From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/65714 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: showing and hiding layers Date: Tue, 1 Feb 2011 09:58:39 +0100 Message-ID: <388DD2AD-9875-42A7-847B-00B41D8DB6F9@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1296550865 19713 80.91.229.12 (1 Feb 2011 09:01:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 1 Feb 2011 09:01:05 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Feb 01 10:01:01 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 1PkC6e-0007K7-VO for gctc-ntg-context-518@m.gmane.org; Tue, 01 Feb 2011 10:01:01 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6C6CCCA977; Tue, 1 Feb 2011 10:01:00 +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 i4kCj9Mazblg; Tue, 1 Feb 2011 10:00:57 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AB69CCA952; Tue, 1 Feb 2011 10:00:57 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9E6C1CA952 for ; Tue, 1 Feb 2011 10:00:55 +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 NPZch4bij6xD for ; Tue, 1 Feb 2011 10:00:53 +0100 (CET) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id 7461ECA94E for ; Tue, 1 Feb 2011 10:00:53 +0100 (CET) Original-Received: from mail-bw0-f41.google.com (mail-bw0-f41.google.com [209.85.214.41]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p1190q3V008340 for ; Tue, 1 Feb 2011 10:00:52 +0100 Original-Received: by bwz16 with SMTP id 16so6637702bwz.14 for ; Tue, 01 Feb 2011 01:00:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id:references:to :x-mailer; bh=pPpw/4BI6UfSZhfw12zwxFhIPwwvP3ilFOeRe9wgqA0=; b=j7qvSf70AKgq2eXLZc1tZCl1ldrOWhXzWlBf90ilM3qiD0gkNqPfKtE9XSaPmOUaYB zVgHG6u3wa8/s8B7YiyDKEnF/+bG57VGPbMUYo3o4KOfl9fC4IQBsnUCUNxMojctAXtf 76tvWXpTXIIUwXxL8dyPapwQRW4YAnA3+qPtE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=U12tG2RSgaeBuBkpVwJ7lqukRZW7EIfj06+xnZwX2W9rRTYascMvz57xgRuHdfXdFd I2pjabzqD3LtkpK/1YqILRaFvXeMgXeXle6y+412jwiyZmy1eyUuXB9sbeoPRIOWK3CD 2Eift96oOA0pARWe9qbF/s7zwtxp/LopOvoMM= Original-Received: by 10.204.116.206 with SMTP id n14mr6308147bkq.65.1296550851970; Tue, 01 Feb 2011 01:00:51 -0800 (PST) Original-Received: from [192.168.2.23] (p5B2948EC.dip.t-dialin.net [91.41.72.236]) by mx.google.com with ESMTPS id z18sm8573479bkf.20.2011.02.01.01.00.49 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 01 Feb 2011 01:00:50 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.1082) 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: 08E2x0QAy - f37911333193 - 20110201 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 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:65714 Archived-At: Am 31.01.2011 um 16:37 schrieb Skip Collins: > 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? In MkIV \startproperty is obsolete and you should use \startviewerlayer: \defineviewerlayer[letterhead] \definelayer [letterhead] [width=\paperwidth, height=\paperheight] \setlayer [letterhead] [x=1in, y=0.5in] {\startviewerlayer[letterhead]% LetterHeadMark \stopviewerlayer} \setupbackgrounds[page][background=letterhead] \starttext Hello, World! \stoptext 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 ___________________________________________________________________________________