From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/108658 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Rudd, Kevin" Newsgroups: gmane.comp.tex.context Subject: problem embedding TABLE macros within wrapper macros "to reduce repetitive complexity") Date: Tue, 8 Sep 2020 17:50:37 +0000 Message-ID: <9CED6A26-735B-4122-A3E9-34F67589B3D1@lps.umd.edu> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0461004406551353270==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7418"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "Rudd, Kevin" To: "ntg-context@ntg.nl" Original-X-From: ntg-context-bounces@ntg.nl Tue Sep 08 20:06:23 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kFi0d-0001qP-Cq for gctc-ntg-context-518@m.gmane-mx.org; Tue, 08 Sep 2020 20:06:23 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id EA3331A8A04; Tue, 8 Sep 2020 20:05:50 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mRcICU-R8oNr; Tue, 8 Sep 2020 20:05:48 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 413EE1A8A08; Tue, 8 Sep 2020 20:05:48 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 56E721A89FE for ; Tue, 8 Sep 2020 20:05:47 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PoICQRnS_SxW for ; Tue, 8 Sep 2020 20:05:46 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=129.2.108.16; helo=smtp.lps.umd.edu; envelope-from=kevin@lps.umd.edu; receiver= X-Greylist: delayed 906 seconds by postgrey-1.36 at zapf.ntg.nl; Tue, 08 Sep 2020 20:05:46 CEST Original-Received: from SMTP.lps.umd.edu (smtp.lps.umd.edu [129.2.108.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 5815D1A89EF for ; Tue, 8 Sep 2020 20:05:46 +0200 (CEST) Original-Received: from LPS-ExchDB1.lps.umd.edu (129.2.108.17) by SMTP.lps.umd.edu (129.2.108.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 8 Sep 2020 13:50:35 -0400 Original-Received: from LPS-ExchDB2.lps.umd.edu (2002:8102:6c12::8102:6c12) by LPS-ExchDB1.lps.umd.edu (2002:8102:6c11::8102:6c11) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 8 Sep 2020 13:50:37 -0400 Original-Received: from LPS-ExchDB2.lps.umd.edu ([129.2.108.18]) by LPS-ExchDB2.lps.umd.edu ([129.2.108.18]) with mapi id 15.00.1497.006; Tue, 8 Sep 2020 13:50:37 -0400 Thread-Topic: problem embedding TABLE macros within wrapper macros "to reduce repetitive complexity") Thread-Index: AQHWhgiPpNphJi4KD02CFZNYZ4UnXA== Accept-Language: en-US Content-Language: en-US x-mailer: Apple Mail (2.3445.104.11) x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [71.179.61.70] X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:108658 Archived-At: --===============0461004406551353270== Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_9CED6A26735B4122A3E934F67589B3D1lpsumdedu_" --_000_9CED6A26735B4122A3E934F67589B3D1lpsumdedu_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I have a number of slides using \...framedtext blocks to break the slides i= nto panes within a TABLE environment (TMI: not in MWE; merely my justificat= ion for writing the wrapper macros). When the TABLE macros are invoked expl= icitly it all works fine and produces a suitable single-cell table with "qu= ux 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. =3D> fatal error: return code: 256. A previous = question on the topic seemed to indicate that TABLE was suitable, so I figu= re 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 Visiting Research Professor United States Naval Academy rudd@usna.edu --_000_9CED6A26735B4122A3E934F67589B3D1lpsumdedu_ Content-Type: text/html; charset="us-ascii" Content-ID: <5EDE2BAD893ED84181816358253E414B@lps.umd.edu> Content-Transfer-Encoding: quoted-printable
I have a number of slides using \...framedtext blocks to br= eak the slides into panes within a TABLE environment (TMI: not in MWE; mere= ly 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 b= ar foo" framed; when embedded in macros (whether defined by \def, \une= xpanded\def, \define) then it fails with the error "The file ended whe= n scanning an argument. =3D> 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 th= e embedded TABLE macros. Any suggestions?

Many thanks,
 ---K

MWE: this code fails if the \...PaneSlide block is uncommen= ted, 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 ba= r 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

Visiting Research Professor
United States Naval Academy

rudd@usna.edu


--_000_9CED6A26735B4122A3E934F67589B3D1lpsumdedu_-- --===============0461004406551353270== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============0461004406551353270==--