groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] Colors with gropdf


From: Heinz-Jürgen Oertel
Subject: Re: [Groff] Colors with gropdf
Date: Fri, 25 Nov 2016 10:06:43 +0100
User-agent: KMail/4.14.10 (Linux/3.16.7-48-desktop; KDE/4.14.9; x86_64; ; )

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

Attachment: inCom.pdf
Description: Adobe PDF document

Attachment: inCom.t2
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]