1EQN2GRAPH(1)                General Commands Manual               EQN2GRAPH(1)
2
3
4

NAME

6       eqn2graph - convert an EQN equation into a cropped image
7

SYNOPSIS

9       eqn2graph [ -unsafe ] [ -format fmt ]
10

DESCRIPTION

12       Reads  an  EQN equation (one line) as input; produces an image file (by
13       default in Portable Network Graphics format) suitable for  the  Web  as
14       output.
15
16       Your input EQN code should not have the .EQ/.EN preamble that that nor‐
17       mally precedes it within groff(1) macros; nor do you need to have  dol‐
18       lar-sign or other delimiters around the equation.
19
20       The  output image will be clipped to the smallest possible bounding box
21       that contains all the black pixels.  Older versions of convert(1)  will
22       produce  a  black-on-white  graphic; newer ones may produce a black-on-
23       transparent graphic.  By specifying command-line options to  be  passed
24       to  convert(1) you can give it a border, force the background transpar‐
25       ent, set the image's pixel density, or perform other useful transforma‐
26       tions.
27
28       This program uses eqn(1), groff(1), and the ImageMagick convert(1) pro‐
29       gram.  These programs must be installed on your system  and  accessible
30       on your $PATH for eqn2graph to work.
31

OPTIONS

33       -unsafe
34              Run  groff(1)  in the `unsafe' mode enabling the PIC macro sh to
35              execute arbitrary commands.  The default is to forbid this.
36
37       -format fmt
38              Specify an output format; the default is PNG  (Portable  Network
39              Graphics).  Any format that convert(1) can emit is supported.
40
41       Command-line switches and arguments not listed above are passed to con‐
42       vert(1).
43

FILES

45       /usr/share/groff/1.22.2/tmac/eqnrc
46              The eqn(1) initialization file.
47

ENVIRONMENT

49       GROFF_TMPDIR
50              The directory in which temporary files will be created.  If this
51              is  not set eqn2graph searches the environment variables TMPDIR,
52              TMP, and TEMP (in that order).  Otherwise, temporary files  will
53              be created in /tmp.
54

BUGS

56       Due  to changes in the behavior of ImageMagick convert(1) that are both
57       forward and backward-incompatible, mismatches  between  your  eqn2graph
58       and  convert(1)  versions  may  produce  zero-sized or untrimmed output
59       images.  For this version of eqn2graph you will need a version of  con‐
60       vert(1)  that  supports  the  -trim option; older versions of eqn2graph
61       used -crop 0x0, which no longer has trimming behavior.
62

SEE ALSO

64       pic2graph(1), grap2graph(1), eqn(1), groff(1), gs(1), convert(1).
65

AUTHOR

67       Eric S. Raymond <esr@thyrsus.com>.
68
69
70
71Groff Version 1.22.2            7 February 2013                   EQN2GRAPH(1)
Impressum