groff:我可以嵌入图像吗? [英] groff: can I embed images?
问题描述
我正在生成一些troff风格的文档.有没有办法将图像(jpg等)嵌入到groff文件中?
I'm generating some troff-style documentation. Is there a way to embed an image (jpg, etc) into a groff file?
推荐答案
取决于输出格式.如果要创建PostScript文件,则可以使用PSPIC,该PSPIC本身将PS文件与单个图像一起使用.例如:
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:
.PSPIC image.ps
对齐方式有一些限制.默认情况下,它与中心对齐,但是您可以使用-L或-R将其放在左或右角.还有其他一些选项,请检查 groff_tmac手册页(搜索pspic).
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).
如果要创建网页,则可能需要使用.IMG.语法是一样的.
If you are creating a webpage you might need to use .IMG instead. The syntax is the same.
这篇关于groff:我可以嵌入图像吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!