|
From: Daniel J S. <dan...@ie...> - 2005-07-01 20:57:29
|
Ethan Merritt wrote:
> On Thursday 30 June 2005 10:03 pm, Daniel J Sebald wrote:
>
>>How about
>>
>>Syntax:
>> set key {on|off} {default}
>> {{inside | tmargin | bmargin | lmargin | rmargin} | {at <position>}}
>> {left | right | center} {top | bottom | center}
>>
>>where
>>
>>"above" = "tmargin"
>>"below" = "bmargin"
>>"outside" = "rmargin" + "top"
>
>
> Looks reasonable.
Oh yeah, "under" = "outside".
Why not take this one step further and cover all bases? Having corner position influenced by "vert/horiz" may be a nice feature, for those people who don't want to think to much. How about the slight variation on the above:
Syntax:
set key {on|off} {default}
{{inside | outside} | {at <position>}
| {tmargin | bmargin | lmargin | rmargin}}
{left | right | center} {top | bottom | center}
{vertical | horizontal} {Left | Right}
[...]
where
"above" = "tmargin"
"below" = "bmargin"
"below" without left/right appearing on line = "bmargin" + "center"
"under" = "below"
"outside" without left/right = "rmargin" (can use top/bottom/center
for positioning)
"outside" with left/right determines corner positions based
upon "vertical/horizontal"
The groupings of {inside|outside} {at } and {tmargin|bmargin...} are very natural, I think. Backward compatibility is maintained. There is a slight
problem that
set key left
set key outside
or
set key right
set key below
might not work as expected, but I think that is minor.
Sorry for having gone around in circles here a bit. [I think all I've done is propose adding {tmargin|bmargin|...}.] I'll create a version with the above syntax tomorrow.
Dan
|