Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Use gv(1) to look at postscript' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use gv(1) to look at postscript
Authored by: gshenaut on Oct 24, '05 03:26:33PM
I've been using a script I call "pipegv" to look at postscript output from groff without translating it to pdf:

#!/bin/sh

if [ "$1" = "" ] ; then
        T=/tmp/pipgv.$$
        trap "rm -f $T" EXIT INT
        cat > $T
        gv $T
else
        gv $*
fi
This reads postscript from standard input into a temp file, calls gv on the temp file, and then removes it when gv exits. Gv runs under X-windows, so you have to have that running to use it. There is a program called xditview which is supposed to preview groff output, but I've never been able to get it to work right.

Greg Shenaut

[ Reply to This | # ]