Uff, this is indeed deep tex. Thanks a lot for the example, Hans! I still need
to learn a lot.
After a walk and a bit of fresh air, I found another (much easier) way around
my problem. This works since I don't need to deal with #2 in any special way:
\tolerant\def\startMyCommand[#1]%
{
On 1/2/2022 2:14 PM, Benjamin Buchmuller wrote:
Thanks, Hans, for the answer, but I'm not sure if I get the point.
While this is possible in ConTeXt:
\startsection[title={My Title}]
\beginMyBlock
bla bla
\endMyBlock
\stopsection
The following won't work (end of file error):
Thanks, Hans, for the answer, but I'm not sure if I get the point.
While this is possible in ConTeXt:
\startsection[title={My Title}]
\beginMyBlock
bla bla
\endMyBlock
\stopsection
The following won't work (end of file error):
\startMyCommand[optional={Maybe}]
\beginMyBlock
bla bla
On 1/2/2022 11:47 AM, Benjamin Buchmuller via ntg-context wrote:
Hi list,
I'm playing around with blocks and buffers again, realizing that I cannot use
them inbetween a \start...\stop that I defined myself. Apparently, they work
between \startsection...\stopsection and the like, so I was
Hi list,
I'm playing around with blocks and buffers again, realizing that I cannot use
them inbetween a \start...\stop that I defined myself. Apparently, they work
between \startsection...\stopsection and the like, so I was wondering how I
should define or expand #2 in the MWE below to make