From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/87987 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Support for Optional Content Groups Date: Thu, 3 Jul 2014 18:33:42 +0200 Message-ID: References: <1111725488.140309.1404402933094.JavaMail.zimbra@pentandra.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1404405258 13955 80.91.229.3 (3 Jul 2014 16:34:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Jul 2014 16:34:18 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 03 18:34:14 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1X2jxd-0008Lg-42 for gctc-ntg-context-518@m.gmane.org; Thu, 03 Jul 2014 18:34:13 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8E6E71020F for ; Thu, 3 Jul 2014 18:34:12 +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 R3xi717sON8T for ; Thu, 3 Jul 2014 18:34:12 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id CC93110224 for ; Thu, 3 Jul 2014 18:34:04 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0F6DB101E8 for ; Thu, 3 Jul 2014 18:34:01 +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 qoTGG5CtEC3u for ; Thu, 3 Jul 2014 18:33:56 +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 27F85101E7 for ; Thu, 3 Jul 2014 18:33:51 +0200 (CEST) Original-Received: from mail-we0-x233.google.com (mail-we0-x233.google.com [IPv6:2a00:1450:400c:c03::233]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s63GXoYD016750 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Thu, 3 Jul 2014 18:33:50 +0200 Original-Received: by mail-we0-f179.google.com with SMTP id w62so513286wes.24 for ; Thu, 03 Jul 2014 09:33:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=ghJQaF1QviK+8a+VmI6v+cKunTkPO/iGVYWEw0cnt44=; b=ShMw89WFFgNdjq26mV7/liunRwCyzL83RnhP5y2c2k4619IvQTrQy5qZk2zuhsXW8i enYi+3J2iM8RESdZuaiC+/8ri6XjSv2HgD+vCTeYiU5zxRGgbaPW60yUUbJpGlU2Kmqa KdSiXX0M5FKNgfas+SePNqkaJg8biu5wyCfskXa3YLKYocLIdGu6FPVtAYC+6QwYMjLC R6OVPZwjE+uSjzie+/reVe6MMgj3u28bgoOU/97I4qY3ECJFlSkgm2FhXWP4zu0mYh0r 0dEWFhWCmmMVlYZ5fjxdvrXq2pp4jaiRxhdMGd/Yq72O5Ll1iRxJbZxUUdFWc8ExeULd Nj1g== X-Received: by 10.194.158.226 with SMTP id wx2mr4147544wjb.107.1404405230037; Thu, 03 Jul 2014 09:33:50 -0700 (PDT) Original-Received: from keima.localdomain (x2f2ade6.dyn.telefonica.de. [2.242.173.230]) by mx.google.com with ESMTPSA id w9sm44149260wif.12.2014.07.03.09.33.45 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 03 Jul 2014 09:33:47 -0700 (PDT) In-Reply-To: <1111725488.140309.1404402933094.JavaMail.zimbra@pentandra.com> X-Mailer: Apple Mail (2.1878.6) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c03::233; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0VMlQxO30 - fddfea4af414 - 20140703 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) 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:87987 Archived-At: Am 03.07.2014 um 17:55 schrieb Chris Chapman : > I am new to ConTeXt (coming from LaTeX), and am really impressed. Great w= ork! > = > I am working on a document that has layers that I want to be screen-only,= similar in approach to this: = > http://tex.stackexchange.com/questions/167846/implementing-full-page-scre= en-only-print-only-in-pdf > = > I am assuming that Optional Content Groups would be the best way to do th= is. How would I set something up like this in ConTeXt/LuaTeX? I know I coul= d make a screen-only version and a print version of the output pdf, but I w= ant to have my cake and eat it too ;) You can test if the layers are hidden when you print the following example,= I tried the Adobe Reader on my Mac and they where still visible. \setupinteraction[state=3Dstart] \defineoverlay[PageBackground] [\startMPcode fill fullsquare xyscaled(Overl= ayWidth,OverlayHeight) withcolor \MPcolor{orange} ; \stopMPcode] \defineoverlay[FrameBackground][\startMPcode fill fullsquare xyscaled(Overl= ayWidth,OverlayHeight) withcolor \MPcolor{green} ; \stopMPcode] %\setupbackgrounds[page][background=3Dcolor,backgroundcolor=3Dorange] % doe= sn=92t work because you can only hide the background together with the text \setupbackgrounds[page][background=3DPageBackground] \setupviewerlayer[printable=3Dno] \defineviewerlayer[mylayer] %\showlayoutcomponents % use this to enable/disable certain text areas \starttext \input knuth \startviewerlayer[mylayer] \input ward \stopviewerlayer \input tufte \startframedtext[width=3Dmax,background=3DFrameBackground] \input weisman \stopframedtext \stoptext Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________