On the Solaris operating system, the dpost command is a troff postprocessor for PostScript printers.

Description

dpost translates files created by troff into PostScript and writes the results on the standard output. If no files are specified, or if “-” is one of the input files, the standard input is read.

  • Description
  • Syntax
  • Options
  • Examples
  • Related commands
  • Linux commands help

The files should be prepared by troff. The default font files in /usr/lib/font/devpost produce the best and most efficient output. They assume a resolution of 720 dpi, and can format files by adding the -Tpost option to the troff command. Older versions of the eqn and pic preprocessors need to know the resolution that troff will be using to format the files. If those are the versions installed on your system, use the -r720 option with eqn and -T720 with pic.

dpost makes no assumptions about resolutions. The first x res command sets the resolution used to translate the input files, the DESC.out file, usually /usr/lib/font/devpost/DESC.out, defines the resolution used in the binary font files, and the PostScript prologue is responsible for setting up an appropriate user coordinate system.

Syntax

dpost [-c num] [-e num] [-m num] [-n num] [-o list] [-w num] [-x num] [-y num] [-F dir] [-H dir] [-L file] [-O] [-T name] [file]…

Options

Examples

pic -T720 file | tbl | eqn -r720 | troff -mm -Tpost | dpost

This command will likely give the best formatting for a system with older versions of eqn and pic installed. The specific parameters can be tweaked according to the printing results on your particular hardware setup.

troff — Typeset or format documents for terminal display or line-printer.