Received: from mail.proteosys.com ([213.139.130.197]) by nummer-3.proteosys with Microsoft SMTPSVC(6.0.3790.3959); Wed, 12 Aug 2009 22:46:38 +0200 Received: by mail.proteosys.com (8.14.3/8.14.3) with ESMTP id n7CKkbBH026207 for ; Wed, 12 Aug 2009 22:46:38 +0200 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [129.206.100.94]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id n7CKfhZo019712 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 12 Aug 2009 22:41:43 +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 n7CI3mDB017198; Wed, 12 Aug 2009 22:41:41 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 15.5) with spool id 294829 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Wed, 12 Aug 2009 22:41:40 +0200 Received: from relay2.uni-heidelberg.de (relay2.uni-heidelberg.de [129.206.210.211]) by listserv.uni-heidelberg.de (8.13.1/8.13.1) with ESMTP id n7CKfeAb006764 for ; Wed, 12 Aug 2009 22:41:40 +0200 Received: from pluto.open.ac.uk (pluto.open.ac.uk [137.108.145.32]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id n7CKfWCF022665 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 12 Aug 2009 22:41:36 +0200 Received: from mulberry.open.ac.uk ([137.108.170.73]) by pluto.open.ac.uk with esmtp (Exim 4.69) (envelope-from ) id 1MbKdY-0006Ow-Kf for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Wed, 12 Aug 2009 21:41:32 +0100 Received: from KIELDERCMS1.open.ac.uk ([137.108.140.186]) by mulberry.open.ac.uk ([137.108.170.73]) with mapi; Wed, 12 Aug 2009 21:41:32 +0100 Thread-Topic: Named parameters in macros Thread-Index: AQHKG40cHvtSHp8NVUqPujrYxZjcuw== Accept-Language: en-US, en-GB Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US, en-GB Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by listserv.uni-heidelberg.de id n7CKfeAb006765 Message-ID: Date: Wed, 12 Aug 2009 21:40:21 +0100 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: "J.Fine" Subject: Named parameters in macros To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE 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: 12 Aug 2009 20:46:38.0632 (UTC) FILETIME=[FD3AFA80:01CA1B8D] Status: R X-Status: X-Keywords: X-UID: 5913 Hello 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. Not hard to implement in, say, Python. There's proof of concept code in http://pytex.svn.sourceforge.net/viewvc/pytex/trunk/pytex/sandbox/jfine/macroload/ This was announced to comp.text.tex in February this year. There was a discussion, which then sort of petered out. -- Jonathan The Open University is incorporated by Royal Charter (RC 000391), an exempt charity in England & Wales and a charity registered in Scotland (SC 038302).