From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: from cgl.ntg.nl (Cgl.ntg.nl [5.39.185.202]) by inbox.vuxu.org (Postfix) with ESMTP id 2F35823F2D for ; Sun, 23 Jun 2024 15:31:01 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 27B1B4848A2 for ; Sun, 23 Jun 2024 15:29:57 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Authentication-Results: cgl.ntg.nl (amavisd-new); dkim=fail (1024-bit key) reason="fail (message has been altered)" header.d=freedom.nl header.b="IowDfhQ4"; dkim=fail (2048-bit key) reason="fail (message has been altered)" header.d=freedom.nl header.b="BCuHhvt8" Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4dUq782CkAzG for ; Sun, 23 Jun 2024 15:29:56 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id E72BE484639 for ; Sun, 23 Jun 2024 15:29:06 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 143A94845B2 for ; Sun, 23 Jun 2024 15:28:42 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CVxvgY5rJAYr for ; Sun, 23 Jun 2024 15:28:41 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=185.233.34.146; helo=outbound.soverin.net; envelope-from=j.hagen@freedom.nl; receiver= Received: from outbound.soverin.net (outbound.soverin.net [185.233.34.146]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id 879F04845A6 for ; Sun, 23 Jun 2024 15:28:41 +0200 (CEST) Received: from smtp.freedom.nl (c04cst-smtp-frd02.int.sover.in [10.10.4.108]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id 4W6X3s15WLz1S; Sun, 23 Jun 2024 13:28:41 +0000 (UTC) Received: from smtp.freedom.nl (smtp.freedom.nl [10.10.4.108]) by freedom.nl (Postfix) with ESMTPSA id 4W6X3r6Gfpz2xHP; Sun, 23 Jun 2024 13:28:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freedom.nl; s=default; t=1719149321; bh=RYWpbfqO4mEYZCtrtK52srmtJGWkm1+yzqz0G3yQb4c=; h=Date:Subject:To:References:From:In-Reply-To:From; b=IowDfhQ4C23caC3c7eTkq0UPKYeAuscDsfg3JmK9q3EX7PdWUJpdz0q6zTbKksq3O mtZb0l/tWv//NnPtLeF7eOOhWMDk/aPTORxbj7x3gUtwVpac1D1U+DCG/7gPW+8zVv oISDc2EsurEaxb6LZL+PDAER7THjCuoKKAUezq1c= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freedom.nl; s=soverin1; t=1719149320; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YEsbTp4h67MuIT5+7qQH2GwT6xndm8LiNhzPkOUTnXk=; b=BCuHhvt8hDmHetpc2GywjHA//EldnJ9QRDFYpS9ZMXwZrGpZ9pqW0/tt1obuLRGApMG82Z igZb1Xi3UaUkdhUzoLw0W7EsemghtXZMM+wGzyj/C6ABWS5hdr5fRrkTkIoXq1AMRKzp5G Xt2dQBlkRzSe309fgU9jA40Zz8C/w8k1N4y3c4UQV/NsQct+mWpgoJEMBTxJlXBMrxIaXZ a3QTPljJ2bezDpJ+I1ryjhKrZRJggrURvfwxuEZZRJgew1oLB5vWY3TLiaRdVH2wlZ8ThJ QWs/szauMr6tAz+cFO+N+rny8iQn7ISZQqJJVFv8AsY+XvaKeop7mK1/qWpbpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freedom.nl; s=default; t=1719149320; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YEsbTp4h67MuIT5+7qQH2GwT6xndm8LiNhzPkOUTnXk=; b=g6Fg+LQVfkLMUdOAHXLdhdpO0JdCGmQjqbjiFlxftQbscXrakByN34uQrt04lUxVc6v0g/ 4H5RukZYHH4rjEgYaic2wfxrFyN7k3hC15C08nUQVdAPDHS63HKvPN39GPvJTpuig/tpVj fAvsIAr4kc0LiZhirPq4xkrkK01VNCs= ARC-Seal: i=1; s=default; d=freedom.nl; t=1719149320; a=rsa-sha256; cv=none; b=kuYarF4oN8nv9ZaxfzjqWNasuwSqd4edfZsdolracak020Y5kl+7bg5e+nweODfcyagXgd UHokFGGi6vt9s3KbH4e3lJraZUKV/Spv7ipVninAogH4GrFc9wlAo6uQPXHUAa06YGHF05 Y0f1MdmWCjipVdLVaehopkW1z+6HJqk= ARC-Authentication-Results: i=1; smtp.freedom.nl; auth=pass smtp.mailfrom=j.hagen@freedom.nl Message-ID: <6a96ed47-48ef-42d0-a959-47a313f802b0@freedom.nl> Date: Sun, 23 Jun 2024 15:28:37 +0200 MIME-Version: 1.0 Content-Language: en-US To: Gerion Entrup , mailing list for ConTeXt users References: <6576932.YiXZdWvhHV@falbala> X-Soverin-Authenticated: true In-Reply-To: <6576932.YiXZdWvhHV@falbala> X-Spampanel-Class: ham Message-ID-Hash: 72I3CZ75PKHQR2LKMDYFRQT3BAC3QVAH X-Message-ID-Hash: 72I3CZ75PKHQR2LKMDYFRQT3BAC3QVAH X-MailFrom: j.hagen@freedom.nl X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: weekend update List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Hans Hagen via ntg-context Cc: Hans Hagen Content-Type: text/plain; charset="us-ascii"; format="flowed" Content-Transfer-Encoding: 7bit On 6/23/2024 2:35 PM, Gerion Entrup wrote: > Am Freitag, 21. Juni 2024, 19:00:03 MESZ schrieb Hans Hagen via ntg-context: >> -- support for stacking at the tex end (maybe for presentations) >> >> \starttext >> >> \definestacking[one] >> \definestacking[two] >> >> \startbuffer >> This is a test \stacking [one] {and a proof} of \stacking [two] >> {concept} indeed >> \stacking [one] {\blackrule [width=4cm]} is it and the question is how >> \stacking >> [two] {\scale [s=2] {fancy}} we can go >> >> \startstacking[one] >> \startformula >> \sqrt{1+x} >> \stopformula >> \stopstacking >> >> and how useful \stacking[two]{\inframed{it}} is. >> \stopbuffer >> >> \startstackingsteps[one,two,{one,two}] >> \startTEXpage[offset=1ts] >> \getbuffer >> \stopTEXpage >> \stopstackingsteps >> >> \startTEXpage[offset=1ts] \setupstacking[criterium={one}] \getbuffer >> \stopTEXpage >> \startTEXpage[offset=1ts] \setupstacking[criterium={two}] \getbuffer >> \stopTEXpage >> \startTEXpage[offset=1ts] \setupstacking[criterium={one,two}] \getbuffer >> \stopTEXpage >> >> \stoptext > > Very nice, thank you! > > I see some similarities to the "visible on" technique [1], I posted in a previous thread. You mean the horrible transparency hack there? > What comes there really handy are range specifiers, what seems not possible with this interface. > For example: "visible on=<2->" renders the content on every page except the first one > or "visible on=<1-5,13-15>" on the first page up to the fifth page and from page 13 to 15. > > The mechanism stems from the Beamer overlay specifications, see section 9.3 of the manual [2] > and can be much more complicated with modes (section 9.6.2). I don't know beamer other than seeing presentations at meetings but I assume that it has some accumulator. We do have steppers in mkii / mkiv already in the presentation styles. The conceptual cleanest of them depends on the viewer and free ones never catched up so that one is acrobat specific. The stacker discussed now is just similar to the metapost one but then at the tex end. (A quick hack with room for more a bit more effiency if ther ei sneed for it.) > To add this to the new interface, if you want that, the stack layers above need some kind of order, > which is implicit for numbers: > ``` > \definestacking{one} > \definestacking{two} > \definestacking{three} > \definestackingorder{one,two, three} > ... > \setupstacking[criterium={one-three}] > ``` > The order could also be implicitly defined after the order of the \definestacking calls. > > Or would it be possible to have numbers always automatically (additionally) available as stacking layer? > So that this "just" works: > ``` > \startbuffer > This is a test \stacking [1] {and a proof} of \stacking [2] {concept} indeed. > \stopbuffer > ... > \setupstacking[criterium={1-}] > ``` > > I also wondered, if it is possible to define a lot of layers semiautomatically in Lua > (in some graphics I needed around 20 layers). It seems that numbers in layer names currently are not allowed. > Is code like this possible somehow? > > ``` > \startluacode > for i = 1, 20 do > context.definestacking(string.format("l\letterpercent.d", i)) > end > \stopluacode > ``` The next version already will have this: %D For Aditya Mahajan: ranges and such. %D %D \starttyping %D \starttext %D \startstackingsteps[1,{1:2,201},{1:3,301},{1,2,4},{1-5},{1-6},{1-7}] %D \startTEXpage %D \startstacking[1] \framed{ONE} \stopstacking %D \startstacking[2] \framed{TWO} \stopstacking %D \startstacking[201] \framed{MORE} \stopstacking %D \startstacking[3] \framed{THREE} \stopstacking %D \startstacking[301] \framed{INDEED} \stopstacking %D \startstacking[4] \framed{FOUR} \stopstacking %D \startstacking[5] \framed{\im {\sqrt { %D \stacking[6] { 1 + x ^ { %D \stacking[7] { 2 } } } } }} %D \stopstacking %D \stopTEXpage %D \stopstackingsteps %D \stoptext %D \stoptyping The range interface is not different from the one we use in other places so it was a braindead patch. Numeric stacking id's don't need to be allocated. The example shows that it is rather general applicable although there are some border cases (that if needed we can intercept but I assume sane usage). No upload yet unless there is a hurry. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | 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 / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________