Re: Creating macro for inline placement of pdf images

2022-11-16 Thread hbezemer--- via
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

Re: Creating macro for inline placement of pdf images

2022-11-15 Thread hbezemer--- via
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

Re: Creating macro for inline placement of pdf images

2022-11-14 Thread Peter Schaffter
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

Creating macro for inline placement of pdf images

2022-11-14 Thread hbezemer--- via
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