PageRenderTime 32ms CodeModel.GetById 27ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/contrib/groff/contrib/eqn2graph/eqn2graph.man

https://bitbucket.org/freebsd/freebsd-head/
Unknown | 115 lines | 115 code | 0 blank | 0 comment | 0 complexity | 993d2f0f25e50bd22014f35da580a714 MD5 | raw file
  1.\" $Id: eqn2graph.man,v 1.4 2003/10/28 07:46:23 wlemb Exp $
  2.\" This documentation is released to the public domain.
  3.
  4.
  5.\" Like TP, but if specified indent is more than half
  6.\" the current line-length - indent, use the default indent.
  7.de Tp
  8.ie \\n(.$=0:((0\\$1)*2u>(\\n(.lu-\\n(.iu)) .TP
  9.el .TP "\\$1"
 10..
 11.
 12.
 13.TH EQN2GRAPH @MAN1EXT@ "@MDATE@" "Groff Version @VERSION@"
 14.IX eqn2graph
 15.SH NAME
 16eqn2graph \- convert an EQN equation into a cropped image
 17.
 18.
 19.SH SYNOPSIS
 20.B eqn2graph
 21[
 22.B \-unsafe
 23]
 24[
 25.BI \-format\  fmt
 26]
 27.
 28.
 29.SH DESCRIPTION
 30Reads an EQN equation (one line) as input; produces an image
 31file (by default in Portable Network Graphics format) suitable for the
 32Web as output.
 33.P
 34Your input EQN code should \fInot\fR have the \&.EQ/.EN preamble that
 35that normally precedes it within 
 36.BR groff (@MAN1EXT@) 
 37macros; nor do you need to have dollar-sign or other delimiters
 38around the equation.
 39.P
 40The output image will be a black-on-white graphic clipped to the
 41smallest possible bounding box that contains all the black pixels.
 42By specifying command-line options to be passed to 
 43.BR convert (1)
 44you can give it a border, set the background transparent, set the
 45image's pixel density, or perform other useful transformations.
 46.P
 47This program uses 
 48.BR @g@eqn (@MAN1EXT@),
 49.BR groff (@MAN1EXT@),
 50and the ImageMagick 
 51.BR convert (1)
 52program.
 53These programs must be installed on your system and accessible on your
 54$PATH for \fBeqn2graph\fR to work.
 55.
 56.
 57.SH OPTIONS
 58.TP
 59.B \-unsafe
 60Run 
 61.BR groff (@MAN1EXT@)
 62in the `unsafe' mode enabling the PIC macro
 63.B sh
 64to execute arbitrary commands.
 65The default is to forbid this.
 66.TP
 67.BI \-format\  fmt
 68Specify an output format; the default is PNG (Portable Network Graphics).
 69Any format that
 70.BR convert (1)
 71can emit is supported.
 72.PP
 73Command-line switches and arguments not listed above are passed to
 74.BR convert (1).
 75.
 76.
 77.SH FILES
 78.Tp \w'\fB@MACRODIR@/eqnrc'u+2n
 79.B @MACRODIR@/eqnrc
 80The 
 81.BR @g@eqn (@MAN1EXT@)
 82initialization file.
 83.
 84.
 85.SH ENVIRONMENT
 86.TP
 87.B GROFF_TMPDIR
 88The directory in which temporary files will be created.
 89If this is not set
 90.B eqn2graph
 91searches the environment variables
 92.BR \%TMPDIR ,
 93.BR TMP ,
 94and
 95.B TEMP
 96(in that order).
 97Otherwise, temporary files will be created in
 98.BR /tmp .
 99.
100.
101.SH "SEE ALSO"
102.BR pic2graph (@MAN1EXT@),
103.BR grap2graph (@MAN1EXT@),
104.BR @g@eqn (@MAN1EXT@),
105.BR groff (@MAN1EXT@),
106.BR gs (1),
107.BR convert (1).
108.
109.
110.SH AUTHOR
111Eric S. Raymond <esr@thyrsus.com>.
112.
113.\" Local Variables:
114.\" mode: nroff
115.\" End: