Received: from mail.proteosys.com ([213.139.130.197]) by nummer-3.proteosys with Microsoft SMTPSVC(6.0.3790.3959); Thu, 27 Aug 2009 11:47:14 +0200 Received: by mail.proteosys.com (8.14.3/8.14.3) with ESMTP id n7R9lDCx032660 for ; Thu, 27 Aug 2009 11:47:13 +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 n7R9hYQS001648 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 27 Aug 2009 11:43:34 +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 n7R9WCmk024430; Thu, 27 Aug 2009 11:43:28 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 15.5) with spool id 295432 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Thu, 27 Aug 2009 11:43:27 +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 n7R9hRKM014025 for ; Thu, 27 Aug 2009 11:43:27 +0200 Received: from pluto.open.ac.uk (pluto.open.ac.uk [137.108.145.32]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id n7R9hC8V001197 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 27 Aug 2009 11:43:15 +0200 Received: from laurel.open.ac.uk ([137.108.170.71]) by pluto.open.ac.uk with esmtp (Exim 4.69) (envelope-from ) id 1MgbVf-000445-PP for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Thu, 27 Aug 2009 10:43:11 +0100 Received: from KIELDERCMS1.open.ac.uk ([137.108.140.185]) by LAUREL.open.ac.uk ([137.108.170.71]) with mapi; Thu, 27 Aug 2009 10:43:11 +0100 Thread-Topic: template vs template-alt Thread-Index: AcomuCDr1S4r0G4fRbOnAnISIYIqSwAQYfsQ References: <122D1D66-1300-424C-9FBC-11C0B0CCB6C9@gmail.com> <4A9517EA.208@residenset.net> <7FF23F49-785D-444F-94E0-28498B035A60@gmail.com> Accept-Language: en-US, en-GB Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US, en-GB Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by listserv.uni-heidelberg.de id n7R9hRKM014026 Message-ID: Date: Thu, 27 Aug 2009 10:43:09 +0100 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: "J.Fine" Subject: Re: template vs template-alt To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE In-Reply-To: <7FF23F49-785D-444F-94E0-28498B035A60@gmail.com> 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: 27 Aug 2009 09:47:14.0135 (UTC) FILETIME=[5B261670:01CA26FB] Status: R X-Status: X-Keywords: X-UID: 6012 Will Robertson wrote: > On 26/08/2009, at 8:39 PM, Lars Hellström wrote: > > > One remark without having looked at template-alt in detail is > > however that the signatures above feel as though they're on the > > wrong side of the =. That there are two arguments is a property of > > number-format; you need to know this when providing a value for this > > parameter. The :N signature rather seems like it applies to the > > implementation, the details of which are otherwise in the right hand > > side. > > > The current interface evolved from pgfkeys; I can't say I disagree > with you but I think a simpler scheme might involve a more complex > parser. > > This is what the current syntax is: > > number-format .set:N = \caption_number_format:nn > > The problem in parsing is that spaces are (probably) going to be > ignored, so there has to be some token between the key, the signature, > and the argument. We could read everything up to the first brace, I > suppose: > > number-format = set:N {\caption_number_format:nn} [snip] This illustrates the point I made before (named parameters for macros), which is that the implementation language (TeX macros) is constraining what the system can do (the input syntax). Donald Knuth wanted TeX to be 'just a typesetting language' and said that 'if there were a universal simple interpretive language that was common to other systems, naturally I would have latched onto that right away'. Please, please, please decide what you want to do and then decide the implementation language. (Leslie Lamport did something similar with LaTeX, when he wrote much of the code in Lisp before translating it into TeX macros. This is visible in the comments that were part of LaTeX209 source.) Please don't decide ahead of time to write the whole system in TeX macros. -- 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).