groff
[Top][All Lists]
Advanced

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

Re: [Groff] Where is .PSPIC documented now ?


From: Gaius Mulley
Subject: Re: [Groff] Where is .PSPIC documented now ?
Date: 24 Sep 2004 23:45:20 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Heinz-Jürgen Oertel <address@hidden> writes:

> Hi Gaius,
> First (besides the .align-image requests)
> the given syntax of the 
>  .IMG [-R|-L|-C] filename [width] [height]
> 
> is _wrong_
> the first macro argument must be the filename, followed by an mandatory 
> alignment. Look at lines like:
> .    ie '\\$2'-R' \
> expecting the alignment as second argument, and 
> .    HTML <img src="\\$1" width=\\n[www-width] height=\\n[www-height]>
> expecting the image file name as first.
> We agreed already to have the implementation according the current 
> groff_www(7) with the alignment as _optional_ first argument.
> 
> Something must have changed between your first implementation and rewriting 
> the man pages.
> 
> The second is the function:
> Look at the following example. It should work according the macro 
> implementation, not the documentation:
> -----------------------------------------
> .LP
> Lets see how .IMG works.
> With -L
> .LP
> .IMG university.png -L
> .LP
> With -C
> .LP
> .IMG university.png -C
> .LP
> With -R
> .LP
> .IMG university.png -R

snipped output

> -----------------------------------------
> What I'm doing wrong? All images are left-aligned
> 
> Hope this helps to see the problem, or to tell me what I'm doing wrong.
> Thanks


Hi Heinz,

Thanks for the example and output. Certainly a bug, in fact I think it
may have become broken when grohtml was rewritten. The left-image,
right-image, center-image etc has no effect, as you've pointed out,
and I'm beginning to think this should be altered to a .left-para,
.right-para, .center-para or similar as it was intended to effect the
surrounding <p align=> rather than the <img align=>. The later being
served by MPIMG. You're right about the inconsistency between
documentation and macro set - feel free to fix the macro set to behave
as per documentation. (Though the paragraph alignment won't take
effect until post-grohtml is modified). You can test to see that the
new macro set works if you supply the -Z option to groff and eyeball
the ditroff output (which will include your html-tags as specials in
your output).

hope this helps,

Gaius




reply via email to

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