Received: from mail.proteosys.com ([213.139.130.197]) by nummer-3.proteosys with Microsoft SMTPSVC(6.0.3790.3959); Wed, 26 Aug 2009 13:15:01 +0200 Received: by mail.proteosys.com (8.14.3/8.14.3) with ESMTP id n7QBF0dD007504 for ; Wed, 26 Aug 2009 13:15:01 +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 n7QB9EKr012424 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 26 Aug 2009 13:09:14 +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 n7QA7EEc003678; Wed, 26 Aug 2009 13:09:08 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 15.5) with spool id 287867 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Wed, 26 Aug 2009 13:09:08 +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 n7QB98At003344 for ; Wed, 26 Aug 2009 13:09:08 +0200 Received: from av9-1-sn2.hy.skanova.net (av9-1-sn2.hy.skanova.net [81.228.8.179]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id n7QB8rmG026218 for ; Wed, 26 Aug 2009 13:08:57 +0200 Received: by av9-1-sn2.hy.skanova.net (Postfix, from userid 502) id 2C7C837F67; Wed, 26 Aug 2009 13:08:53 +0200 (CEST) Received: from smtp4-2-sn2.hy.skanova.net (smtp4-2-sn2.hy.skanova.net [81.228.8.93]) by av9-1-sn2.hy.skanova.net (Postfix) with ESMTP id E83E437E97 for ; Wed, 26 Aug 2009 13:08:52 +0200 (CEST) Received: from Kuben.local (90-230-192-94-no86.tbcn.telia.com [90.230.192.94]) by smtp4-2-sn2.hy.skanova.net (Postfix) with ESMTP id B2E3A37E45 for ; Wed, 26 Aug 2009 13:08:52 +0200 (CEST) User-Agent: Thunderbird 2.0.0.22 (Macintosh/20090605) MIME-Version: 1.0 References: <122D1D66-1300-424C-9FBC-11C0B0CCB6C9@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by listserv.uni-heidelberg.de id n7QB98At003345 Message-ID: <4A9517EA.208@residenset.net> Date: Wed, 26 Aug 2009 13:09:30 +0200 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: =?ISO-8859-1?Q?Lars_Hellstr=F6m?= Subject: Re: template vs template-alt To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE In-Reply-To: <122D1D66-1300-424C-9FBC-11C0B0CCB6C9@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: 26 Aug 2009 11:15:01.0653 (UTC) FILETIME=[746BCC50:01CA263E] Status: R X-Status: X-Keywords: X-UID: 6009 Will Robertson skrev: > Discussion: > > 1. Despite the large increase in verbosity (doubling the line count), I > think I like splitting the defaults into separate keyvals. In fact, > after splitting defaults from the definition of the keys, it's no longer > clear to me whether defaults should be included within the template > definition at all. Agreed. I recall from my own experiments (long ago) with template that the defaults-in-definitions were troublesome. I think I ended up not using them at all. > 2. If template-alt is going to auto-detect variables and set them > appropriately, perhaps it could do the same for functions. > > number-format .set:N = \caption_number_format:nn > > could look at the signature of \caption_number_format:nn and use > \cs_set:Nn automagically, I think. I'm generally not keen on automagic stuff myself, but that's just me. 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. Lars Hellström