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
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
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
Dear all,
I would like to place small pdf images (of short musical phrases) in my text
I can do so manually by inserting horizontal space at the spot where I want to
insert
the pdf and store the horizontal and vertical position of the spot and use that
to
place the pdf using:
\Z'\h''\v'
width