> I wrote "pdf: pdfpic" to mimic the behaviour of .PSPIC, > render image down from current point, [...] > 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.
Thanks for the feedback! This solution is perfectly workable. However, I had to change the -9p to -8.8p (which is the aspect ratio of the image times 10p) to get the baseline of the text to the right of the image to be aligned with the text on the left. Interestingly, I also get a vertical shift if I wrap the sequence \v'...'\X'...' in \Z'...' which is supposed to restore the horizontal and vertical position after outputting the contents. Does that mean that the pdfpic special does not restore the graphics state (with q/Q) after inserting the image file? In that case there might be a discrepancy between what troff and gropdf consider to be the current output position.