From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/108661 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: problem embedding TABLE macros within wrapper macros "to reduce repetitive complexity") Date: Tue, 8 Sep 2020 22:31:38 +0200 Message-ID: <688f211c-58a6-e014-d95c-a1a840d9cafd@gmail.com> References: <9CED6A26-735B-4122-A3E9-34F67589B3D1@lps.umd.edu> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5741726313469007144==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7750"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 PostboxApp/7.0.27 Cc: "Rudd, Kevin" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Sep 08 22:32:17 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 1kFkHp-0001uH-Od for gctc-ntg-context-518@m.gmane-mx.org; Tue, 08 Sep 2020 22:32:17 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D368E1A8B6B; Tue, 8 Sep 2020 22:31: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 uN4bNtlOteue; Tue, 8 Sep 2020 22:31:44 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A7D2D1A8A76; Tue, 8 Sep 2020 22:31:44 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id AFB711A8A6E for ; Tue, 8 Sep 2020 22:31:43 +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 dlErmApjw4Pf for ; Tue, 8 Sep 2020 22:31:42 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.221.47; helo=mail-wr1-f47.google.com; envelope-from=wolfgang.schuster.lists@gmail.com; receiver= Original-Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 7C8A41A8A69 for ; Tue, 8 Sep 2020 22:31:42 +0200 (CEST) Original-Received: by mail-wr1-f47.google.com with SMTP id t10so596770wrv.1 for ; Tue, 08 Sep 2020 13:31:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-language; bh=Lf4fpl5tkIu73HONq0GMImzI+NmyN7p0NX+YMUiFz0w=; b=LMtpMKbrtodutxuZJCOp6QmeIBEJsCf29Qv0zM5Y+sZkGotYw/4hz5SHD557Mn+w9+ 6ay3UVfPEpM/303blGjBZBZ00shyUkOJwf2coKQxL1R4PXuse6b4tFZuesS9Ot3yAUvD bcjyRDKH70UwDekfVyQloTeTzQ7ZErWbUTopCq7kQFEgWO0lRyW7Uv6H+ujB9hdn2UQg GxTlvGPIOpvjAIRhFFpnoMeBO1kjtOKP46Luk94rUu5PjU+QQM1Kr+aBSrtvrx5dsgK4 DyvZcGJpGwNxj4m8158f/FYAQee2KvsD3/uJjlxi1HsPkEHgQHDxNq3aPDdT/h7jzeJa WGLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=Lf4fpl5tkIu73HONq0GMImzI+NmyN7p0NX+YMUiFz0w=; b=VHUhI9JJhZ8Gtu+L2EY1irhVAhe5PC3oJ3uvuXPB6h+vv+vwuCZ7mgbZ5hhTgpO9qN k+ockKRf5tNoy1Qr+Fln7B2wKZfTC2UICFKvz82yL2QMmBAKkZmAbkSd/gEbnJlQjP75 xd0sHJ9GFDD0BmJQATrgbswJJewLy7m3N57rC6th87uFM9xbYibevXnw6YArEQ/XKDWb B7cOPfOxVCvm3ff5Psj4iOKjC9aR9SvfmaMfBsw2maKdDosxyTZCSUOJI3hgG1t+bgMe r8WhM72AIuVdRa1FJ8CXOp7gFTCu7nSSdICNVGeHBjOYcTfMwbaeiOR9npI2RZEbv2LN NY4w== X-Gm-Message-State: AOAM531rUrAPCdHKHteCMN1LrgULoCZRopoxVMWmb0aZB6Mp3P61T1P8 9F4OusUpSj3IGJ0V/yY2uWA= X-Google-Smtp-Source: ABdhPJyyL73dFm07Z8+eos1UWrAKVLRF/eHTWG6atbGKYnWA4eg6jZKZxpPE33bY6XKNfxIWs860qA== X-Received: by 2002:a5d:568d:: with SMTP id f13mr224498wrv.303.1599597102065; Tue, 08 Sep 2020 13:31:42 -0700 (PDT) Original-Received: from [192.168.1.105] (ip-37-188-178-71.eurotel.cz. [37.188.178.71]) by smtp.gmail.com with ESMTPSA id j7sm821377wrs.11.2020.09.08.13.31.40 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 Sep 2020 13:31:41 -0700 (PDT) In-Reply-To: <9CED6A26-735B-4122-A3E9-34F67589B3D1@lps.umd.edu> Content-Language: en-US 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:108661 Archived-At: This is a multi-part message in MIME format. --===============5741726313469007144== Content-Type: multipart/alternative; boundary="------------84FC563244BBDA6AF6F5F99D" Content-Language: en-US This is a multi-part message in MIME format. --------------84FC563244BBDA6AF6F5F99D Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Rudd, Kevin schrieb am 08.09.2020 um 19:50: > 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? 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 information: 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 --------------84FC563244BBDA6AF6F5F99D Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 7bit Rudd, Kevin schrieb am 08.09.2020 um 19:50:
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?

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 information:

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

--------------84FC563244BBDA6AF6F5F99D-- --===============5741726313469007144== 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== --===============5741726313469007144==--