Received: from mail.proteosys.com ([213.139.130.197]) by nummer-3.proteosys with Microsoft SMTPSVC(6.0.3790.3959); Thu, 13 Aug 2009 08:51:41 +0200 Received: by mail.proteosys.com (8.14.3/8.14.3) with ESMTP id n7D6peWa028659 for ; Thu, 13 Aug 2009 08:51:40 +0200 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [129.206.100.94]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id n7D6kZ7t026562 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 13 Aug 2009 08:46:36 +0200 Received: from listserv.uni-heidelberg.de (localhost.localdomain [127.0.0.1]) by listserv.uni-heidelberg.de (8.13.1/8.13.1) with ESMTP id n7CM1POn012738; Thu, 13 Aug 2009 08:46:35 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 15.5) with spool id 285290 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Thu, 13 Aug 2009 08:46:35 +0200 Received: from relay.uni-heidelberg.de (relay.uni-heidelberg.de [129.206.100.212]) by listserv.uni-heidelberg.de (8.13.1/8.13.1) with ESMTP id n7D6kZZN019902 for ; Thu, 13 Aug 2009 08:46:35 +0200 Received: from rv-out-0708.google.com (rv-out-0708.google.com [209.85.198.243]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id n7D6kUZq000531 for ; Thu, 13 Aug 2009 08:46:34 +0200 Received: by rv-out-0708.google.com with SMTP id c5so155204rvf.10 for ; Wed, 12 Aug 2009 23:46:29 -0700 (PDT) Received: by 10.141.5.14 with SMTP id h14mr411982rvi.34.1250145989113; Wed, 12 Aug 2009 23:46:29 -0700 (PDT) Received: from ?129.127.15.244? ([129.127.15.244]) by mx.google.com with ESMTPS id c20sm9651897rvf.31.2009.08.12.23.46.25 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 12 Aug 2009 23:46:28 -0700 (PDT) Content-Type: multipart/signed; boundary=Apple-Mail-2--891642857; micalg=sha1; protocol="application/pkcs7-signature" Mime-Version: 1.0 (Apple Message framework v935.3) References: X-Mailer: Apple Mail (2.935.3) X-Spam-Whitelist: Message-ID: <1C09237E-F871-434B-9527-4C6A3F2CF6A0@gmail.com> Date: Thu, 13 Aug 2009 16:16:20 +0930 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Will Robertson Subject: Re: Named parameters in macros To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE In-Reply-To: Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: X-ProteoSys-SPAM-Score: -6.599 () BAYES_00,RCVD_IN_DNSWL_MED X-Scanned-By: MIMEDefang 2.65 on 213.139.130.197 Return-Path: owner-latex-l@LISTSERV.UNI-HEIDELBERG.DE X-OriginalArrivalTime: 13 Aug 2009 06:51:41.0107 (UTC) FILETIME=[83311030:01CA1BE2] Status: R X-Status: X-Keywords: X-UID: 5922 --Apple-Mail-2--891642857 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit On 13/08/2009, at 6:10 AM, J.Fine wrote: > Instead of writing, say, > \def\centerline #1{\hbox to\hsize{#1}} > I'd like to be able to write something like > \def\centerline #text{\hbox to\hsize{#text}} > > This is an example of named parameters in macro definitions. For the record, I agree that this would be a nice way to write arguments in TeX. But has writing #1, ##1, ####1 instead really ever stood in the way of writing TeX macros? I feel that from the document- level point of view, it's much more important to *input* the arguments as named parameters; it doesn't seem that important to me how we refer to arguments within a macro. \centerline{width=\hsize,text=...} This is where keyval-style processing has the upper hand to rigid macro arguments, and I think (despite the power of xparse) that we'll see much more gain from a standard and powerful keyval model than from a powerful way to define macros with complex argument types. * * * As far as the limitations of TeX are concerned for LaTeX3, I believe that (a) much of the limitations of LaTeX2e simply stem from lack of standardisation (b) regardless of the fact that LuaTeX seems destined to be the next standard engine, even without Lua many packages could be simplified by adopting the expl3 programming 'language' (c) any problems/limitations with TeX now can be solved/overcome with Lua later To ignore Lua in favour of a less-well integrated scripting language, at this stage, doesn't seem productive to me. Will --Apple-Mail-2--891642857 Content-Disposition: attachment; filename=smime.p7s Content-Type: application/pkcs7-signature; name=smime.p7s Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIGITCCAtow ggJDoAMCAQICECN4qE5kBXLk2f/jVDfSZPwwDQYJKoZIhvcNAQEFBQAwYjELMAkGA1UEBhMCWkEx JTAjBgNVBAoTHFRoYXd0ZSBDb25zdWx0aW5nIChQdHkpIEx0ZC4xLDAqBgNVBAMTI1RoYXd0ZSBQ ZXJzb25hbCBGcmVlbWFpbCBJc3N1aW5nIENBMB4XDTA5MDEyOTA1NDkxNVoXDTEwMDEyOTA1NDkx NVowQjEfMB0GA1UEAxMWVGhhd3RlIEZyZWVtYWlsIE1lbWJlcjEfMB0GCSqGSIb3DQEJARYQd3Nw cjgxQGdtYWlsLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0BeSiAbKuqxeRN p2qn/m8ZL+xawr/WXyPgEF0FipWgRe9l3sMXcFHokcUu0xOc97R7xkUsGcQ8EyybGHuWey6x7X1Y xJZXnoAxqcaG+eREytoYGMIKs6BhEEogLVb2ERw3lQNVnOzanSFeGo8suMAN4zzCtqAjJiA1ph7h 1pksTgECYK5EiIZbFsB6zSDa8crNk404z1CfIA6YO8ezvjbDda+D0r8NU2tq9WS9F5IaG+bW71Ya JegEcSZ+WF6Z+fs2MUMCLLu8n50Er0nuy4dxOmkdMRNfbeaM39dsEwjAAgcQnvPNmlJ215nZWQRH 49YowtSBOYUYq0ZylWRE6x8CAwEAAaMtMCswGwYDVR0RBBQwEoEQd3NwcjgxQGdtYWlsLmNvbTAM BgNVHRMBAf8EAjAAMA0GCSqGSIb3DQEBBQUAA4GBABaRP8+PDYpKIRGlFgjs1HvMmJnqu4reSqp+ ulv0zJZIjIbX/sLbI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