groff
[Top][All Lists]
Advanced

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

Re: [Groff] Elegant -ms and -mpdfmark documents


From: Deri James
Subject: Re: [Groff] Elegant -ms and -mpdfmark documents
Date: Wed, 06 Sep 2017 13:21:58 +0100
User-agent: KMail/4.14.10 (Linux/4.4.82-desktop-1.mga5; KDE/4.14.35; x86_64; ; )

On Tue 05 Sep 2017 23:49:26 Kristaps Dzonsons wrote:
> For example, the colouring of links

You could insert these lines at the top of the .ms file:-

\# These lines set link text and border colours to rgb 0.0 0.3 0.9
.ds PDFHREF.COLOUR 0.0 0.3 0.9
.defcolor pdf:href.colour rgb \*[PDFHREF.COLOUR]
.ds PDFHREF.TEXT.COLOUR pdf:href.colour
\################################################

You don't need to specify -mpdfmark explicitly if you are using -T pdf when you 
call groff. Since your document only contains external references you do not 
need to consider forward references in the document, if you did, the groff 
command line for the pdf device gets a bit more complex, I use something like:-

groff -Tpdf -dPDF.EXPORT=1 -ms -z file.ms 2>&1 | grep \"^\\.ds\" | groff -Tpdf 
-ms -

If using 'ms'.

Alternatively you could use the command "pdfroff" which uses the postscript 
device and ghostscript to produce the pdf:-

pdfroff -mspdf --no-toc-relocation index.ms > index.pdf



reply via email to

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