On Mon, Nov 22, 2021 at 01:56:58PM +0000, Globe Trotter via Mutt-users wrote:
On Monday, November 22, 2021, 02:53:17 AM CST, Anders Damsgaard
<and...@adamsgaard.dk> wrote:
I use the following sh(1) script to format the message as troff andconvert to
pdf: https://adamsgaard.dk/tmp/muttprint-groff.sh
It's a bit ugly in places, but it works for me. This is an example:
https://adamsgaard.dk/tmp/muttprint-example.pdf
I bind it in my muttrc with the following:
set print_command="$HOME/.config/mutt/muttprint-groff.sh"
This gives me the following errors:
infile = /home/gt/tmp/mutt_SnvEqj
tmpfile = /home/gt/tmp/mutt_KAdWKA
outfile = /home/gt/tmp/mutt_f8z8fN.pdf
formatting /home/gt/tmp/mutt_SnvEqj to groff format in /home/gt/tmp/mutt_KAdWKA
running groff /home/gt/tmp/mutt_KAdWKA /home/gt/tmp/mutt_f8z8fN.pdf
troff: fatal error: can't find macro file s
Ahh, long ago, fondly remembered troff days.
It appears the groff invocation asks for a macro package "s"
(aka "ms" macros) that are not found on your system.
On my Fedora 34 system, there are two groff packages, "groff-base"
and "groff". The ms macros are in the groff-base package but not
in the groff package.
Jon
Press any key to continue...
I don't quite get what the problem is.
Thanks again!
End of included message <<<
--
Jon H. LaBadie j...@labadie.us
11226 South Shore Rd. (703) 787-0688 (H)
Reston, VA 20190 (703) 935-6720 (C)