From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/87989 Path: news.gmane.org!not-for-mail From: Chris Chapman Newsgroups: gmane.comp.tex.context Subject: Re: Support for Optional Content Groups Date: Thu, 3 Jul 2014 12:08:07 -0600 (MDT) Message-ID: <368667126.140391.1404410887573.JavaMail.zimbra@pentandra.com> References: <1111725488.140309.1404402933094.JavaMail.zimbra@pentandra.com> <53B598D3.4050202@wxs.nl> 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: ger.gmane.org 1404410946 21555 80.91.229.3 (3 Jul 2014 18:09:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Jul 2014 18:09:06 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 03 20:09:02 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 1X2lRN-0000St-CN for gctc-ntg-context-518@m.gmane.org; Thu, 03 Jul 2014 20:09:01 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F203810223 for ; Thu, 3 Jul 2014 20:09:00 +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 T9iOBY-Aqvhh for ; Thu, 3 Jul 2014 20:09:00 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id EF5F310224 for ; Thu, 3 Jul 2014 20:08:52 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F0F4E101E8 for ; Thu, 3 Jul 2014 20:08:49 +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 7psSuT7OzKRA for ; Thu, 3 Jul 2014 20:08:44 +0200 (CEST) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id 65E97101E7 for ; Thu, 3 Jul 2014 20:08:44 +0200 (CEST) Original-Received: from mail.pentandra.com (mail.pentandra.com [75.144.9.42]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s63I8ahq031383 for ; Thu, 3 Jul 2014 20:08:43 +0200 Original-Received: from albeniz.process.tree (albeniz.process.tree [172.30.9.9]) by mail.pentandra.com (Postfix) with ESMTP id 3104C326BD4 for ; Thu, 3 Jul 2014 12:08:11 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pentandra.com; s=9BA5FD2C-259E-11E3-A9E1-CA109E95F224; t=1404410888; bh=Pa3iJLwOhSkWdVaYq7xv32IZ+at+01UBCa+7at1oUQM=; h=Date:From:To:Message-ID:Subject:MIME-Version:Content-Type: Content-Transfer-Encoding; b=vtT+LUq1gGJca6KdaAw6oNHqadCdJS3TW1Uprddb2wOFDTK/Js+jd1YBevZdr5q5+ BotfbeqrxQP3C7MGe/cbLriqaN+Iud1r/danPTixIyfZY8hwKAeZoQf/tz/VLxHRdD YZ32CTXFpO8i+OW87y5igt6JfD6RHOGlXJp2V5pIXXFSQRdqU0Xcs9SKwtoE1apdwJ zluzVQFXHEvIn4MFEr7EbyEnrEKqJB+xfo/LnHdiJqyAQ8Gkjfinu0p4LZaaxOLbXT ZWByOU7+ZrdwTHWAu7j69ewHJnAe6h1aFOdTX8wADTUKk55QN1tHZ+8X1X/k2PYQ1N dEYKPMdKFMHFw== X-Virus-Scanned: amavisd-new at pentandra.com Original-Received: by albeniz.process.tree (Postfix) with ESMTP id DAFBF760174 for ; Thu, 3 Jul 2014 12:08:07 -0600 In-Reply-To: <53B598D3.4050202@wxs.nl> Thread-Topic: Support for Optional Content Groups Thread-Index: INb8UgN8RcZdIymCVsU0jfuiM63WDQ== X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=75.144.9.42; country=US; region=Utah; city=Salt Lake City; latitude=40.6583; longitude=-111.9231; http://maps.google.com/maps?q=40.6583,-111.9231&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06MlS8B6c - c7a7ac334e8e - 20140703 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 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:87989 Archived-At: Thanks Hans and Wolfgang! Yes, it looks like most PDF viewers don't handle layers right now, but I'm fine with Acrobat for this use case. Chris Chapman Pentandra ----- Original Message ----- > From: "Hans Hagen" > To: "mailing list for ConTeXt users" > Sent: Thursday, July 3, 2014 11:54:27 AM > Subject: Re: [NTG-context] Support for Optional Content Groups > > On 7/3/2014 5:55 PM, Chris Chapman wrote: > > I am new to ConTeXt (coming from LaTeX), and am really impressed. Great > > work! > > > > 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-screen-only-print-only-in-pdf > > > > I am assuming that Optional Content Groups would be the best way to do > > this. How would I set something up like this in ConTeXt/LuaTeX? I know I > > could make a screen-only version and a print version of the output pdf, > > but I want to have my cake and eat it too ;) > > (also see wolfgangs mail) > > I tried this in acrobat: > > \defineviewerlayer[visibleandprint] [printable=yes,state=start] > \defineviewerlayer[visibleandnotprint] [printable=no, state=start] > \defineviewerlayer[notvisibleandprint] [printable=yes,state=stop] > \defineviewerlayer[notvisibleandnotprint][printable=no, state=stop] > > \setupinteraction[state=start] > > \starttext > > \startviewerlayer[visibleandprint] visible and print > \stopviewerlayer \blank > \startviewerlayer[visibleandnotprint] visible and not print > \stopviewerlayer \blank > \startviewerlayer[notvisibleandprint] not visible and print > \stopviewerlayer \blank > \startviewerlayer[notvisibleandnotprint] not visible and not print > \stopviewerlayer \blank > > \stoptext > > and found out that we need an extra piece of info for acrobat to be > happy. I'll upload a beta with that addition. > > I wonder if other viewers handle layers well. > > Hans > > > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com > | www.pragma-pod.nl > ----------------------------------------------------------------- > > ___________________________________________________________________________________ > 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 > ___________________________________________________________________________________ ___________________________________________________________________________________ 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 ___________________________________________________________________________________