ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* problem embedding TABLE macros within wrapper macros "to reduce repetitive complexity")
@ 2020-09-08 17:50 Rudd, Kevin
  2020-09-08 20:31 ` Wolfgang Schuster
  0 siblings, 1 reply; 7+ messages in thread
From: Rudd, Kevin @ 2020-09-08 17:50 UTC (permalink / raw)
  To: ntg-context; +Cc: Rudd, Kevin


[-- Attachment #1.1: Type: text/plain, Size: 1530 bytes --]

I have a number of slides using \...framedtext blocks to break the slides into panes within a TABLE environment (TMI: not in MWE; merely my justification for writing the wrapper macros). When the TABLE macros are invoked explicitly it all works fine and produces a suitable single-cell table with "quux blech baz bar foo" framed; when embedded in macros (whether defined by \def, \unexpanded\def, \define) then it fails with the error "The file ended when scanning an argument. => fatal error: return code: 256. A previous question on the topic seemed to indicate that TABLE was suitable, so I figure that something subtle is wrong as I've invoked the embedded TABLE macros. Any suggestions?

Many thanks,
 ---K

MWE: this code fails if the \...PaneSlide block is uncommented, succeeds if commented out.

\define\startPaneSlide{\bTABLE}
\define\startPaneRow{bTR\bTD}
\define\stopPaneRow{\eTD\eTR}
\define\stopPaneSlide{\eTABLE}

\starttext
    \bTABLE
        \bTR\bTD
            quux blech baz bar foo
        \eTD\eTR
    \eTABLE

    \startPaneSlide
        \startPaneRow
            foo bar baz blech quux
        \stopPaneRow
    \stopPaneSlide
\stoptext

Kevin W. Rudd, Ph.D.
CAPT, USN (Ret)

Computer Architecture & Computer Engineering
Advanced Computing Systems (ACS) Research Program
Laboratory for Physical Sciences (LPS)

443-654-7878
kevin@lps.umd.edu<mailto:kevin@lps.umd.edu>

Visiting Research Professor
United States Naval Academy

rudd@usna.edu<mailto:rudd@usna.edu>



[-- Attachment #1.2: Type: text/html, Size: 3912 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-09-10 13:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-08 17:50 problem embedding TABLE macros within wrapper macros "to reduce repetitive complexity") 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 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).