X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil] ["1479" "Tue" " 8" "February" "1994" "20:51:00" "+0100" "Frank Poppe" "POPPE@swov.nl" "<199402090749.AA09370@mail.cs.tu-berlin.de>" "30" "Re: additional features" "^Date:" nil nil "2" "1994020819:51:00" "additional features" nil nil]) Return-Path: Received: from sc.ZIB-Berlin.DE (mailserv) by dagobert.ZIB-Berlin.DE (4.1/SMI-4.0/24.6.93) id AA09654; Wed, 9 Feb 94 08:49:41 +0100 Received: from mail.cs.tu-berlin.de by sc.ZIB-Berlin.DE (4.1/SMI-4.0-sc/03.06.93) id AA22549; Wed, 9 Feb 94 08:49:30 +0100 Received: from tubvm.cs.tu-berlin.de by mail.cs.tu-berlin.de with SMTP id AA09370 (5.65c8/IDA-1.4.4(mail.m4[1.12]) for <@MAIL.CS.TU-BERLIN.DE:Schoepf@SC.ZIB-BERLIN.DE>); Wed, 9 Feb 1994 08:49:27 +0100 Message-Id: <199402090749.AA09370@mail.cs.tu-berlin.de> Received: from TUBVM.CS.TU-BERLIN.DE by tubvm.cs.tu-berlin.de (IBM VM SMTP V2R2) with BSMTP id 2929; Wed, 09 Feb 94 08:49:16 +0200 Received: from VM.URZ.UNI-HEIDELBERG.DE (NJE origin MAILER@DHDURZ1) by TUBVM.CS.TU-BERLIN.DE (LMail V1.2a/1.8a) with BSMTP id 2927; Wed, 9 Feb 1994 08:49:16 +0200 Received: from VM.URZ.UNI-HEIDELBERG.DE (NJE origin LISTSERV@DHDURZ1) by VM.URZ.UNI-HEIDELBERG.DE (LMail V1.2a/1.8a) with BSMTP id 4076; Tue, 8 Feb 1994 20:51:28 +0000 Reply-To: Mailing list for the LaTeX3 project Date: Tue, 8 Feb 1994 20:51:00 +0100 From: Frank Poppe Sender: Mailing list for the LaTeX3 project To: Multiple recipients of list LATEX-L Subject: Re: additional features Status: R X-Status: X-Keywords: X-UID: 1477 Hi, Although a lot of people seem to be interested in the idea of more optional argument to commands, all proposed methods seem to have serious disadvantages. Has the method of "optional keywordsyntax" been considered? I have been thinking of a method which would keep (for obvious compatibility reasons) the old syntax of \command[optional-argument-value]{required-argument-value} but would be able to switch to a keyword system. One would not need an extra pair of characters, one could simply use the brackets as delimiters for the keyword: \command[[keyword1]value[keyword2]value]{required-argument-value} I'll probably overlook a lot of problems, but it seems that a second \ifnextchar[ would differentiate between the one-argument and the keyword system. Coming back to the original question, it would mean that the following two commands both would be valid in LaTeX3 (or LaTeX2e+?) \section[short text]{the full text} \section[[mark]very short text[toc]somewhat longer text]{the full text} _____________________________________________________________________________ Frank Poppe tel: +31 70 3209323 Institute for Road Safety Research SWOV fax: +31 70 3201261 ,,, ,, ,, ,, .... ,, ,, mail: PO Box 170 ||,,, || || || :: :: || || 2260 AD Leidschendam ,,,|~ ||,'|,~ :: :' ||,~ the Netherlands