# EQN2GRAPH - convert an eqn equation into a cropped image - 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-argument_ ...]

### 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
       **--help  **displays  a  usage message, while **-v **and **--version **show version information; all exit
       afterward.

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

## 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](mailto:<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.23.0                                31 March 2024                               [_eqn2graph_(1)](https://www.chedong.com/phpMan.php/man/eqn2graph/1/markdown)
