Am Freitag, 25. November 2016, 16:47:26 schrieb Robert Marks: > I have recently had to embed a PDF image in a groff document and so have > been using > groff -Tpdf > to do so. > But I find that my \m[red] etc color commands are not recognised (and there > are error messages.. > Some work on Google led me to the Ubuntu gropdf manual, which states: > > The default color for \m and \M is black; for colors defined in the > ‘rgb’ color space setrgbcolor is used, for ‘cmy’ and > ‘cmyk’ > setcmykcolor, and for ‘gray’ setgray. Note that setcmykcolor > is a > PostScript LanguageLevel 2 command and thus not available on some > older > printers. > > Searching for setrgbcolor tells me that it's a PS commend to be used: > .ds RED \X'ps: exec 1 0 0 setrgbcolor' > and then referring to \*[RED] to change the color from black, say. > > But there is no change (and no error messages). Using groff 1.22.2 > > Any advice on using color in gropdf or groff -Tpdf ? > > Thanks, > > Bob
Only to let you know that it works for me groff -Tpdf inCom.t2 > inCom.pdf ; okular inCom.pdf On openSuse. Please that the font switch \f[BHD] is not working here, but the colors. Regards Heinz
inCom.pdf
Description: Adobe PDF document
.ps 42 .sp |5c .defcolor ciagreen rgb 0.0 0.6 0.38 .LP \f[BHD]\m[red]in\f[BHB]\m[ciagreen]Comm\fP
