From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/105438 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: "Philipp A." Newsgroups: gmane.comp.tex.context Subject: PDF layer links Date: Wed, 6 Nov 2019 17:07:47 +0100 Message-ID: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5080859551716359464==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="24539"; mail-complaints-to="usenet@blaine.gmane.org" To: ConTeXt Mainling List Original-X-From: ntg-context-bounces@ntg.nl Wed Nov 06 17:08:39 2019 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iSNrL-0006Gi-AJ for gctc-ntg-context-518@m.gmane.org; Wed, 06 Nov 2019 17:08:39 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 40ABA162A33; Wed, 6 Nov 2019 17:08:10 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WpLVkdIkfALL; Wed, 6 Nov 2019 17:08:08 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 81CCA162A50; Wed, 6 Nov 2019 17:08:08 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 85148162A49 for ; Wed, 6 Nov 2019 17:08:07 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EOVhGcAFYlSZ for ; Wed, 6 Nov 2019 17:08:05 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.166.182; helo=mail-il1-f182.google.com; envelope-from=trueflyingsheep@gmail.com; receiver= Original-Received: from mail-il1-f182.google.com (mail-il1-f182.google.com [209.85.166.182]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id B17CD162A33 for ; Wed, 6 Nov 2019 17:08:05 +0100 (CET) Original-Received: by mail-il1-f182.google.com with SMTP id f201so16608029ilh.6 for ; Wed, 06 Nov 2019 08:08:05 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=b0OU5BUBt6cGqkAryhT8Ordbgwqj9jEamPFT55C2pb0=; b=CF/U8NIMy/PoUKhxxUf0tirLRRWqJlgVR4ycw9JWw4jER0SzvvuFaP0YTqIF1We/Kl cK1rx0IcpOtAIpUB+JxgbngDNURkubXsDeC8x5oCPs3lf0qjGQ35RWJrwOD5MWzBHgWm NokjjTMQWbkFgo6/ihLlUDlu72qGpsMfqIe5GDVB6PW0NCWHg2LmilcCrLatxOTY3Psb 8SUoDY3fOESScaX5ERZEETLqSIRQZZAafACD1W61EmzzTSZ+0tT7CrJUBa+Pu7DPYYN6 oMWbXC3TLhASE1y0hJwaeSL1tp+pwtwORDSMuESOHmYMCwIcck+5hmSwWcN3p4t7osxs Bc7g== X-Gm-Message-State: APjAAAVoecrERK6mxdJLPO/Wk0un3XX15vJ68YeydOQs0scXUu6ahioH 8aiP54eaWZZCwiOr1D8V4W8nPO+x1Mx+3PNxtx+GFBoPkjw= X-Google-Smtp-Source: APXvYqxKlizNkYT2A460zIP4Z4dvf/W6JEr0SFLTynx2Eg/gRvJ2oE4ly6tMBTONvCz+QvT41Q8qQbmOP3SHWjDqhJE= X-Received: by 2002:a92:af15:: with SMTP id n21mr3758859ili.0.1573056483278; Wed, 06 Nov 2019 08:08:03 -0800 (PST) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 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" Xref: news.gmane.org gmane.comp.tex.context:105438 Archived-At: --===============5080859551716359464== Content-Type: multipart/alternative; boundary="000000000000e5f1d20596afc001" --000000000000e5f1d20596afc001 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, I asked this question some time ago: https://tex.stackexchange.com/q/354731/2867 Today I found out about viewer layers. Sadly they seem to be buggy in the ConTeXt version in TeXlive 2019.52575 When I compile the following document, the =E2=80=9Cview=E2=80=9D layer see= ms to gobble up the rest of the document: Hiding it makes =E2=80=9CMore text=E2=80=9D vanis= h. Also, I don=E2=80=99t know if [state=3Dstop,printable=3Dyes] does what I wa= nt, i.e. being visible by default on print media. If not, how to achieve that? Best, Philipp \defineviewerlayer[print][state=3Dstop,printable=3Dyes] \defineviewerlayer[view][state=3Dstart,printable=3Dno] \def\viewcolor#1#2{% \startviewerlayer[view]\color[#1]{#2}\stopviewerlayer% \startviewerlayer[print]\llap{#2}\stopviewerlayer% } \starttext Hi! \viewcolor{red}{This is only red on screen}. More text. \stoptext --000000000000e5f1d20596afc001 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

I asked this question so= me time ago: https:= //tex.stackexchange.com/q/354731/2867
Today I found out about= viewer layers. Sadly they seem to be buggy in the ConTeXt version in TeXli= ve 2019.52575
When I compile the following document, the =E2=80= =9Cview=E2=80=9D layer seems to gobble up the rest of the document: Hiding = it makes =E2=80=9CMore text=E2=80=9D vanish.
Also, I don=E2= =80=99t know if [state=3Dstop,printable=3Dyes] does what I want, i.e. being= visible by default on print media. If not, how to achieve that?
<= div>
Best, Philipp

\definev= iewerlayer[print][state=3Dstop,printable=3Dyes]
\defineviewerlayer[view]= [state=3Dstart,printable=3Dno]

\def\viewcolor#1#2{%
=C2=A0 =C2=A0= \startviewerlayer[view]\color[#1]{#2}\stopviewerlayer%
=C2=A0 =C2=A0 \s= tartviewerlayer[print]\llap{#2}\stopviewerlayer%
}

\starttext
Hi!

\viewcolor{red}{This is = only red on screen}.

More text.
\stoptex= t
--000000000000e5f1d20596afc001-- --===============5080859551716359464== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============5080859551716359464==--