← 返回命令列表

Linux command

mmroff 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Process an mm document

mmroff [document.mm]

Render to PostScript

mmroff -Tps [document.mm] > [document.ps]

Render to PDF

mmroff -Tpdf [document.mm] > [document.pdf]

Render to HTML for preview

mmroff -Thtml [document.mm] > [document.html]

Build only the cross-reference file

mmroff -x [document.mm]

说明

mmroff is a tiny shell wrapper around groff that handles mm cross references and indexes. It calls groff -mm twice: first with -z -rRef=1 to populate the cross-reference and index files, then again normally to typeset the document. The wrapper also expands PSPIC image inclusions. For mm documents that do not use cross references, indexes, or embedded PostScript pictures, calling groff -mm directly is equivalent and slightly faster.

参数

-x
Build or update the cross-reference / index file and exit without producing output.
--help
Show usage and exit.
--version
Show version and exit.

FAQ

What is the mmroff command used for?

mmroff is a tiny shell wrapper around groff that handles mm cross references and indexes. It calls groff -mm twice: first with -z -rRef=1 to populate the cross-reference and index files, then again normally to typeset the document. The wrapper also expands PSPIC image inclusions. For mm documents that do not use cross references, indexes, or embedded PostScript pictures, calling groff -mm directly is equivalent and slightly faster.

How do I run a basic mmroff example?

Run `mmroff [document.mm]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -x do in mmroff?

Build or update the cross-reference / index file and exit without producing output.