groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] www.tmac -- .MPIMG enhancement


From: Heinz-Jürgen Oertel
Subject: Re: [Groff] www.tmac -- .MPIMG enhancement
Date: Thu, 17 Jul 2003 20:52:24 +0200
User-agent: KMail/1.5.1

Am Donnerstag, 17. Juli 2003 11:32 schrieb Gaius Mulley:
> Ralph Corderoy <address@hidden> writes:
> > Hi Gaius,
> >
> > > how about
> > >
> > >     .\" MPIMG [-R|-L] filename [width] [height] [-G gap]
> > >     .MPIMG -L pic/3.png 8c 8c -G 1c
> > >
> > > a little complex but at least it allows the user to omit the height
> > > and width for that matter..
> >
> > Would
> >
> >     .\" MPIMG [-R|-L] [-G gap] filename [width] [height]
> >
> > be more consistent?
>
> Hi Ralph,
>
> yes, much better - I guess I was attempting to be compatible with
> previous versions. But in hindsight this soon generates ugly solutions
>
> :-)
>
> Gaius


Gaius and Ralph,
I like this one more too.  The reason for asking was more or less getting a 
hint of argument handling of the macros. I took a while to see that one of 
'-R' or '-L' is mandatory, not optional like the comment:  
.MPIMG [-R|-L]  ....
suggests when using the [...] syntax.
Look for example at line 531 or 583, the picture is always $2, the second 
macro argument. That means, deciding that
-R | -L      is  $1
-G gap       is  $2 and $3
image        is  $4
 - and really optional
width        is  $5
height       is  $6

implementing '-G gap' is than simple and straight forward
Do you all agree ?

Regards
 Heinz




-- 

with best regards / mit freundlichen Grüßen

   Heinz-Jürgen Oertel
+===================================================================
| Heinz-Jürgen Oertel  port GmbH  http://www.port.de
| mailto:address@hidden
| phone +49 345 77755-0     fax   +49 345 77755-20
| Regensburger Str. 7b,     D-06132 Halle/Saale,  Germany 
| CAN Wiki    http://www.port.de/cgi-bin/CAN
| Newsletter: http://www.port.de/engl/company/content/abo_form.html
+===================================================================


reply via email to

[Prev in Thread] Current Thread [Next in Thread]