современные макросы для компоновки документов с GNU roff (modern macros for document composition with GNU roff)
Calling [22mmom[24m [1m
mom
is a macro set for groff
, designed primarily to format
documents for PDF and PostScript output.
mom
provides two categories of macros: macros for typesetting,
and macros for document processing. The typesetting macros
provide access to groff's typesetting capabilities in ways that
are simpler to master than groff's primitives. The document
processing macros provide highly customizable markup tags that
allow the user to design and output professional-looking
documents with a minimum of typesetting intervention.
Files processed with pdfmom(1) with or without the -Tps option,
produce PDF documents. The documents include a PDF outline that
appears in the 'Contents' panel of document viewers, and may
contain clickable internal and external links.
When -Tps is absent, groff's
native PDF driver, gropdf
, is used
to generate the output. When given, the output is still PDF, but
processing is passed over to pdfroff
, which uses groff's
PostScript driver, grops
. Not all PDF features are available
when -Tps is given; its primary use is to allow processing of
files with embedded PostScript images.
Files processed with groff -mom
(or -m mom
) produce PostScript
output by default.
mom
comes with her own very complete documentation in HTML
format. A separate PDF manual, Producing PDFs with groff and
mom
, covers full mom
or PDF usage.