From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: "Rudd, Kevin" <kevin@lps.umd.edu>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: problem embedding TABLE macros within wrapper macros "to reduce repetitive complexity")
Date: Thu, 10 Sep 2020 15:17:35 +0200 [thread overview]
Message-ID: <1b08f54d-fac3-ec25-d10e-f3bc27a318a6@gmail.com> (raw)
In-Reply-To: <806C4E6B-973E-4682-9CB9-18CF0A9A2221@lps.umd.edu>
Rudd, Kevin schrieb am 09.09.2020 um 17:32:
> [Workable solution found]
>
> After more exploration, the following seems to solve the problem of
> creating a simple 2x2 quad chart; thanks for the explanation that the
> \bTD requires a matching \eTD in the immediate (not future expanded)
> evaluation context. I prefer the \start* and \stop* model but for the
> moment this solution works for my current purpose. The good part is that
> it does abstract out the interface so that I can change it in the future
> without needing to change the slide text. I may investigate a better
> (parametrizable/reconfigurable) solution later if I end up needing a
> more complex paned-layout environment that doesn't need direct access to
> the TABLE (or some other more relevant) interface.
>
> MWE demonstrator; there's other cruft in the actual definitions for my
> purposes.
>
> \starttext
> \define\startPaneSlide{\bTABLE}
> \define\stopPaneSlide{\eTABLE}
> \long\def\PaneRow#1{\bTR #1 \eTR}
> \long\def\Pane#1{\bTD #1 \eTD}
>
> \startPaneSlide
> \PaneRow{\Pane{aaa bbb ccc ddd}\Pane{eee fff ggg hhh}}
> \PaneRow{\Pane{iii jjj kkk lll}\Pane{mmm nnn ooo ppp}}
> \stopPaneSlide
> \stoptext
For very short texts like in your example you can use the short form of
natural tables.
\starttext
\startTABLE
\NC aaa bbb ccc ddd \NC eee fff ggg hhh \NC\NR
\NC iii jjj kkk lll \NC mmm nnn ooo ppp \NC\NR
\stopTABLE
\stoptext
Wolfgang
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
prev parent reply other threads:[~2020-09-10 13:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-08 17:50 Rudd, Kevin
2020-09-08 20:31 ` Wolfgang Schuster
2020-09-08 22:30 ` Rudd, Kevin
2020-09-09 5:57 ` Wolfgang Schuster
2020-09-09 13:02 ` Rudd, Kevin
2020-09-09 15:32 ` Rudd, Kevin
2020-09-10 13:17 ` Wolfgang Schuster [this message]
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=1b08f54d-fac3-ec25-d10e-f3bc27a318a6@gmail.com \
--to=wolfgang.schuster.lists@gmail.com \
--cc=kevin@lps.umd.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).