LATEX-L Archives

Mailing list for the LaTeX3 project

LATEX-L@LISTSERV.UNI-HEIDELBERG.DE

Options: Use Forum View

Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Frank Mittelbach <[log in to unmask]>
Reply To:
Mailing list for the LaTeX3 project <[log in to unmask]>
Date:
Tue, 17 May 2011 00:16:23 +0200
Content-Type:
text/plain
Parts/Attachments:
text/plain (50 lines)
Paul Thompson writes:

 > I really wish that the positional thing was somewhat deprecated in favor of
 > a named argument approach, which would replace the limit of 9 at some
 > point.

sure, but you don't want to force people to write each time

 <linebreak | color=normal, pagebreak-allowed = true, vertical-skip = 3pt >

for

 \\[3pt]

and even if supported by a good syntax editor this isn't making readable
sources.

I've written quite a lot about the layer approach that I see for the l3
language where the top-layer should be totally replacable. And I see xparse as
nothing but a reimp (more or less) of the 2e syntax to bridge this world

My personal favorite lies somewhere else, basically in commands with named
attributes for "all of their modifiable features and arguments" but combined
with a positional system that can be layered on top (either by users choice or
by default conventions.

not proposing this as a new syntax but conceptually  something like

 \\<color=blue,pagebreak-allowed = false,vertical-skip = 3pt>
 \\<color=blue,pagebreak-allowed = false>[3pt]
 \\<color=blue>*[3pt]

all being equal.


ie each command having one optional arg structure that contains key/vals + a
defined set of positionals that cover "normal usage aspects" only.
and probably with the positional overwriting any named ones,
eg

 \\<color=blue,pagebreak-allowed = false,vertical-skip = 10pt>[3pt]

still giving 3pt space.

too much rambling after midnight, I'll better stop (this is NOT a proposal for
a concrete syntax)

night
frank

ATOM RSS1 RSS2