X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil] ["1774" "Thu" "30" "September" "1999" "09:29:57" "-0400" "Richard Hensh" "hensh@MATH.MSU.EDU" nil "50" "Re: xparse and end-users" "^Date:" nil nil "9" nil nil nil nil nil] nil) Received: from mail.listserv.gmd.de (mail.listserv.gmd.de [192.88.97.5]) by mail.Uni-Mainz.DE (8.9.3/8.9.3) with ESMTP id PAA19975 for ; Thu, 30 Sep 1999 15:26:25 +0200 (MET DST) Received: from mail.listserv.gmd.de (192.88.97.5) by mail.listserv.gmd.de (LSMTP for OpenVMS v1.1a) with SMTP id <6.99071EA4@mail.listserv.gmd.de>; Thu, 30 Sep 1999 15:26:15 +0200 Received: from RELAY.URZ.UNI-HEIDELBERG.DE by RELAY.URZ.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 1.8b) with spool id 444978 for LATEX-L@RELAY.URZ.UNI-HEIDELBERG.DE; Thu, 30 Sep 1999 15:24:51 +0200 Received: from mets.tcimet.net (news.tci.east-lansing.mi.us [198.109.160.2]) by relay.urz.uni-heidelberg.de (8.8.8/8.8.8) with ESMTP id PAA22669 for ; Thu, 30 Sep 1999 15:24:44 +0200 (MET DST) Received: from hensh ([35.12.163.51]) by mets.tcimet.net (8.8.5/8.8.5) with SMTP id JAA08612 for ; Thu, 30 Sep 1999 09:25:37 -0400 (EDT) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Message-ID: Reply-To: Mailing list for the LaTeX3 project In-Reply-To: <14323.11449.969779.155196@n15ux24.nets.de.eds.com> Date: Thu, 30 Sep 1999 09:29:57 -0400 From: Richard Hensh Sender: Mailing list for the LaTeX3 project To: Multiple recipients of list LATEX-L Subject: Re: xparse and end-users Status: R X-Status: X-Keywords: X-UID: 3339 Yes it does. Thanks. BTW, there has been some discussion about the Latex Companion in ctt. Is a revised edition in the works? ;-> ricky -----Original Message----- From: Mailing list for the LaTeX3 project [mailto:LATEX-L@URZ.UNI-HEIDELBERG.DE]On Behalf Of Frank Mittelbach Sent: Thursday, September 30, 1999 5:26 AM To: Multiple recipients of list LATEX-L Subject: Re: xparse and end-users Richard Hensh writes: > What does (or will) xparse offer to the casual end user? How about someone > who is not afraid to write a few macros but is not interested in designing > classes? well xparse offers the ability to produce macros that have the look and feel of standard LaTeX without the need to resort to lowlevel programming, e.g., if you want to write a macro which has two optional argument (with default values) and one mandatory one you simply write \DeclareDocumentCommand \foo { O{default1} O{default2} n } { < code for the macro where #1 is first optional #2 is second optional and #3 is mandatory argument > } doing this in current LaTeX would require several macros using \@ifnectchar ... calling each other if you like this is a generalization of \newcommand\foo[2][default]{...} which allows you to define a new command with a single optional argument and one mandatory one (or several ones if you replace 2 by a higher number). does this answer your question? frank ps stuff like template.dtx on the other hand is effectively of interest only for class file writers or more explicitly for anybody who wants to change the layout of a class (once classes are written using this mechanism) --- in other words the concept of instances is relevant to everybody (hopefully) even though only a few people will ever write templates for instances.