Printing


Questions


Answers

  • How can I print from gnuplot?

    The first thing you need is a datafile, lets call ours 'a1':
    remus> more a1
    1 1
    2 4
    3 9
    4 16
    5 2
    
    Now run gnuplot
    remus> gnuplot
    
            G N U P L O T
            unix version 3.5 
            patchlevel 3.50.1.17, 27 Aug 93
            last modified Fri Aug 27 05:21:33 GMT 1993 
    
            Copyright(C) 1986 - 1993   Colin Kelley, Thomas Williams
    
            Send comments and requests for help to info-gnuplot@dartmouth.edu
            Send bugs, suggestions and mods to bug-gnuplot@dartmouth.edu
    
    Terminal type set to 'x11'
    
    To see the graph issue the command:
    gnuplot> plot 'a1'
    
    Once the graph is as you want it to be issue the following commands to print it.
    gnuplot> set terminal postscript landscape
    Terminal type set to 'postscript'
    Options are 'landscape monochrome dashed "Helvetica" 14'
    gnuplot> set out "a1.ps"
    gnuplot> plot 'a1'
    gnuplot> quit
    
    Make sure you have a postscript file:
    remus> head a1.ps
    %!PS-Adobe-2.0
    %%Creator: gnuplot
    %%DocumentFonts: Helvetica
    %%BoundingBox: 50 50 554 770
    %%Pages: (atend)
    %%EndComments
    /gnudict 40 dict def
    gnudict begin
    /Color false def
    /Solid false def
    remus> 
    
    You can now use the lpr command to print the file a1.ps.
    remus> lpr -Pprintername a1.ps
    

  • How can I print a LaTeX file?

    If you print a LaTeX file, it will look just like the file does, i.e. the typesetting commands, not the typeset text. To typeset the text, you need to run latex on the file:
    latex file.tex
    
    This will create a DVI file, file.dvi. You then convert this file to PostScript with either dvips or dvitps, depending on which is installed on the system you are using. You can either direct the output to the printer or generate a PostScript file, file.ps, and print that. Note that you must print this to a printer that supports PostScript, or it will not print properly.

  • How can I cancel a print job?


    help@remus.rutgers.edu