From: Aditya Mahajan <adityam@umich.edu>
To: Hans Hagen via ntg-context <ntg-context@ntg.nl>
Subject: [NTG-context] Re: weekend update
Date: Sat, 22 Jun 2024 02:47:31 +0200 (CEST) [thread overview]
Message-ID: <qq7ns881-1808-3n98-onp8-2q18rr3773q3@hzvpu.rqh> (raw)
In-Reply-To: <fae347b8-0504-49df-b4d5-0d2d78520682@freedom.nl>
On Fri, 21 Jun 2024, Hans Hagen via ntg-context wrote:
> Hi,
>
> -- support for stacking at the tex end (maybe for presentations)
>
> \starttext
>
> \definestacking[one]
> \definestacking[two]
>
> \startstackingsteps[one,two,{one,two}]
> \startTEXpage[offset=1ts]
> \getbuffer
> \stopTEXpage
> \stopstackingsteps
I have crude macros which provide this features (save stuff in boxes and then unbox) for showing stuff stepwise in presentation (without relying on fancy PDF features which are viewer dependent). So, this new feature is very interesting. Thanks!
I use stackers in the following ways:
Case 1: Show stuff step by step
\startstackingsteps[1,{1,2},{1,2,3},{1,2,3,4}]
\startstacking[1]
...
\stopstacking
\startstacking[2]
...
\stopstacking
\startstacking[3]
...
\stopstacking
\startstacking[4]
...
\stopstacking
\stopstackingsteps
Case 2: Show stuff step by step but some things are only shown once
\startstackingsteps[1,{1,2,2only},{1,2,3},{1,2,3,4}]
....
\startstacking[2] % Show always after 2nd step
...
\stopstacking
\startstacking[2only] % Show only during step 2
...
\stopstacking
...
\stopstackingsetps
Case 3: Show stuff step by step but some things are only for specific slides
\startstacking[2only,3only] % Show only during step 2 and 3:
...
\stopstacking
So, I have a few requests:
1. Can we add support for \startstacking[one,two]?
2. For case 1, could we have a shortcut to easily write \startstackingsteps[1,{1,2},{1,2,3}...]. This gets really tedious when there are say 6 or 7 steps.
One option is:
\startstackingsteps[criterium={1,2,3}, alternative=normal] % or sequential
for the current implementation
and
\startstackingsteps[criterium={1,2,3}, alternative=cumulative]
for the cumulative option (1,{1,2},{1,2,3}...)
3. It will be nice to have a syntax to easily handle case 2 and 3.
As a bonus, I found that tex stacking plays nicely with metapost stacking!
\starttext
\definestacking[1]
\definestacking[2]
\definestacking[3]
\startbuffer
\subject{How to draw a circle}
\startitemize
\startstacking[2] \startitem Pick a point \stopitem \stopstacking
\startstacking[3] \startitem Draw the circle \stopitem \stopstacking
\stopitemize
\startplacefigure[location={here,none}]
\startMPcode[stacking={\namedstackingparameter\empty{criterium}}]
newpair A; A := origin;
newpath p; p := fullcircle scaled 3cm shifted A;
fill fullcircle scaled 3bp shifted A withstacking 2;
draw p withstacking 3;
setbounds currentpicture to bbox p ;
\stopMPcode
\stopplacefigure
\stopbuffer
\startstackingsteps[1,{1,2},{1,2,3}]
\startTEXpage[offset=1ts]
\getbuffer
\stopTEXpage
\stopstackingsteps
\stoptext
Thanks,
Aditya
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2024-06-22 0:50 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-21 17:00 [NTG-context] " Hans Hagen via ntg-context
2024-06-21 17:29 ` [NTG-context] " Pablo Rodriguez via ntg-context
2024-06-22 0:47 ` Aditya Mahajan [this message]
2024-06-23 12:42 ` Gerion Entrup
2024-06-23 12:35 ` Gerion Entrup
2024-06-23 12:43 ` Gerion Entrup
2024-06-23 13:28 ` Hans Hagen via ntg-context
2024-06-23 13:40 ` Alan Braslau via ntg-context
2024-06-23 14:13 ` Hans Hagen via ntg-context
2024-06-24 10:13 ` Gerion Entrup
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=qq7ns881-1808-3n98-onp8-2q18rr3773q3@hzvpu.rqh \
--to=adityam@umich.edu \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).