From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/108662 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Rudd, Kevin" Newsgroups: gmane.comp.tex.context Subject: Re: problem embedding TABLE macros within wrapper macros "to reduce repetitive complexity") Date: Tue, 8 Sep 2020 22:30:42 +0000 Message-ID: References: <9CED6A26-735B-4122-A3E9-34F67589B3D1@lps.umd.edu>, <688f211c-58a6-e014-d95c-a1a840d9cafd@gmail.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2794923767059895828==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3317"; mail-complaints-to="usenet@ciao.gmane.io" To: Wolfgang Schuster , "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Wed Sep 09 00:31:43 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 1kFm9P-0000lx-CE for gctc-ntg-context-518@m.gmane-mx.org; Wed, 09 Sep 2020 00:31:43 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 3F2C9161555; Wed, 9 Sep 2020 00:31:11 +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 Q1Jwf2MQAAjl; Wed, 9 Sep 2020 00:31:09 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 7B0D8161558; Wed, 9 Sep 2020 00:31:09 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id C67D0161558 for ; Wed, 9 Sep 2020 00:31:07 +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 TgQodBmkv_2g for ; Wed, 9 Sep 2020 00:31:07 +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= 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 B9BE5161555 for ; Wed, 9 Sep 2020 00:31:06 +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 18:31:02 -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 18:30:43 -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 18:30:43 -0400 Thread-Topic: [NTG-context] problem embedding TABLE macros within wrapper macros "to reduce repetitive complexity") Thread-Index: AQHWhgiPoXrsP2mOEEiqNeK49Qbhj6lfdRcA///eNxw= In-Reply-To: <688f211c-58a6-e014-d95c-a1a840d9cafd@gmail.com> Accept-Language: en-US Content-Language: en-US x-ms-exchange-transport-fromentityheader: Hosted 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:108662 Archived-At: --===============2794923767059895828== Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_DM5PR15MB192969428401DDC6188A47B4F1290DM5PR15MB1929namp_" --_000_DM5PR15MB192969428401DDC6188A47B4F1290DM5PR15MB1929namp_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Thanks. The immediate goal is to make a =94quad chart=94 w/ different pains= in the four (2x2 =3D> NW, NE, SW, SE) quadrants. It seemed that the concep= t was scalable to any NxM (even with multi-cell spreads---useful for larger= structured posters) based on TABLE. But I'd settle for 2x2 at the moment; = at one point I'd thought of 2x2+1 having a spanning block for publication r= eferences per slide but decided a separate publications slide was a better = idea visualy.. If they have to see an end command, would before/after tags work around a f= ramedtext or buffer structure? 1. 2x2 panes, layout order not important, all panes independent; no flow (l= ike Framemaker used to do) requiredbetween panes. 2. was going to have inner frames (i.e. + frame for 2x2 which was trivial t= o specify in TABLE) to separate the panes 3. other than wanting the + frame, inner margins &c. for panes wsn't an iss= ue either way. Best, ---K Kevin W. Rudd, Ph.D. CAPT, USN (Ret) Computer Architecture & Engineering (CAE) Advanced Computing Systems (ACS) Research Program Laboratory for Physical Sciences (LPS) 443-654-7878 kevin@lps.umd.edu Visiting Research Professor Electrical and Computer Engineering United States Naval Academy rudd@usna.edu ________________________________ From: Wolfgang Schuster Sent: Tuesday, September 8, 2020 4:31:38 PM To: mailing list for ConTeXt users Cc: Rudd, Kevin Subject: Re: [NTG-context] problem embedding TABLE macros within wrapper ma= cros "to reduce repetitive complexity") Rudd, Kevin schrieb am 08.09.2020 um 19:50: 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? While most natural tables command can be embedded within other command the = cells have to see the end command. I guess this shouldn't be a problem for your case because something simpler= can be used to create your desired layout but you have to provide more inf= ormation: 1. Are there blocks side by side or do you stack them only vertically? 2. Do you need a frame around each block? 3. Are (small) gaps between the blocks allowed? Wolfgang --_000_DM5PR15MB192969428401DDC6188A47B4F1290DM5PR15MB1929namp_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable
Thanks. The immediate goal is to make a =94q= uad chart=94 w/ different pains in the four (2x2 =3D> NW, NE, SW, SE) qu= adrants. It seemed that the concept was scalable to any NxM (even with mult= i-cell spreads---useful for larger structured posters) based on TABLE. But I'd settle for 2x2 at the moment; at one poin= t I'd thought of 2x2+1 having a spanning block for publication referenc= es per slide but decided a separate publications slide was a better idea vi= sualy..

If they have to see an end command, would be= fore/after tags work around a framedtext or buffer structure?

1. 2x2 panes, layout order not important, al= l panes independent; no flow (like Framemaker used to do) requiredbetween pa= nes.
2. was going to have inner frames (i.e. += ; frame for 2x2 which was trivial to specify in TABLE) to separate the pane= s
3. other than wanting the + frame, inner= margins &c. for panes wsn't an issue either way.

Best,
---K

Kevin W. Rudd, Ph.D.
CAPT, USN (Ret)
Computer Architecture & Engineering (CAE= )
Advanced Computing Systems (ACS) Research Pr= ogram
Laboratory for Physical Sciences (LPS)
443-654-7878
kevin@lps.umd.edu
Visiting Research Professor
Electrical and Computer Engineering
United States Naval Academy
rudd@usna.edu

From: Wolfgang Schuster <= ;wolfgang.schuster.lists@gmail.com>
Sent: Tuesday, September 8, 2020 4:31:38 PM
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Rudd, Kevin <kevin@lps.umd.edu>
Subject: Re: [NTG-context] problem embedding TABLE macros within wra= pper macros "to reduce repetitive complexity")
 
Rudd, Kevin schrieb am 08.09.2020 um 19:50:
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?

While most natural tables command can be embedded within other command the = cells have to see the end command.

I guess this shouldn't be a problem for your case because something simpler= can be used to create your desired layout but you have to provide more inf= ormation:

1. Are there blocks side by side or do you stack them only vertically?

2. Do you need a frame around each block?

3. Are (small) gaps between the blocks allowed?

Wolfgang

--_000_DM5PR15MB192969428401DDC6188A47B4F1290DM5PR15MB1929namp_-- --===============2794923767059895828== 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== --===============2794923767059895828==--