I'm generating some troff-style documentation. Is there a way to embed an image (jpg, etc) into a groff file?
相关问题
- Views base64 encoded blob in HTML with PHP
- How to get the background from multiple images by
- CV2 Image Error: error: (-215:Assertion failed) !s
- Replace image attributes for lazyload plugin on im
- How to display an image represented by three matri
相关文章
- Use savefig in Python with string and iterative in
- Where does this quality loss on Images come from?
- Specifying image dimensions in HTML vs CSS for pag
- How to insert pictures into each individual bar in
- How do I append metadata to an image in Matlab?
- Img url to dataurl using JavaScript
- Click an image, get coordinates
- C# Saving huge images
I use groff to prepare data analysis reports, and often need to tweak my graphs outside of R using Inkscape.
The following may not be to purists' liking but it works for me. Carefully name the images as you generate them, and provision the necessary vertical space for each image, adding appropriate labels.
Create the report's pdf (say
tbl report.roff | eqn | groff -Tps -ms | ps2pdfwr - report.pdf
) and use Inkscape (or any other pdf editor such as Pdf Studio) to copy-paste the images in the report's pdf.Depends on the output format. If you are creating a PostScript file, you can use PSPIC which uses a PS file itself with a single image. For example:
Alignment, etc is a bit limited. By default it is aligned to the center but you can put it at the left or the right corner using -L or -R. There are some other options, check the groff_tmac manpage for these (search for pspic).
If you are creating a webpage you might need to use .IMG instead. The syntax is the same.