groff
[Top][All Lists]
Advanced

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

Re: Novel use of .char


From: Deri
Subject: Re: Novel use of .char
Date: Wed, 18 Dec 2024 11:10:52 +0000

On Wednesday, 18 December 2024 00:14:38 GMT Tadziu Hoffmann wrote:
> If the former, then it seems a pretty roundabout way of achieving
> the purpose.  For example, using the ps device, the following is
> sufficient:
> 
>   .char \[gnu] \X'ps: import GNU-head-small.ps 0 0 25 22 10000'\h'10p'
>   A GNU head \[gnu] image.
> 
> Can something similarly simple be done in pdf, too?

Hi Tadziu,

This is my fault. I wrote "pdf: pdfpic" to mimic the behaviour of .PSPIC, 
render image down from current point, not realising (until now!) that "ps: 
import" renders the image up from the current point. This difference in 
behaviour is somewhat masked because the higher level interfaces, .PSPIC and 
.PDFPIC, both render the image downwards.

The above difference means this works for pdf:-

  .char \[gnu] \v'-9p'\X'pdf: pdfpic GNU-head-small.pdf -L 10p'\h'10p'
  A GNU head \[gnu] image.

There may be an argument for adding "pdf: pdfpicup" to gropdf to render 
upwards, for this type of situation where the image is intended to sit on the 
baseline.

Cheers 

Deri






reply via email to

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