From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/81327 Path: news.gmane.org!not-for-mail From: =?iso-8859-2?B?UHJvY2jhemthIEx1a+G5IEluZy4gLSBQb250ZXggcy4gci4gby4=?= Newsgroups: gmane.comp.tex.context Subject: Re: Hiding text Date: Fri, 22 Mar 2013 17:05:35 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=----------xOjZ8UY8Z0yPeFAI8W5vLJ X-Trace: ger.gmane.org 1363968358 14286 80.91.229.3 (22 Mar 2013 16:05:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 Mar 2013 16:05:58 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Fri Mar 22 17:06:24 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UJ4Tx-0000O5-OL for gctc-ntg-context-518@m.gmane.org; Fri, 22 Mar 2013 17:06:17 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1AACE101E9; Fri, 22 Mar 2013 17:05:54 +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 wc+OwjVHd976; Fri, 22 Mar 2013 17:05:50 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 1C684101E5; Fri, 22 Mar 2013 17:05:50 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3A4F6101E5 for ; Fri, 22 Mar 2013 17:05:49 +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 rr4CmrTE49MX for ; Fri, 22 Mar 2013 17:05:44 +0100 (CET) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 6ABF3101E3 for ; Fri, 22 Mar 2013 17:05:44 +0100 (CET) Original-Received: from mail.pontex.cz (mail.pontex.cz [89.233.168.98]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r2MG5e0O022313 for ; Fri, 22 Mar 2013 17:05:42 +0100 Original-Received: from localhost ([127.0.0.1]) by mail.pontex.cz (Kerio MailServer 6.6.2) for ntg-context@ntg.nl; Fri, 22 Mar 2013 17:05:39 +0100 In-Reply-To: User-Agent: Opera Mail/12.14 (Win32) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=89.233.168.98; country=CZ; region=52; city=Prague; latitude=50.0833; longitude=14.4667; http://maps.google.com/maps?q=50.0833,14.4667&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QJeE5EE7 - 417be1f571b9 - 20130322 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:81327 Archived-At: ------------xOjZ8UY8Z0yPeFAI8W5vLJ Content-Type: text/plain; charset=iso-8859-2; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable Hello, interesting trick; however, it doesn't work when used inside a macro: ---- \definebuffer[Hidden] \def\WWW{ \startHidden DDD \stopHidden } \starttext AAA \startHidden BBB \stopHidden \WWW \stoptext ---- Any idea? TIA. Best regards, Lukas On Fri, 22 Mar 2013 16:42:27 +0100, Sietse Brouwer = wrote: >> is it possible to define a start-stop command to hide text within? >> >> Something like: >> >> \definestartstop[Hidden][before=3D\starthiding,after=3D\stophiding] > > Just define any buffer, and don't call \getbuffer[mybuffer]. Buffers > are not typeset, by default, until you get them. The below is > shamelessly adapted from Hans's \starthiding (which already exists): > > \definebuffer[Hidden] > % uncomment the below to turn this into a non-hiding buffer. > % \setupbuffer[Hidden][after=3D{\getbuffer[Hidden]}] > > jjjj > > \startHidden > asdf asdf > \stopHidden > > Cheers, > Sietse -- = Ing. Luk=E1=B9 Proch=E1zka [mailto:LPr@pontex.cz] Pontex s. r. o. [mailto:pontex@pontex.cz] [http://www.pontex.cz] Bezov=E1 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 ------------xOjZ8UY8Z0yPeFAI8W5vLJ Content-Disposition: attachment; filename=t-Hid.mkiv Content-Type: application/octet-stream; name="t-Hid.mkiv" Content-Transfer-Encoding: Base64 XGRlZmluZWJ1ZmZlcltIaWRkZW5dDQoNClxkZWZcV1dXew0KICBcc3RhcnRIaWRk ZW4NCiAgICBEREQNCiAgXHN0b3BIaWRkZW4NCn0NCg0KXHN0YXJ0dGV4dA0KICBB QUENCg0KICBcc3RhcnRIaWRkZW4NCiAgICBCQkINCiAgXHN0b3BIaWRkZW4NCg0K ICBcV1dXDQpcc3RvcHRleHQNCg== ------------xOjZ8UY8Z0yPeFAI8W5vLJ Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ------------xOjZ8UY8Z0yPeFAI8W5vLJ--