# EQN2GRAPH(1) - man - phpman

[EQN2GRAPH(1)](https://www.chedong.com/phpMan.php/man/EQN2GRAPH/1/markdown)                           General Commands Manual                          [EQN2GRAPH(1)](https://www.chedong.com/phpMan.php/man/EQN2GRAPH/1/markdown)



## NAME
       eqn2graph - convert an EQN equation into a cropped image

## SYNOPSIS
       **eqn2graph** [**-format** _output-format_] [_convert-arguments_]

### eqn2graph --help

### eqn2graph -v
### eqn2graph --version

## DESCRIPTION
       _eqn2graph_  reads a one-line [_eqn_(1)](https://www.chedong.com/phpMan.php/man/eqn/1/markdown) equation from the standard input and writes an image file,
       by default in Portable Network Graphics (PNG) format, to the standard output.

       The input EQN code should _not_ be preceded by the **.EQ** macro that normally precedes  it  within
       [_groff_(1)](https://www.chedong.com/phpMan.php/man/groff/1/markdown) macros; nor do you need to have dollar-sign or other delimiters around the equation.

       Arguments not recognized by _eqn2graph_ are passed to the ImageMagick or GraphicsMagick program
       [_convert_(1)](https://www.chedong.com/phpMan.php/man/convert/1/markdown).  By specifying these, you can give your image a border,  set  the  image's  pixel
       density, or perform other useful transformations.

       The  output  image  is clipped using _convert_'s **-trim** option to the smallest possible bounding
       box that contains all the black pixels.

## OPTIONS
### -format
              Write the image in _output-format_, which must be understood by _convert_; the default  is
              PNG.

       **--help** Display a usage message and exit.

### -v
### --version
              Display version information and exit.

## ENVIRONMENT
       _GROFF_TMPDIR_
       _TMPDIR_
       _TMP_
       _TEMP_   These environment variables are searched in the given order to determine the directory
              where temporary files will be created.  If none are set, _/tmp_ is used.

## AUTHORS
       _eqn2graph_  was  written  by  Eric  S.  Raymond  ⟨<esr@thyrsus.com>⟩,  based  on  a  recipe  for
       [_pic2graph_(1)](https://www.chedong.com/phpMan.php/man/pic2graph/1/markdown), by W. Richard Stevens.

## SEE ALSO
       [_pic2graph_(1)](https://www.chedong.com/phpMan.php/man/pic2graph/1/markdown), [_grap2graph_(1)](https://www.chedong.com/phpMan.php/man/grap2graph/1/markdown), [_eqn_(1)](https://www.chedong.com/phpMan.php/man/eqn/1/markdown), [_groff_(1)](https://www.chedong.com/phpMan.php/man/groff/1/markdown), [_convert_(1)](https://www.chedong.com/phpMan.php/man/convert/1/markdown)



groff 1.22.4                                23 March 2022                               [EQN2GRAPH(1)](https://www.chedong.com/phpMan.php/man/EQN2GRAPH/1/markdown)
