From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/81326 Path: news.gmane.org!not-for-mail From: Sietse Brouwer Newsgroups: gmane.comp.tex.context Subject: Re: Hiding text Date: Fri, 22 Mar 2013 16:42:27 +0100 Message-ID: References: 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 1363966984 32135 80.91.229.3 (22 Mar 2013 15:43:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 Mar 2013 15:43:04 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Mar 22 16:43:31 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 1UJ47u-0000Ef-1R for gctc-ntg-context-518@m.gmane.org; Fri, 22 Mar 2013 16:43:30 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 68278101E3; Fri, 22 Mar 2013 16:43:06 +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 TnbGlLqVWA-Q; Fri, 22 Mar 2013 16:43:04 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 918D5101E5; Fri, 22 Mar 2013 16:43:04 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C3363101E5 for ; Fri, 22 Mar 2013 16:43:02 +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 gnIBuIqoYEqL for ; Fri, 22 Mar 2013 16:42:58 +0100 (CET) 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 3588B101E3 for ; Fri, 22 Mar 2013 16:42:58 +0100 (CET) Original-Received: from mail-ea0-x22e.google.com (mail-ea0-x22e.google.com [IPv6:2a00:1450:4013:c01::22e]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r2MFgvdk025648 for ; Fri, 22 Mar 2013 16:42:57 +0100 Original-Received: by mail-ea0-f174.google.com with SMTP id q10so1431640eaj.5 for ; Fri, 22 Mar 2013 08:42:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=21nwrIYBS0RYxvO1rX0x4I7uOGdCkEHyrt9aZOnxIQs=; b=IDaB6nrNf1jA1L7BAfJZoJg/cy8ly8Da1ZmjIFHBwICDUWKuX7rrz2ukMLFTWBJWec gqiAVHq7V4/DPVuJ0qoA4wKNj9+wPD0zvPw580FMvm/9AhL8hNVIBzSZGCZHtss5/+SJ bzlDDIUdGtexCu0V+7/Z9TxfvBaDcbsfzcwsS1gD5PCn1hPja8E67mUpR7oONE9T3hrh 1sAsmX3wigrOfKAPg24Gh1UyvixiGx2tYXjAlaOpihWXSfPlTf8J+k/Q/bvbGDYoA+yt BuvwSSc4hjSrAv8Bb4m3hcc+0Juc02uX8K1txJf9hT16nZizvZgBI4uYXIglDVpX8tpq LzEQ== X-Received: by 10.14.183.67 with SMTP id p43mr6333527eem.10.1363966977143; Fri, 22 Mar 2013 08:42:57 -0700 (PDT) Original-Received: by 10.14.219.66 with HTTP; Fri, 22 Mar 2013 08:42:27 -0700 (PDT) In-Reply-To: X-Bayes-Prob: 0.0181 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:4013:c01::22e; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0VJeDGVVp - 32b47a654ad2 - 20130322 (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:81326 Archived-At: > is it possible to define a start-stop command to hide text within? > > Something like: > > \definestartstop[Hidden][before=\starthiding,after=\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={\getbuffer[Hidden]}] jjjj \startHidden asdf asdf \stopHidden Cheers, Sietse ___________________________________________________________________________________ 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 ___________________________________________________________________________________