← 返回命令列表

Linux command

eqn 命令

文本

涉及管道、覆盖或删除,执行前请先确认路径和参数。

常用示例

Process equations

eqn [document.ms] | troff -ms

Process with groff

groff -e -ms [document.ms]

Process to stdout

eqn [equations.eqn]

说明

eqn is a preprocessor for troff that formats mathematical equations. It converts a high-level equation description language into troff commands for typeset output. Equations are enclosed between .EQ and .EN macros or inline delimiters. The language uses words like "over" for fractions, "sup" for superscripts, and "sqrt" for roots. eqn is typically used in a pipeline with troff/groff for producing technical documents with mathematical notation.

参数

-d _XY_
Set delimiters for inline equations.
-f _FONT_
Set font for equations.
-s _SIZE_
Set point size.
-p _N_
Subscript/superscript size reduction.
-C
Recognize .EQ and .EN even in comments.

FAQ

What is the eqn command used for?

eqn is a preprocessor for troff that formats mathematical equations. It converts a high-level equation description language into troff commands for typeset output. Equations are enclosed between .EQ and .EN macros or inline delimiters. The language uses words like "over" for fractions, "sup" for superscripts, and "sqrt" for roots. eqn is typically used in a pipeline with troff/groff for producing technical documents with mathematical notation.

How do I run a basic eqn example?

Run `eqn [document.ms] | troff -ms` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -d _XY_ do in eqn?

Set delimiters for inline equations.