Dear all,
After some thinkering I came up with this macro:
.de INLINE
.ec @
.sy pdfinfo @$1 | \
grep -a "Page *size" | \
sed -e 's/Page *size: *\\([[:digit:].]*\\) *x *\\([[:digit:].]*\\).*$/\
.nr in-wid (p;\\1)\\n\
.nr in-ht (p;\\2)/' \
> /tmp/pdfpicA
.so /tmp/pdfpicA
.sy rm /tmp/pdfpicA
.ec
.sy
Dear Peter,
Thank you for your eloborate answer.
I will look into it and give a heads up when I got it working.
Regards!
Hans
Peter Schaffter wrote:
> Hans --
>
> > What would be the best approach to create a macro which inserts a
> > image inline?
>
> I field this question a lot from mom u
Hans --
> What would be the best approach to create a macro which inserts a
> image inline?
I field this question a lot from mom users. Here's the solution I
suggest. It's mom-specific but should help. Basically, you
create a diversion to hold the graphic, map the diversion to a
character with