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