Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) by h1439878.stratoserver.net (8.14.2/8.14.2/Debian-2build1) with ESMTP id s7O1sr4R006589 for ; Sun, 24 Aug 2014 03:54:54 +0200 Received: from relay2.uni-heidelberg.de ([129.206.210.211]) by mx-ha.gmx.net (mxgmx108) with ESMTPS (Nemesis) id 0LhlJV-1WYsyc3XPt-00muc4 for ; Sun, 24 Aug 2014 03:54:48 +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 s7O1pRVi017939 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 24 Aug 2014 03:51:27 +0200 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [127.0.0.1]) by listserv.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id s7NM13iG028092; Sun, 24 Aug 2014 03:51:26 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 11246410 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Sun, 24 Aug 2014 03:51:26 +0200 Received: from relay2.uni-heidelberg.de (relay2.uni-heidelberg.de [129.206.210.211]) by listserv.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id s7O1pQqD008428 for ; Sun, 24 Aug 2014 03:51:26 +0200 Received: from mail-pd0-f178.google.com (mail-pd0-f178.google.com [209.85.192.178]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id s7O1pArj017793 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=FAIL) for ; Sun, 24 Aug 2014 03:51:14 +0200 Received: by mail-pd0-f178.google.com with SMTP id w10so18122041pde.9 for ; Sat, 23 Aug 2014 18:51:09 -0700 (PDT) X-Received: by 10.66.160.233 with SMTP id xn9mr16802580pab.29.1408845069734; Sat, 23 Aug 2014 18:51:09 -0700 (PDT) Received: from [192.168.0.9] ([101.166.11.86]) by mx.google.com with ESMTPSA id qi7sm33045263pbc.14.2014.08.23.18.51.08 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 23 Aug 2014 18:51:08 -0700 (PDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\)) References: <53F667E1.8080909@morningstar2.co.uk> X-Mailer: Apple Mail (2.1878.2) X-MIME-Autoconverted: from quoted-printable to 8bit by listserv.uni-heidelberg.de id s7O1pQqD008429 Message-ID: <5B8B103B-5CCD-490E-9177-F1B8F65C26BF@gmail.com> Date: Sun, 24 Aug 2014 11:23:25 +0930 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Will Robertson Subject: Re: Thoughts on xtemplate To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE In-Reply-To: Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by relay2.uni-heidelberg.de id s7O1pRVi017939 Envelope-To: X-GMX-Antispam: 0 (Mail was not recognized as spam); Detail=V3; X-GMX-Antivirus: 0 (no virus found) X-UI-Filterresults: notjunk:1;V01:K0:++SSfHQdYVs=:Cg1KFR6DaP+yfdzl1WD4Tvy1dH 34cqyv9evQGWdXn6wWkKgtDhs05fksVvdM2Ya4OcnRPLQD+aDibBcdDs5d8F0qHeUCJFZcpvG H0XXIp2BKlQZBen3fOwK/+0FJ2usFw4wPsL+HSViUd3Lnre8X2NzdOuhqZyhjiL5uLLMGNsl2 kG39jQyb0ebRO76cG6mDBoi9closeecZNP5bSg40ibcDTaRZ9+CbpP3NITkJ6LR3Ayx9QH/5v xBJCx7FjhiIdhcGTBPw0P+cIGp+nAQhpXo16GV/5L0w2NZAWgGEG2pIAc2pcGE3vCKtpF2We/ S8JCRqX2LZcjtPCehsUy1itqujG9J/C7FgeI7D0P+Ds37XN6HDFIQ0b35gjDK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kyOadmFoYOlhTTFE4Vo22uHo2MhJaW4sbZUe5 HCk2DaxzfRopNBTNsaShM5avGkR4WdjBrBZ7mFgEtBmfjeImq3RNR7QyrlwAkhimLauT+TfA= = X-UI-Loop:V01:zIxqL8nifvA=:jVifZFzMLej1I7dUiG5/d+QF+39YR0aV0kT6+LMfe3k= X-UI-Out-Filterresults: notjunk:1; Status: R X-Status: X-Keywords: X-UID: 7574 On 23 Aug 2014, at 4:49 am, Sean Allred wrote: > And I don't mean to advocate that these objects should be able to have > many (9+) mandatory arguments; I'm far more concerned with the > homelessness for optional ones. I think after Frank=92s experiments with sectioning, it became apparent t= hat this was a major stumbling block. When a chapter heading can have 1. title 2. toc title 3. header title 4. label 5. unnumbered flag 6. author 7. epigraph =85 it no longer makes sense to require mandatory arguments. On the other han= d I do see Joseph=92s point that when you have just one or two actually m= andatory arguments that writing the following is a bit ugly: \UseInstance{crossref}{latex2e}{ label =3D #1 }% only one mandatory ar= gument * * * A model that I think has worked quite well in the LaTeX world is how BibT= eX has a notion of =93mandatory=94 and =93optional=94 fields for bibliogr= aphy references. Perhaps we could supplement the current xtemplate interface with a keyval= -type-argument (one only per interface, of course), in which the optional= /mandatory nature of each keyval item within is specified by the document= design (and some may well be always mandatory). So according to the situation you could have either \UseInstance{=85}{=85}{arg one}{arg two}{arg three} or \UseInstance{=85}{=85}{ arg-one=3D=85 , arg-two=3D=85, arg-three=3D=85= } or even a combination of the two: \UseInstance{=85}{=85}{arg one}{ arg-two=3D=85, arg-three=3D=85 } Any thoughts? Will