Some Groff examples for me and anyone else confused as to how to use the typesetting libraries.
I would just use a container via Podman or Docker to run a Linux distro that has GNU Groff available in it with all the other tools.
I had to put this into its own document because the comments were being interpreted literally and causing issues in the end result document. TexLive LaTeX does this better.
I use Fedora, but I install the following packages.
sudo dnf install --assumeyes \
  groff \
  groff-base \
  groff-doc \
  groff-perl \
  perl-IO-Compress \
  ghostscriptThen to build the .ms files, I use the following command.
groff -Tpdf -ms groff_ms_example.ms > groff_ms_example.pdf